185 lines
5.4 KiB
RPMSpec
185 lines
5.4 KiB
RPMSpec
|
%define libname lib%{name}
|
||
|
|
||
|
Name: faad2
|
||
|
Version: 2.7
|
||
|
Release: 4mamba
|
||
|
Epoch: 1
|
||
|
Summary: Freeware Advanced Audio Decoder 2
|
||
|
Group: Applications/Multimedia
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.audiocoding.com/
|
||
|
Source: http://downloads.sourceforge.net/faac/faad2-%{version}.tar.gz
|
||
|
Patch1: %{name}-2.5-no_bmp.patch
|
||
|
Patch2: %{name}-2.5-mp4ff.patch
|
||
|
Patch3: %{name}-2.7-mpeg4ip.patch
|
||
|
Patch4: %{name}-2.7-mpeg4ip-configure.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXau-devel
|
||
|
BuildRequires: libXdmcp-devel
|
||
|
BuildRequires: libXext-devel
|
||
|
BuildRequires: libglib1-devel
|
||
|
BuildRequires: libgtk1-devel
|
||
|
BuildRequires: libxcb-devel
|
||
|
%if "%{stage1}" != "1"
|
||
|
BuildRequires: libxmms-devel
|
||
|
%endif
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: hd2u
|
||
|
BuildRequires: autoconf
|
||
|
BuildRequires: libz-devel
|
||
|
BuildRequires: libsndfile-devel >= 1.0.0
|
||
|
BuildRequires: libid3-devel
|
||
|
BuildRequires: libmp4v2-devel >= 2.0.0
|
||
|
BuildConflicts: libmpeg4ip-devel
|
||
|
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely written from scratch.
|
||
|
|
||
|
%package -n %{libname}
|
||
|
Summary: A library for decoding MPEG2/4 AAC
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n %{libname}
|
||
|
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely written from scratch.
|
||
|
|
||
|
%package -n xmms-aac
|
||
|
Summary: An AAC plugin for the XMMS player
|
||
|
Group: Applications/Multimedia
|
||
|
Requires: xmms
|
||
|
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Provides: %{libname}-xmms-aac = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n xmms-aac
|
||
|
This xmms plugin reads AAC files with and without ID3 tags (version 2.x).
|
||
|
|
||
|
AAC files are MPEG2 or MPEG4 files that can be found in MPEG4 audio files (.mp4).
|
||
|
MPEG4 files with AAC inside can be read by RealPlayer or Quicktime.
|
||
|
|
||
|
%package -n mpeg4ip-aac
|
||
|
Summary: An AAC plugin for mpeg4ip player
|
||
|
Group: Applications/Multimedia
|
||
|
Requires: mpeg4ip
|
||
|
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Provides: %{libname}-mpeg4ip-plugin = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n mpeg4ip-aac
|
||
|
This mpeg4ip player plugin reads AAC files.
|
||
|
|
||
|
AAC files are MPEG2 or MPEG4 files that can be found in MPEG4 audio files (.mp4).
|
||
|
MPEG4 files with AAC inside can be read by RealPlayer or Quicktime.
|
||
|
|
||
|
%package -n %{libname}-devel
|
||
|
Summary: Static libraries and headers for %{libname}
|
||
|
Group: Development/Libraries
|
||
|
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Obsoletes: %{name}-devel
|
||
|
|
||
|
%description -n %{libname}-devel
|
||
|
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely written from scratch.
|
||
|
|
||
|
This package contains static libraries and header files need for development.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
dos2unix configure.in
|
||
|
#%patch1 -p1
|
||
|
#%patch2 -p1
|
||
|
%patch3 -p1
|
||
|
%patch4 -p1
|
||
|
|
||
|
%build
|
||
|
autoreconf -vif
|
||
|
%configure \
|
||
|
--with-mp4v2 \
|
||
|
%if "%{stage1}" != "1"
|
||
|
--with-xmms
|
||
|
%endif
|
||
|
|
||
|
# --with-drm
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n %{libname} -p /sbin/ldconfig
|
||
|
%postun -n %{libname} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-, root, root)
|
||
|
%{_bindir}/*
|
||
|
%{_mandir}/manm/faad.man.gz
|
||
|
|
||
|
%files -n %{libname}
|
||
|
%defattr(-, root, root)
|
||
|
%{_libdir}/*.so.*
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
%files -n %{libname}-devel
|
||
|
%defattr(-, root, root)
|
||
|
%{_includedir}/*
|
||
|
%{_libdir}/*.a
|
||
|
%{_libdir}/*.la
|
||
|
%{_libdir}/*.so
|
||
|
%doc ChangeLog NEWS README TODO
|
||
|
|
||
|
%if "%{stage1}" != "1"
|
||
|
%files -n xmms-aac
|
||
|
%defattr(-, root, root)
|
||
|
%{_libdir}/xmms/Input/*.a
|
||
|
%{_libdir}/xmms/Input/*.la
|
||
|
%{_libdir}/xmms/Input/*.so
|
||
|
%doc plugins/xmms/{AUTHORS,NEWS,README,TODO}
|
||
|
|
||
|
#%files -n mpeg4ip-aac
|
||
|
#%defattr(-, root, root)
|
||
|
#%{_libdir}/mp4player_plugin/faad2_plugin.*
|
||
|
%endif
|
||
|
|
||
|
%changelog
|
||
|
* Sat Mar 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7-4mamba
|
||
|
- rebuilt without libmpeg4ip and with libmp4v2 >= 2.0.0
|
||
|
|
||
|
* Tue Aug 14 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7-3mamba
|
||
|
- remove the option --with-drm (https://github.com/PromyLOPh/pianobar/issues/282); tested with totem and mp4 file
|
||
|
|
||
|
* Tue Jul 14 2009 Automatic Build System <autodist@mambasoft.it> 2.7-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Thu Jul 09 2009 Automatic Build System <autodist@mambasoft.it> 2.7-1mamba
|
||
|
- update to 2.7
|
||
|
|
||
|
* Sun May 13 2007 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.5-1mamba
|
||
|
- fixed xmms plugin compilation
|
||
|
- fixed mpeg4ip plugin compilation
|
||
|
- added faad2 package
|
||
|
|
||
|
* Fri Jan 26 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.cvs20070126-1qilnx
|
||
|
- update to version 2.5 by autospec
|
||
|
- FIXME: removed mpeg4ip plugin due to build problems
|
||
|
|
||
|
* Wed May 24 2006 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-3qilnx
|
||
|
- remove build of libmp4v2 provided and maintained by the mpeg4ip project
|
||
|
- added mpeg4ip plugin package
|
||
|
- enabled drm support
|
||
|
- removed xmms plugin (currently requires internal build of libmp4v2)
|
||
|
|
||
|
* Sat Oct 02 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.0-2qilnx
|
||
|
- specfile fixed and modified to match QiLinux standards
|
||
|
- library name modified (was faad2)
|
||
|
- added a patch to compile libfaad2 with gcc-3.4
|
||
|
|
||
|
* Mon Sep 13 2004 Matteo Bernasconi <voyagernm@virgilio.it> 2.0-1qilnx
|
||
|
- first build
|