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