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