]> git.pld-linux.org Git - packages/faac.git/blobdiff - faac.spec
- spaces -> tabs
[packages/faac.git] / faac.spec
index a5a7b1ad5ea29627f0e831ca0616d1cde1efc356..1178a98ded7aee83e87ac54a658ec32f47f29e86 100644 (file)
--- a/faac.spec
+++ b/faac.spec
@@ -1,37 +1,66 @@
+#
+# Conditional build:
+%bcond_without mpeg4ip # without MPEG4 support in frontend (which requires mpeg4ip)
+#
 Summary:       Freeware Advanced Audio Codec
+Summary(pl):   Freeware Advanced Audio Codec - darmowy zaawansowany kodek d¼wiêku
 Name:          faac
-Version:       1.23.1
-Release:       1
-License:       LGPL 2.1+
-Group:         Libraries
+Version:       1.24
+Release:       2
+License:       LGPL v2.1+
+Group:         Applications/Sound
 Source0:       http://dl.sourceforge.net/faac/%{name}-%{version}.tar.gz
-# Source0-md5: 75aa397a9b123a2bf6f0ce9f78db8b3d
+# Source0-md5: 191a457d0a7139792e5dc0c5b607b6f1
+Patch0:                %{name}-link.patch
+Patch1:                %{name}-force_to_use_without-mp4v2.patch
 URL:           http://www.audiocoding.com/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: libtool
+%{?with_mpeg4ip:BuildRequires: mpeg4ip-devel}
+Requires:      %{name}-libs = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-.
+FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware
+Advanced Audio Coding project.
+
+%description -l pl
+FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu
+Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania
+d¼wiêku).
+
+%package libs
+Summary:       Freeware Advanced Audio Codec library
+Summary(pl):   Freeware Advanced Audio Codec - biblioteka darmowego zaawansowanego kodeka d¼wiêku
+Group:         Libraries
+
+%description libs
+FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware
+Advanced Audio Coding project.
+
+%description libs -l pl
+FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu
+Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania
+d¼wiêku).
 
 %package devel
-Summary:       Devel files for faac
-Summary(pl):   Pliki nag³ówkowe faac
+Summary:       Header files for faac library
+Summary(pl):   Pliki nag³ówkowe biblioteki faac
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
-Devel files for faac.
+Header files for faac library.
 
 %description devel -l pl
-Pliki nag³ówkowe faac.
+Pliki nag³ówkowe biblioteki faac.
 
 %package static
 Summary:       Static faac library
 Summary(pl):   Statyczna biblioteka faac
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static faac library.
@@ -41,10 +70,17 @@ Statyczna biblioteka faac.
 
 %prep
 %setup -q -n %{name}
+%patch0 -p1
+%patch1 -p1
 
 %build
-sh ./bootstrap
-%configure
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       %{!?with_mpeg4ip:--without-mp4v2}
 %{__make}
 
 %install
@@ -56,17 +92,21 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc ChangeLog README TODO
 %attr(755,root,root) %{_bindir}/*
+
+%files libs
+%defattr(644,root,root,755)
+%doc ChangeLog README TODO docs/faac.html
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
+%doc docs/libfaac.html
 %attr(755,root,root) %{_libdir}/lib*.so
 %{_libdir}/lib*.la
 %{_includedir}/*.h
This page took 0.058565 seconds and 4 git commands to generate.