2024-01-05 22:12:34 +01:00
|
|
|
%define libname lib%{name}
|
2024-01-05 22:12:34 +01:00
|
|
|
%define tagver %(echo %version | tr . _)
|
2024-01-05 22:12:34 +01:00
|
|
|
Name: faad2
|
2024-01-05 22:12:34 +01:00
|
|
|
Version: 2.9.1
|
2024-01-05 22:12:34 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 22:12:34 +01:00
|
|
|
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/
|
2024-01-05 22:12:34 +01:00
|
|
|
Source: https://github.com/knik0/faad2.git/%{tagver}/faad2-%{version}.tar.bz2
|
|
|
|
#Source: http://downloads.sourceforge.net/faac/faad2-%{version}.tar.gz
|
2024-01-05 22:12:34 +01:00
|
|
|
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
|
2024-01-05 22:12:34 +01:00
|
|
|
#BuildRequires: libsndfile-devel >= 1.0.0
|
|
|
|
#BuildRequires: libid3-devel
|
|
|
|
#BuildRequires: libmp4v2-devel >= 2.0.0
|
|
|
|
#BuildConflicts: libmpeg4ip-devel
|
2024-01-05 22:12:34 +01:00
|
|
|
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
|
2024-01-05 22:12:34 +01:00
|
|
|
Obsoletes: xmms-aac
|
2024-01-05 22:12:34 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-05 22:12:34 +01:00
|
|
|
#dos2unix configure.in
|
2024-01-05 22:12:34 +01:00
|
|
|
#%patch1 -p1
|
|
|
|
#%patch2 -p1
|
|
|
|
%patch3 -p1
|
2024-01-05 22:12:34 +01:00
|
|
|
#%patch4 -p1
|
2024-01-05 22:12:34 +01:00
|
|
|
./bootstrap
|
2024-01-05 22:12:34 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--with-mp4v2 \
|
2024-01-05 22:12:34 +01:00
|
|
|
--without-xmms
|
2024-01-05 22:12:34 +01:00
|
|
|
|
|
|
|
# --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}/*
|
2024-01-05 22:12:34 +01:00
|
|
|
%{_mandir}/man1/faad.1*
|
2024-01-05 22:12:34 +01:00
|
|
|
|
|
|
|
%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"
|
2024-01-05 22:12:34 +01:00
|
|
|
#%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}
|
2024-01-05 22:12:34 +01:00
|
|
|
|
|
|
|
#%files -n mpeg4ip-aac
|
|
|
|
#%defattr(-, root, root)
|
|
|
|
#%{_libdir}/mp4player_plugin/faad2_plugin.*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 22:12:34 +01:00
|
|
|
* Sun Dec 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.1-1mamba
|
|
|
|
- update to 2.9.1
|
|
|
|
|
2024-01-05 22:12:34 +01:00
|
|
|
* Wed Mar 21 2018 Automatic Build System <autodist@mambasoft.it> 2.8.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:12:34 +01:00
|
|
|
* Fri Jan 29 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7-5mamba
|
|
|
|
- rebuilt without xmms plugins (i586)
|
|
|
|
|
2024-01-05 22:12:34 +01:00
|
|
|
* 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
|