%define libname lib%{name} %define tagver %(echo %version | tr . _) Name: faac Version: 1.30 Release: 2mamba Summary: Freeware Advanced Audio Coder Group: Applications/Multimedia Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.audiocoding.com/ Source: https://github.com/knik0/faac.git/%{tagver}/faac-%{version}.tar.bz2 #Source: http://downloads.sourceforge.net/faac/faac-%{version}.tar.gz Patch0: faac-1.28-internal-mpeg4ip-gcc.patch License: GPL Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRequires: hd2u BuildRequires: autoconf BuildRequires: libfaad2-devel >= 2.0 %if "%{stage1}" != "1" BuildRequires: libmp4v2-devel %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports multichannel and gapless encoding. %package -n %{libname} Summary: Reference encoder and encoding library for MPEG2/4 AAC Group: System/Libraries %description -n %{libname} FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports multichannel and gapless encoding. %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 FAAC is an AAC audio encoder. It currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types and MAIN and LOW MPEG-2 object types. It also supports multichannel and gapless encoding. This package contains static libraries and header files need for development. %debug_packge %prep %setup -q %if "%{stage1}" == "1" %patch0 -p1 %endif ./bootstrap %build %configure \ %if "%{stage1}" != "1" --with-mp4v2 %endif %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}/man1/faac.1* %files -n %{libname} %defattr(-, root, root) %{_libdir}/libfaac.so.* %doc AUTHORS COPYING %files -n %{libname}-devel %defattr(-, root, root) %{_includedir}/*.h %{_libdir}/libfaac.a %{_libdir}/libfaac.la %{_libdir}/libfaac.so %doc ChangeLog NEWS README TODO %changelog * Tue Dec 01 2020 Silvan Calarco 1.30-2mamba - rebuilt with debug package * Sun Dec 01 2019 Silvan Calarco 1.30-1mamba - update to 1.30 * Wed Mar 21 2018 Automatic Build System 1.29.9.2-1mamba - automatic version update by autodist * Fri Aug 18 2017 Automatic Build System 1.29.3-1mamba - automatic version update by autodist * Thu Jul 09 2009 Automatic Build System 1.28-1mamba - automatic update by autodist * Mon May 21 2007 Silvan Calarco 1.25-2mamba - group entry fixed * Sun May 13 2007 Stefano Cotta Ramusino 1.25-1mamba - update to 1.25 - added faac package - added missing build requirements * Sat Oct 02 2004 Davide Madrisan 1.24-2qilnx - specfile fixed and modified to match QiLinux standards - library name modified (was faac) - added missing BuildRequires (libfaad2-devel) * Mon Sep 13 2004 Matteo Bernasconi 1.24-1qilnx - first build