]>
Commit | Line | Data |
---|---|---|
32ca7068 | 1 | # |
dee1d8dc | 2 | # Conditional build: |
62dafd42 KK |
3 | %bcond_without mpeg4ip # without MPEG4 support in frontend (which requires mpeg4ip) |
4 | %bcond_without static_libs # don't build static libraries | |
32ca7068 | 5 | # |
936dfb3e | 6 | Summary: Freeware Advanced Audio Codec |
d283f377 | 7 | Summary(pl.UTF-8): Freeware Advanced Audio Codec - darmowy zaawansowany kodek dźwięku |
936dfb3e | 8 | Name: faac |
7d280872 | 9 | Version: 1.28 |
857319e6 | 10 | Release: 1 |
0ab2bcf4 | 11 | License: LGPL v2.1+ |
723bb0f2 | 12 | Group: Applications/Sound |
25763d4f | 13 | Source0: http://downloads.sourceforge.net/faac/%{name}-%{version}.tar.gz |
7d280872 | 14 | # Source0-md5: 80763728d392c7d789cde25614c878f6 |
0ab2bcf4 | 15 | Patch0: %{name}-link.patch |
25763d4f | 16 | Patch1: %{name}-mpeg4ip.patch |
936dfb3e | 17 | URL: http://www.audiocoding.com/ |
0ab2bcf4 | 18 | BuildRequires: autoconf >= 2.50 |
936dfb3e | 19 | BuildRequires: automake |
9c587fa0 | 20 | BuildRequires: dos2unix |
936dfb3e | 21 | BuildRequires: libtool |
b15f6dd5 | 22 | %{?with_mpeg4ip:BuildRequires: mpeg4ip-devel} |
723bb0f2 | 23 | Requires: %{name}-libs = %{version}-%{release} |
936dfb3e AF |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
0ab2bcf4 JB |
27 | FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware |
28 | Advanced Audio Coding project. | |
29 | ||
9e374fd2 | 30 | %description -l pl.UTF-8 |
0ab2bcf4 JB |
31 | FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu |
32 | Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania | |
9e374fd2 | 33 | dźwięku). |
936dfb3e | 34 | |
723bb0f2 JB |
35 | %package libs |
36 | Summary: Freeware Advanced Audio Codec library | |
d283f377 | 37 | Summary(pl.UTF-8): Freeware Advanced Audio Codec - biblioteka darmowego zaawansowanego kodeka dźwięku |
723bb0f2 JB |
38 | Group: Libraries |
39 | ||
40 | %description libs | |
41 | FAAC is an ISO/MPEG 2/4 AAC encoder library developed for the Freeware | |
42 | Advanced Audio Coding project. | |
43 | ||
9e374fd2 | 44 | %description libs -l pl.UTF-8 |
723bb0f2 JB |
45 | FAAC to biblioteka kodera ISO/MPEG 2/4 AAC stworzona dla projektu |
46 | Freeware Advanced Audio Coding (darmowego zaawansowanego kodowania | |
9e374fd2 | 47 | dźwięku). |
723bb0f2 | 48 | |
936dfb3e | 49 | %package devel |
0ab2bcf4 | 50 | Summary: Header files for faac library |
d283f377 | 51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki faac |
936dfb3e | 52 | Group: Development/Libraries |
723bb0f2 | 53 | Requires: %{name}-libs = %{version}-%{release} |
936dfb3e AF |
54 | |
55 | %description devel | |
0ab2bcf4 | 56 | Header files for faac library. |
936dfb3e | 57 | |
9e374fd2 JR |
58 | %description devel -l pl.UTF-8 |
59 | Pliki nagłówkowe biblioteki faac. | |
936dfb3e AF |
60 | |
61 | %package static | |
62 | Summary: Static faac library | |
d283f377 | 63 | Summary(pl.UTF-8): Statyczna biblioteka faac |
936dfb3e | 64 | Group: Development/Libraries |
723bb0f2 | 65 | Requires: %{name}-devel = %{version}-%{release} |
936dfb3e AF |
66 | |
67 | %description static | |
68 | Static faac library. | |
69 | ||
9e374fd2 | 70 | %description static -l pl.UTF-8 |
936dfb3e AF |
71 | Statyczna biblioteka faac. |
72 | ||
73 | %prep | |
7d280872 | 74 | %setup -q |
0ab2bcf4 | 75 | %patch0 -p1 |
25763d4f | 76 | %patch1 -p1 |
9c587fa0 JB |
77 | |
78 | # aclocal can't stand it | |
79 | dos2unix configure.in | |
936dfb3e AF |
80 | |
81 | %build | |
0ab2bcf4 JB |
82 | %{__libtoolize} |
83 | %{__aclocal} | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
32ca7068 | 87 | %configure \ |
62dafd42 KK |
88 | %{!?with_mpeg4ip:--without-mp4v2} \ |
89 | %{!?with_static_libs:--disable-static} | |
936dfb3e AF |
90 | %{__make} |
91 | ||
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %{__make} install \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
723bb0f2 JB |
101 | %post libs -p /sbin/ldconfig |
102 | %postun libs -p /sbin/ldconfig | |
936dfb3e AF |
103 | |
104 | %files | |
105 | %defattr(644,root,root,755) | |
ba23b05b JB |
106 | %attr(755,root,root) %{_bindir}/faac |
107 | %{_mandir}/man1/faac.1* | |
723bb0f2 JB |
108 | |
109 | %files libs | |
110 | %defattr(644,root,root,755) | |
111 | %doc ChangeLog README TODO docs/faac.html | |
857319e6 JB |
112 | %attr(755,root,root) %{_libdir}/libfaac.so.*.*.* |
113 | %attr(755,root,root) %ghost %{_libdir}/libfaac.so.0 | |
936dfb3e AF |
114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
0ab2bcf4 | 117 | %doc docs/libfaac.html |
857319e6 JB |
118 | %attr(755,root,root) %{_libdir}/libfaac.so |
119 | %{_libdir}/libfaac.la | |
120 | %{_includedir}/faac*.h | |
936dfb3e | 121 | |
62dafd42 | 122 | %if %{with static_libs} |
936dfb3e AF |
123 | %files static |
124 | %defattr(644,root,root,755) | |
857319e6 | 125 | %{_libdir}/libfaac.a |
62dafd42 | 126 | %endif |