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