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