194 lines
5.9 KiB
RPMSpec
194 lines
5.9 KiB
RPMSpec
%define libname lib%{name}
|
|
%define tagver %(echo %version | tr . _)
|
|
Name: faad2
|
|
Version: 2.9.2
|
|
Release: 1mamba
|
|
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: https://github.com/knik0/faad2.git/%{tagver}/faad2-%{version}.tar.bz2
|
|
#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
|
|
## 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
|
|
Obsoletes: xmms-aac
|
|
|
|
%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.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#dos2unix configure.in
|
|
#%patch1 -p1
|
|
#%patch2 -p1
|
|
%patch3 -p1
|
|
#%patch4 -p1
|
|
./bootstrap
|
|
|
|
%build
|
|
%configure \
|
|
--with-mp4v2 \
|
|
--without-xmms
|
|
|
|
# --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}/faad
|
|
%{_mandir}/man1/faad.1*
|
|
|
|
%files -n %{libname}
|
|
%defattr(-, root, root)
|
|
%{_libdir}/libfaad.so.*
|
|
%{_libdir}/libfaad_drm.so.*
|
|
%doc AUTHORS COPYING
|
|
|
|
%files -n %{libname}-devel
|
|
%defattr(-, root, root)
|
|
%{_includedir}/*
|
|
%{_libdir}/libfaad.a
|
|
%{_libdir}/libfaad.la
|
|
%{_libdir}/libfaad.so
|
|
%{_libdir}/libfaad_drm.a
|
|
%{_libdir}/libfaad_drm.la
|
|
%{_libdir}/libfaad_drm.so
|
|
%{_libdir}/pkgconfig/faad2.pc
|
|
%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
|
|
* Mon May 11 2020 Automatic Build System <autodist@mambasoft.it> 2.9.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Dec 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.1-1mamba
|
|
- update to 2.9.1
|
|
|
|
* Wed Mar 21 2018 Automatic Build System <autodist@mambasoft.it> 2.8.8-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Jan 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7-5mamba
|
|
- rebuilt without xmms plugins (i586)
|
|
|
|
* 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
|