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