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