]>
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 JB |
12 | Version: 2.7 |
13 | Release: 1 | |
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 | |
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 |
45e28ee0 | 111 | %setup -q |
52db292f | 112 | %patch0 -p1 |
281edd3d | 113 | %patch1 -p1 |
93fb0621 | 114 | %patch2 -p1 |
269b5740 | 115 | %patch3 -p1 |
b62e63c4 | 116 | %patch4 -p1 |
8460ebc0 | 117 | %patch5 -p1 |
45e28ee0 | 118 | mv -f frontend/faad.{man,1} |
9c3cb898 | 119 | |
120 | %build | |
52db292f JB |
121 | %{__libtoolize} |
122 | %{__aclocal} | |
123 | %{__autoconf} | |
124 | %{__autoheader} | |
125 | %{__automake} | |
70f03c9e | 126 | %configure \ |
f2f0c896 | 127 | --with%{!?with_xmms:out}-xmms \ |
68e9ffd2 KK |
128 | --with%{!?with_mpeg4ip:out}-mpeg4ip \ |
129 | %{!?with_static_libs:--disable-static} | |
70f03c9e | 130 | |
9c3cb898 | 131 | %{__make} |
132 | ||
133 | %install | |
134 | rm -rf $RPM_BUILD_ROOT | |
f4330271 JB |
135 | |
136 | %{__make} install \ | |
137 | DESTDIR=$RPM_BUILD_ROOT | |
138 | ||
45e28ee0 JB |
139 | %{__rm} $RPM_BUILD_ROOT%{xmms_input_plugindir}/*.{la,a} |
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mp4player_plugin/*.{la,a} | |
9c3cb898 | 141 | |
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
327697e7 JB |
145 | %post libs -p /sbin/ldconfig |
146 | %postun libs -p /sbin/ldconfig | |
9c3cb898 | 147 | |
148 | %files | |
149 | %defattr(644,root,root,755) | |
327697e7 | 150 | %attr(755,root,root) %{_bindir}/faad |
45e28ee0 | 151 | %{_mandir}/man1/faad.1* |
327697e7 JB |
152 | |
153 | %files libs | |
154 | %defattr(644,root,root,755) | |
9c3cb898 | 155 | %doc AUTHORS ChangeLog NEWS README TODO |
e4d59ed1 JB |
156 | %attr(755,root,root) %{_libdir}/libfaad.so.*.*.* |
157 | %attr(755,root,root) %ghost %{_libdir}/libfaad.so.0 | |
8460ebc0 AF |
158 | %attr(755,root,root) %{_libdir}/libmp4ff.so.*.*.* |
159 | %attr(755,root,root) %ghost %{_libdir}/libmp4ff.so.0 | |
9c3cb898 | 160 | |
161 | %files devel | |
162 | %defattr(644,root,root,755) | |
327697e7 | 163 | %attr(755,root,root) %{_libdir}/libfaad.so |
8460ebc0 | 164 | %attr(755,root,root) %{_libdir}/libmp4ff.so |
327697e7 | 165 | %{_libdir}/libfaad.la |
8460ebc0 | 166 | %{_libdir}/libmp4ff.la |
327697e7 | 167 | %{_includedir}/faad.h |
8460ebc0 | 168 | %{_includedir}/mp4ff.h |
b4d70907 | 169 | %{_includedir}/mp4ff_int_types.h |
45e28ee0 | 170 | %{_includedir}/mp4ffint.h |
7c7f8a92 | 171 | %{_includedir}/neaacdec.h |
9c3cb898 | 172 | |
68e9ffd2 | 173 | %if %{with static_libs} |
9c3cb898 | 174 | %files static |
175 | %defattr(644,root,root,755) | |
327697e7 | 176 | %{_libdir}/libfaad.a |
8460ebc0 | 177 | %{_libdir}/libmp4ff.a |
68e9ffd2 | 178 | %endif |
f4330271 | 179 | |
db60caea | 180 | %if %{with xmms} |
f4330271 JB |
181 | %files -n xmms-input-faad2 |
182 | %defattr(644,root,root,755) | |
e4d59ed1 | 183 | %attr(755,root,root) %{xmms_input_plugindir}/libmp4.so |
f4330271 | 184 | %endif |
327697e7 JB |
185 | |
186 | %if %{with mpeg4ip} | |
187 | %files -n mpeg4ip-plugin-faad2 | |
188 | %defattr(644,root,root,755) | |
e4d59ed1 | 189 | %attr(755,root,root) %{_libdir}/mp4player_plugin/faad2_plugin.so* |
327697e7 | 190 | %endif |