]>
Commit | Line | Data |
---|---|---|
f4330271 JB |
1 | # |
2 | # Conditional build: | |
68e9ffd2 | 3 | %bcond_with bootstrap # bootstrap (alias for _without_mpeg4ip) |
5394a200 | 4 | %bcond_with mpeg4ip # don't build MPEG4IP plugin |
68e9ffd2 | 5 | %bcond_without static_libs # don't build static libraries |
327697e7 | 6 | %bcond_without xmms # don't build XMMS plugin |
cbb60075 | 7 | |
327697e7 | 8 | %{?with_bootstrap:%undefine with_mpeg4ip} |
9c3cb898 | 9 | Summary: Freeware Advanced Audio Decoder 2 |
059244cb | 10 | Summary(pl.UTF-8): Darmowy zaawansowany dekoder audio |
9c3cb898 | 11 | Name: faad2 |
aff333c1 JB |
12 | Version: 2.8.6 |
13 | Release: 1 | |
45e28ee0 | 14 | License: GPL v2+ |
327697e7 | 15 | Group: Applications/Sound |
aff333c1 JB |
16 | Source0: http://downloads.sourceforge.net/faac/%{name}-%{version}.tar.gz |
17 | # Source0-md5: 21aa96dd6d57fd0436bf81c3988969ce | |
52db292f | 18 | Patch0: %{name}-make.patch |
e4d59ed1 | 19 | Patch1: %{name}-mpeg4ip.patch |
e4d59ed1 | 20 | Patch3: %{name}-backward_compat.patch |
45e28ee0 | 21 | Patch4: %{name}-mp4ff.patch |
ea603bc1 | 22 | Patch6: %{name}-mp4v2.patch |
9c3cb898 | 23 | URL: http://www.audiocoding.com/ |
c03578bb | 24 | %{?with_mpeg4ip:BuildRequires: SDL-devel} |
9c3cb898 | 25 | BuildRequires: autoconf |
26 | BuildRequires: automake | |
52db292f | 27 | %{?with_xmms:BuildRequires: id3lib-devel >= 3.8.2} |
52db292f | 28 | BuildRequires: libtool >= 2:1.4d-3 |
ea603bc1 JB |
29 | %if %{with mpeg4ip} |
30 | BuildRequires: mp4v2-devel | |
31 | BuildRequires: mpeg4ip-devel >= 1:1.6 | |
32 | %endif | |
aff333c1 | 33 | BuildRequires: rpmbuild(macros) >= 1.721 |
1ee9cb0a | 34 | %{?with_xmms:BuildRequires: xmms-devel} |
327697e7 | 35 | Requires: %{name}-libs = %{version}-%{release} |
9c3cb898 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
9c3cb898 | 38 | %description |
39 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, | |
40 | completely written from scratch. | |
41 | ||
0e2dcaed JR |
42 | %description -l pl.UTF-8 |
43 | FAAD 2 to napisany całkowicie od początku dekoder MPEG2 i MPEG-4 | |
44 | obsługujący profile LC, MAIN i LTP. | |
f4330271 | 45 | |
327697e7 JB |
46 | %package libs |
47 | Summary: FAAD 2 libraries | |
059244cb | 48 | Summary(pl.UTF-8): Biblioteki FAAD 2 |
327697e7 | 49 | Group: Libraries |
aff333c1 JB |
50 | %if 0%{?_soname_prov:1} |
51 | Provides: %{_soname_prov libfaad.so.0} | |
52 | %endif | |
327697e7 JB |
53 | Conflicts: faad2 < 2.0-3 |
54 | ||
55 | %description libs | |
56 | FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, | |
57 | completely written from scratch. This package contains base FAAD 2 | |
58 | libraries: libfaad and libmp4ff. | |
59 | ||
0e2dcaed JR |
60 | %description libs -l pl.UTF-8 |
61 | FAAD 2 to napisany całkowicie od początku dekoder MPEG2 i MPEG-4 | |
62 | obsługujący profile LC, MAIN i LTP. Ten pakiet zawiera podstawowe | |
327697e7 JB |
63 | biblioteki FAAD 2: libfaad i libmp4ff. |
64 | ||
9c3cb898 | 65 | %package devel |
327697e7 | 66 | Summary: Header files for faad2 |
059244cb | 67 | Summary(pl.UTF-8): Pliki nagłówkowe faad2 |
9c3cb898 | 68 | Group: Development/Libraries |
327697e7 | 69 | Requires: %{name}-libs = %{version}-%{release} |
9c3cb898 | 70 | |
71 | %description devel | |
327697e7 | 72 | Header files for faad2. |
9c3cb898 | 73 | |
0e2dcaed JR |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe faad2. | |
f4330271 | 76 | |
9c3cb898 | 77 | %package static |
78 | Summary: Static faad2 library | |
059244cb | 79 | Summary(pl.UTF-8): Statyczna biblioteka faad2 |
9c3cb898 | 80 | Group: Development/Libraries |
327697e7 | 81 | Requires: %{name}-devel = %{version}-%{release} |
9c3cb898 | 82 | |
83 | %description static | |
84 | Static faad2 library. | |
85 | ||
0e2dcaed | 86 | %description static -l pl.UTF-8 |
f4330271 JB |
87 | Statyczna biblioteka faad2. |
88 | ||
327697e7 JB |
89 | %package -n mpeg4ip-plugin-faad2 |
90 | Summary: MPEG4IP plugin for AAC files | |
059244cb | 91 | Summary(pl.UTF-8): Wtyczka MPEG4IP do plików AAC |
327697e7 JB |
92 | Group: Applications/Sound |
93 | Requires: %{name}-libs = %{version}-%{release} | |
94 | Requires: mpeg4ip | |
95 | ||
96 | %description -n mpeg4ip-plugin-faad2 | |
97 | MPEG4IP plugin for AAC files. | |
98 | ||
0e2dcaed JR |
99 | %description -n mpeg4ip-plugin-faad2 -l pl.UTF-8 |
100 | Wtyczka MPEG4IP do plików AAC. | |
327697e7 | 101 | |
f4330271 JB |
102 | %package -n xmms-input-faad2 |
103 | Summary: XMMS plugin for AAC files | |
059244cb | 104 | Summary(pl.UTF-8): Wtyczka XMMS do plików AAC |
f4330271 | 105 | Group: X11/Applications/Sound |
327697e7 | 106 | Requires: %{name}-libs = %{version}-%{release} |
c7dec483 | 107 | Requires: xmms |
f4330271 JB |
108 | |
109 | %description -n xmms-input-faad2 | |
110 | XMMS plugin for AAC files. | |
111 | ||
0e2dcaed JR |
112 | %description -n xmms-input-faad2 -l pl.UTF-8 |
113 | Wtyczka XMMS do plików AAC. | |
f4330271 | 114 | |
9c3cb898 | 115 | %prep |
45e28ee0 | 116 | %setup -q |
52db292f | 117 | %patch0 -p1 |
281edd3d | 118 | %patch1 -p1 |
269b5740 | 119 | %patch3 -p1 |
b62e63c4 | 120 | %patch4 -p1 |
ea603bc1 | 121 | %patch6 -p1 |
9c3cb898 | 122 | |
123 | %build | |
52db292f JB |
124 | %{__libtoolize} |
125 | %{__aclocal} | |
126 | %{__autoconf} | |
127 | %{__autoheader} | |
128 | %{__automake} | |
70f03c9e | 129 | %configure \ |
f2f0c896 | 130 | --with%{!?with_xmms:out}-xmms \ |
68e9ffd2 KK |
131 | --with%{!?with_mpeg4ip:out}-mpeg4ip \ |
132 | %{!?with_static_libs:--disable-static} | |
70f03c9e | 133 | |
9c3cb898 | 134 | %{__make} |
135 | ||
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
f4330271 JB |
138 | |
139 | %{__make} install \ | |
140 | DESTDIR=$RPM_BUILD_ROOT | |
141 | ||
aa497f07 | 142 | %if %{with xmms} |
45e28ee0 | 143 | %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.{la,a} |
aa497f07 | 144 | %endif |
012e2079 | 145 | %if %{with mpeg4ip} |
45e28ee0 | 146 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mp4player_plugin/*.{la,a} |
012e2079 | 147 | %endif |
9c3cb898 | 148 | |
aff333c1 JB |
149 | # for compatibility with apps using dlopen("libfaad.so.0") |
150 | ln -sf $(basename $RPM_BUILD_ROOT%{_libdir}/libfaad.so.2.*.*) $RPM_BUILD_ROOT%{_libdir}/libfaad.so.0 | |
151 | ||
9c3cb898 | 152 | %clean |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
327697e7 JB |
155 | %post libs -p /sbin/ldconfig |
156 | %postun libs -p /sbin/ldconfig | |
9c3cb898 | 157 | |
158 | %files | |
159 | %defattr(644,root,root,755) | |
327697e7 | 160 | %attr(755,root,root) %{_bindir}/faad |
45e28ee0 | 161 | %{_mandir}/man1/faad.1* |
327697e7 JB |
162 | |
163 | %files libs | |
164 | %defattr(644,root,root,755) | |
9c3cb898 | 165 | %doc AUTHORS ChangeLog NEWS README TODO |
e4d59ed1 | 166 | %attr(755,root,root) %{_libdir}/libfaad.so.*.*.* |
aff333c1 JB |
167 | %attr(755,root,root) %ghost %{_libdir}/libfaad.so.2 |
168 | # compat symlink | |
169 | %attr(755,root,root) %{_libdir}/libfaad.so.0 | |
170 | %attr(755,root,root) %{_libdir}/libfaad_drm.so.*.*.* | |
171 | %attr(755,root,root) %ghost %{_libdir}/libfaad_drm.so.2 | |
8460ebc0 AF |
172 | %attr(755,root,root) %{_libdir}/libmp4ff.so.*.*.* |
173 | %attr(755,root,root) %ghost %{_libdir}/libmp4ff.so.0 | |
9c3cb898 | 174 | |
175 | %files devel | |
176 | %defattr(644,root,root,755) | |
327697e7 | 177 | %attr(755,root,root) %{_libdir}/libfaad.so |
aff333c1 | 178 | %attr(755,root,root) %{_libdir}/libfaad_drm.so |
8460ebc0 | 179 | %attr(755,root,root) %{_libdir}/libmp4ff.so |
327697e7 | 180 | %{_libdir}/libfaad.la |
aff333c1 | 181 | %{_libdir}/libfaad_drm.la |
8460ebc0 | 182 | %{_libdir}/libmp4ff.la |
327697e7 | 183 | %{_includedir}/faad.h |
8460ebc0 | 184 | %{_includedir}/mp4ff.h |
45e28ee0 | 185 | %{_includedir}/mp4ffint.h |
7c7f8a92 | 186 | %{_includedir}/neaacdec.h |
9c3cb898 | 187 | |
68e9ffd2 | 188 | %if %{with static_libs} |
9c3cb898 | 189 | %files static |
190 | %defattr(644,root,root,755) | |
327697e7 | 191 | %{_libdir}/libfaad.a |
aff333c1 | 192 | %{_libdir}/libfaad_drm.a |
8460ebc0 | 193 | %{_libdir}/libmp4ff.a |
68e9ffd2 | 194 | %endif |
f4330271 | 195 | |
db60caea | 196 | %if %{with xmms} |
f4330271 JB |
197 | %files -n xmms-input-faad2 |
198 | %defattr(644,root,root,755) | |
e4d59ed1 | 199 | %attr(755,root,root) %{xmms_input_plugindir}/libmp4.so |
f4330271 | 200 | %endif |
327697e7 JB |
201 | |
202 | %if %{with mpeg4ip} | |
203 | %files -n mpeg4ip-plugin-faad2 | |
204 | %defattr(644,root,root,755) | |
e4d59ed1 | 205 | %attr(755,root,root) %{_libdir}/mp4player_plugin/faad2_plugin.so* |
327697e7 | 206 | %endif |