]>
Commit | Line | Data |
---|---|---|
112d7ac0 JB |
1 | # |
2 | # Conditional build: | |
7896798f | 3 | %bcond_with mmx # use MMX in rtjpeg plugin (no runtime detection) |
12df7e16 | 4 | %bcond_without ffmpeg # ffmpeg plugin |
258fdb2c | 5 | %bcond_without gpl # build LGPL library (disables some plugins) |
112d7ac0 JB |
6 | # |
7 | %ifarch athlon pentium3 pentium4 %{x8664} | |
6aab775b | 8 | %define with_mmx 1 |
112d7ac0 | 9 | %endif |
64425ff6 | 10 | Summary: Library for reading and writing quicktime files |
276d66b3 | 11 | Summary(pl.UTF-8): Biblioteka do odczytu i zapisu plików quicktime |
64425ff6 | 12 | Name: libquicktime |
af4dfbcd SS |
13 | Version: 1.1.5 |
14 | Release: 1 | |
258fdb2c | 15 | %if %{with gpl} |
cf209425 | 16 | License: GPL v2+ |
258fdb2c | 17 | %else |
cf209425 | 18 | License: LGPL v2.1+ |
258fdb2c | 19 | %endif |
64425ff6 JB |
20 | Group: Libraries |
21 | Source0: http://dl.sourceforge.net/libquicktime/%{name}-%{version}.tar.gz | |
af4dfbcd | 22 | # Source0-md5: 0fd45b3deff0317c2f85a34b1b106acf |
64425ff6 | 23 | URL: http://libquicktime.sourceforge.net/ |
6aab775b | 24 | BuildRequires: OpenGL-GLU-devel |
112d7ac0 JB |
25 | BuildRequires: alsa-lib-devel >= 0.9 |
26 | BuildRequires: autoconf >= 2.50 | |
a6d1d27b | 27 | BuildRequires: automake |
258fdb2c JB |
28 | %if %{with gpl} |
29 | BuildRequires: faac-devel >= 1.24 | |
30 | BuildRequires: faad2-devel >= 2.0 | |
31 | %endif | |
3048aacf | 32 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9-4.20080822.6} |
8f1e70a2 | 33 | BuildRequires: gettext-devel >= 0.14.1 |
112d7ac0 JB |
34 | BuildRequires: gtk+2-devel >= 2:2.4.0 |
35 | BuildRequires: lame-libs-devel >= 3.93 | |
3edb2d8b | 36 | BuildRequires: libavc1394-devel >= 0.3.1 |
112d7ac0 JB |
37 | BuildRequires: libdv-devel >= 0.102 |
38 | BuildRequires: libjpeg-devel >= 6b | |
3edb2d8b | 39 | # jpeg-mmx-devel |
8f1e70a2 | 40 | BuildRequires: libpng-devel >= 1.2.23 |
64425ff6 | 41 | BuildRequires: libraw1394-devel >= 0.9 |
112d7ac0 JB |
42 | BuildRequires: libtool |
43 | BuildRequires: libvorbis-devel >= 1:1.0 | |
cf209425 | 44 | # pkgconfig: x264 >= 0.48 |
07a8d25f | 45 | BuildRequires: libx264-devel >= 0.1.2-1.20060828_2245 |
aa848d84 | 46 | BuildRequires: pkgconfig |
1ca9570f | 47 | BuildRequires: schroedinger-devel >= 1.0.5 |
1639c7aa | 48 | BuildRequires: sed >= 4.0 |
6aab775b PS |
49 | BuildRequires: xorg-lib-libXaw-devel |
50 | BuildRequires: xorg-lib-libXt-devel | |
51 | BuildRequires: xorg-lib-libXv-devel | |
112d7ac0 | 52 | BuildRequires: zlib-devel |
258fdb2c JB |
53 | Obsoletes: libquicktime-firewire |
54 | Obsoletes: libquicktime-firewire-devel | |
55 | Obsoletes: libquicktime-firewire-static | |
64425ff6 JB |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
58 | %description | |
59 | libquicktime is a library for reading and writing quicktime files. It | |
60 | is based on the quicktime4linux library, with the following | |
61 | extensions: | |
62 | - Sourcetree upgraded with autoconf/automake/libtool and all the other | |
87639563 | 63 | stuff, people like in "standard" Linux libraries. |
64425ff6 JB |
64 | - All 3rd party libraries (jpeg, OggVorbis) were removed to reduce |
65 | download size, compilation time and code duplication on users | |
66 | harddisks. Instead, the sytemwide installed libraries are used. | |
67 | - All codecs have been moved into dynamically loadable modules. This | |
68 | makes it possible to distribute closed source codecs (or codecs with | |
69 | an incompatible license) as separate packages. | |
70 | - Unlike other quicktime libraries, it's source compatible with | |
71 | quicktime4linux. Programs like cinelerra or xmovie can be compiled | |
72 | with libquicktime. | |
73 | - The codecs themselves are also source compatible with | |
74 | quicktime4linux, so porting codecs between quicktime4linux and | |
75 | libquicktime requires only little brain load. | |
76 | - Special API extensions allow access to the codec registry. | |
77 | Applications can get important information about the codecs, their | |
78 | settable parameters etc. at runtime. | |
c78dc9af | 79 | |
b44a42b2 JR |
80 | %description -l pl.UTF-8 |
81 | libquicktime to biblioteka do odczytu i zapisu plików quicktime. Jest | |
82 | oparta na bibliotece quicktime4linux z następującymi zmianami: | |
83 | - drzewo źródeł zostało przerobione na używanie | |
84 | autoconfa/automake'a/libtola itp. narzędzi, tak jak w standardowych | |
87639563 | 85 | bibliotekach linuksowych |
b44a42b2 JR |
86 | - wszystkie zewnętrzne biblioteki (jpeg, OggVorbis) zostały usunięte w |
87 | celu zmniejszenia ilości danych do ściągania, czasu kompilacji i | |
88 | powielonego kodu na dyskach użytkowników; zamiast tego używane są | |
87639563 | 89 | biblioteki systemowe |
b44a42b2 JR |
90 | - wszystkie kodeki zostały przeniesione do dynamicznie ładowanych |
91 | modułów; pozwala to rozprowadzać kodeki bez źródeł (lub kodeki z | |
87639563 | 92 | niekompatybilnymi licencjami) jako osobne pakiety |
b44a42b2 | 93 | - w przeciwieństwie do innych bibliotek quicktime jest źródłowo |
87639563 | 94 | kompatybilna z quicktime4linux; programy takie jak cinelerra czy |
b44a42b2 JR |
95 | xmovie mogą być kompilowane z libquicktime |
96 | - kodeki także są źródłowo kompatybilne z quicktime4linux, więc | |
97 | przenoszenie kodeków pomiędzy quicktime4linux i libquicktime nie | |
87639563 | 98 | wymaga zbyt wiele pracy |
b44a42b2 JR |
99 | - dodano specjalne rozszerzenia API pozwalające na dostęp do rejestru |
100 | kodeków; aplikacje mogą pobierać ważne informacje o kodekach, ich | |
101 | parametry itp. w czasie działania aplikacji. | |
87639563 | 102 | |
64425ff6 JB |
103 | %package devel |
104 | Summary: Header files for libquicktime library | |
276d66b3 | 105 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libquicktime |
64425ff6 | 106 | Group: Development/Libraries |
3edb2d8b | 107 | Requires: %{name} = %{version}-%{release} |
112d7ac0 | 108 | Requires: zlib-devel |
7896798f | 109 | Obsoletes: quicktime4linux-devel |
64425ff6 JB |
110 | |
111 | %description devel | |
112 | Header files for libquicktime library. | |
113 | ||
b44a42b2 JR |
114 | %description devel -l pl.UTF-8 |
115 | Pliki nagłówkowe biblioteki libquicktime. | |
64425ff6 JB |
116 | |
117 | %package static | |
118 | Summary: Static libquicktime library | |
276d66b3 | 119 | Summary(pl.UTF-8): Statyczna biblioteka libquicktime |
64425ff6 | 120 | Group: Development/Libraries |
3edb2d8b | 121 | Requires: %{name}-devel = %{version}-%{release} |
7896798f | 122 | Obsoletes: quicktime4linux-static |
64425ff6 JB |
123 | |
124 | %description static | |
125 | Static libquicktime library. | |
126 | ||
b44a42b2 | 127 | %description static -l pl.UTF-8 |
64425ff6 JB |
128 | Statyczna biblioteka libquicktime. |
129 | ||
3edb2d8b JB |
130 | %package utils |
131 | Summary: libquicktime utilities | |
276d66b3 | 132 | Summary(pl.UTF-8): Narzędzia do libquicktime |
3edb2d8b JB |
133 | Group: Applications/Multimedia |
134 | Requires: %{name} = %{version}-%{release} | |
135 | ||
136 | %description utils | |
137 | libquicktime utilities. | |
138 | ||
b44a42b2 JR |
139 | %description utils -l pl.UTF-8 |
140 | Narzędzia do libquicktime. | |
3edb2d8b | 141 | |
7896798f JB |
142 | %package dv |
143 | Summary: DV plugin for libquicktime | |
276d66b3 | 144 | Summary(pl.UTF-8): Wtyczka DV dla libquicktime |
7896798f JB |
145 | Group: Libraries |
146 | Requires: %{name} = %{version}-%{release} | |
147 | ||
148 | %description dv | |
149 | DV plugin for libquicktime. | |
150 | ||
b44a42b2 | 151 | %description dv -l pl.UTF-8 |
7896798f JB |
152 | Wtyczka DV dla libquicktime. |
153 | ||
258fdb2c JB |
154 | %package faac |
155 | Summary: faac plugin for libquicktime | |
276d66b3 | 156 | Summary(pl.UTF-8): Wtyczka faac dla libquicktime |
258fdb2c JB |
157 | Group: Libraries |
158 | Requires: %{name} = %{version}-%{release} | |
159 | ||
160 | %description faac | |
161 | faac plugin for libquicktime. | |
162 | ||
b44a42b2 | 163 | %description faac -l pl.UTF-8 |
258fdb2c JB |
164 | Wtyczka faac dla libquicktime. |
165 | ||
166 | %package faad2 | |
167 | Summary: faad2 plugin for libquicktime | |
276d66b3 | 168 | Summary(pl.UTF-8): Wtyczka faad2 dla libquicktime |
258fdb2c JB |
169 | Group: Libraries |
170 | Requires: %{name} = %{version}-%{release} | |
171 | ||
172 | %description faad2 | |
173 | faad2 plugin for libquicktime. | |
174 | ||
b44a42b2 | 175 | %description faad2 -l pl.UTF-8 |
258fdb2c JB |
176 | Wtyczka faad2 dla libquicktime. |
177 | ||
7896798f JB |
178 | %package ffmpeg |
179 | Summary: ffmpeg plugin for libquicktime | |
276d66b3 | 180 | Summary(pl.UTF-8): Wtyczka ffmpeg dla libquicktime |
7896798f JB |
181 | Group: Libraries |
182 | Requires: %{name} = %{version}-%{release} | |
183 | ||
184 | %description ffmpeg | |
185 | ffmpeg plugin for libquicktime. | |
186 | ||
b44a42b2 | 187 | %description ffmpeg -l pl.UTF-8 |
7896798f JB |
188 | Wtyczka ffmpeg dla libquicktime. |
189 | ||
190 | %package lame | |
191 | Summary: lame plugin for libquicktime | |
276d66b3 | 192 | Summary(pl.UTF-8): Wtyczka lame dla libquicktime |
7896798f JB |
193 | Group: Libraries |
194 | Requires: %{name} = %{version}-%{release} | |
195 | ||
196 | %description lame | |
197 | lame plugin for libquicktime. | |
198 | ||
b44a42b2 | 199 | %description lame -l pl.UTF-8 |
7896798f JB |
200 | Wtyczka lame dla libquicktime. |
201 | ||
202 | %package vorbis | |
203 | Summary: Ogg Vorbis plugin for libquicktime | |
276d66b3 | 204 | Summary(pl.UTF-8): Wtyczka Ogg Vorbis dla libquicktime |
7896798f JB |
205 | Group: Libraries |
206 | Requires: %{name} = %{version}-%{release} | |
207 | ||
208 | %description vorbis | |
209 | Ogg Vorbis plugin for libquicktime. | |
210 | ||
b44a42b2 | 211 | %description vorbis -l pl.UTF-8 |
7896798f JB |
212 | Wtyczka Ogg Vorbis dla libquicktime. |
213 | ||
42207760 JB |
214 | %package x264 |
215 | Summary: X264 plugin for libquicktime | |
276d66b3 | 216 | Summary(pl.UTF-8): Wtyczka X264 dla libquicktime |
42207760 JB |
217 | Group: Libraries |
218 | Requires: %{name} = %{version}-%{release} | |
219 | Requires: libx264 >= 0.1.2-1.20060430_2245 | |
220 | ||
221 | %description x264 | |
222 | X264 plugin for libquicktime. | |
223 | ||
b44a42b2 | 224 | %description x264 -l pl.UTF-8 |
42207760 JB |
225 | Wtyczka X264 dla libquicktime. |
226 | ||
315269ec AM |
227 | %package schroedinger |
228 | Summary: schroedinger plugin for libquicktime | |
229 | Summary(pl.UTF-8): Wtyczka schroedinger dla libquicktime | |
230 | Group: Libraries | |
231 | Requires: %{name} = %{version}-%{release} | |
232 | ||
233 | %description schroedinger | |
234 | schroedinger plugin for libquicktime. | |
235 | ||
236 | %description schroedinger -l pl.UTF-8 | |
237 | Wtyczka schroedinger dla libquicktime. | |
238 | ||
64425ff6 JB |
239 | %prep |
240 | %setup -q | |
112d7ac0 | 241 | |
90fc8b96 ER |
242 | rm -f m4/libtool.m4 m4/lt*.m4 |
243 | ||
258fdb2c JB |
244 | # evil, sets CFLAGS basing on /proc/cpuinfo, overrides our optflags |
245 | # (--with-cpuflags=none disables using /proc/cpuinfo, but not overriding) | |
1639c7aa | 246 | sed -i -e '19,$d;18aAC_DEFUN([LQT_OPT_CFLAGS],[OPT_CFLAGS="$CFLAGS"])' m4/lqt_opt_cflags.m4 |
64425ff6 JB |
247 | |
248 | %build | |
e601eb1e | 249 | touch config.rpath |
112d7ac0 JB |
250 | %{__libtoolize} |
251 | %{__aclocal} -I m4 | |
252 | %{__autoconf} | |
253 | %{__autoheader} | |
254 | %{__automake} | |
3edb2d8b | 255 | %configure \ |
8f1e70a2 | 256 | ac_cv_lib_iconv_libiconv_close=no \ |
258fdb2c | 257 | %{?with_gpl:--enable-gpl} \ |
112d7ac0 | 258 | %{!?with_mmx:--disable-mmx} \ |
8f1e70a2 | 259 | --enable-static \ |
6ad45ba4 | 260 | --without-doxygen \ |
8f1e70a2 | 261 | --with-libdv |
64425ff6 JB |
262 | %{__make} |
263 | ||
264 | %install | |
265 | rm -rf $RPM_BUILD_ROOT | |
266 | ||
267 | %{__make} install \ | |
268 | DESTDIR=$RPM_BUILD_ROOT | |
269 | ||
3edb2d8b JB |
270 | rm -f $RPM_BUILD_ROOT%{_libdir}/libquicktime/*.{la,a} |
271 | ||
1639c7aa JB |
272 | %find_lang %{name} |
273 | ||
64425ff6 JB |
274 | %clean |
275 | rm -rf $RPM_BUILD_ROOT | |
276 | ||
277 | %post -p /sbin/ldconfig | |
278 | %postun -p /sbin/ldconfig | |
279 | ||
1639c7aa | 280 | %files -f %{name}.lang |
64425ff6 JB |
281 | %defattr(644,root,root,755) |
282 | %doc README TODO | |
7896798f | 283 | # R: zlib |
3edb2d8b | 284 | %attr(755,root,root) %{_libdir}/libquicktime.so.*.*.* |
d777abbb | 285 | %attr(755,root,root) %ghost %{_libdir}/libquicktime.so.0 |
3edb2d8b JB |
286 | %dir %{_libdir}/libquicktime |
287 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_audiocodec.so | |
3edb2d8b JB |
288 | # R: libjpeg |
289 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_mjpeg.so | |
3edb2d8b JB |
290 | # R: libpng |
291 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_png.so | |
3edb2d8b | 292 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_rtjpeg.so |
3edb2d8b | 293 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_videocodec.so |
64425ff6 JB |
294 | |
295 | %files devel | |
296 | %defattr(644,root,root,755) | |
3edb2d8b JB |
297 | %attr(755,root,root) %{_bindir}/lqt-config |
298 | %attr(755,root,root) %{_libdir}/libquicktime.so | |
3edb2d8b | 299 | %{_libdir}/libquicktime.la |
c78dc9af | 300 | %{_includedir}/lqt |
3edb2d8b | 301 | %{_aclocaldir}/lqt.m4 |
87639563 | 302 | %{_pkgconfigdir}/libquicktime.pc |
64425ff6 JB |
303 | |
304 | %files static | |
305 | %defattr(644,root,root,755) | |
3edb2d8b | 306 | %{_libdir}/libquicktime.a |
7896798f | 307 | |
3edb2d8b JB |
308 | %files utils |
309 | %defattr(644,root,root,755) | |
310 | %attr(755,root,root) %{_bindir}/libquicktime_config | |
311 | %attr(755,root,root) %{_bindir}/lqtplay | |
312 | %attr(755,root,root) %{_bindir}/lqt_transcode | |
313 | %attr(755,root,root) %{_bindir}/qt* | |
314 | %{_mandir}/man1/lqtplay.1* | |
7896798f JB |
315 | |
316 | %files dv | |
317 | %defattr(644,root,root,755) | |
318 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_dv.so | |
319 | ||
258fdb2c JB |
320 | %if %{with gpl} |
321 | %files faac | |
322 | %defattr(644,root,root,755) | |
323 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_faac.so | |
324 | ||
325 | %files faad2 | |
326 | %defattr(644,root,root,755) | |
327 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_faad2.so | |
328 | %endif | |
329 | ||
7896798f JB |
330 | %if %{with ffmpeg} |
331 | %files ffmpeg | |
332 | %defattr(644,root,root,755) | |
333 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_ffmpeg.so | |
334 | %endif | |
335 | ||
336 | %files lame | |
337 | %defattr(644,root,root,755) | |
338 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_lame.so | |
339 | ||
340 | %files vorbis | |
341 | %defattr(644,root,root,755) | |
342 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_vorbis.so | |
ef77146d | 343 | |
315269ec AM |
344 | %files schroedinger |
345 | %defattr(644,root,root,755) | |
346 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_schroedinger.so | |
347 | ||
ef77146d JB |
348 | %if %{with gpl} |
349 | %files x264 | |
350 | %defattr(644,root,root,755) | |
351 | %attr(755,root,root) %{_libdir}/libquicktime/lqt_x264.so | |
352 | %endif |