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