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