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