]> git.pld-linux.org Git - packages/avifile.git/blob - avifile.spec
- massive attack, adding Source-md5
[packages/avifile.git] / avifile.spec
1 # It's sick.
2 #
3 # Conditional build:
4 # _without_qt           - disables QT support
5 # _with_divx            - enables divx4linux support (proprietary, binary-only
6 #                         lib)  note: if disabled, divx is decoded by ffmpeg
7 # _with_nas             - enables nas support
8 #
9 %define         _snapver        20030319
10 %define         _snap           %{_snapver}
11 Summary:        Library for playing AVI files
12 Summary(pl):    Biblioteka do odtwarzania plików AVI
13 Summary(pt_BR): Biblioteca para reproduzir formatos de áudio e vídeo usando binários win32
14 Name:           avifile
15 Version:        0.7.34
16 Release:        0.%{_snap}%{?_with_divx:+divx}
17 Epoch:          3
18 License:        GPL
19 Group:          X11/Libraries
20 Source0:        http://avifile.sourceforge.net/%{name}-%{version}-%{_snap}.tgz
21 # Source0-md5: 5b3a831ed3d12a5d12d23b8d9673b88d
22 Source1:        %{name}.desktop
23 Patch0:         %{name}-shareware.patch
24 Patch1:         %{name}-no_libnsl.patch
25 Patch2:         %{name}-fix-keys.patch
26 Patch3:         %{name}-etc_dir.patch
27 Patch4:         %{name}-nolibtooltest.patch
28 Patch5:         %{name}-aviplay_h.patch
29 URL:            http://avifile.sourceforge.net/
30 BuildRequires:  SDL-devel >= 1.2.0
31 BuildRequires:  XFree86-devel
32 BuildRequires:  a52dec-libs-devel
33 BuildRequires:  audiofile-devel
34 BuildRequires:  autoconf
35 BuildRequires:  automake
36 %{?_with_divx:BuildRequires:    divx4linux-devel}
37 BuildRequires:  lame-libs-devel
38 BuildRequires:  libjpeg-devel
39 BuildRequires:  libogg-devel
40 BuildRequires:  libtool >= 1:1.4.3
41 BuildRequires:  libvorbis-devel >= 1:1.0
42 %{?_with_nas:BuildRequires:     nas-devel}
43 %{?!_without_qt:BuildRequires:  qt-devel >= 2.0.0}
44 BuildRequires:  unzip
45 %ifarch %{ix86} ppc
46 BuildRequires:  xvid-devel
47 %endif
48 BuildConflicts: wine-devel
49 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50
51 %description
52 Avifile is a library that allow programs to read and write compressed
53 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
54 (De)compression is performed with various plugins (Win32, FFMpeg,...)
55
56 %description -l pl
57 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
58 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
59 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
60
61 %description -l pt_BR
62 Avifile busca criar uma biblioteca usável de suporte a arquivos AVI e
63 um conjunto básico de utilitários (para reprodução, captura e edição)
64 para o Linux. Contém classes C++ para leitura e criação de AVIs e
65 interfaces para compressores e descompresseores de áudio e vídeo.
66
67 %package devel
68 Summary:        Header file required to build programs using libavifile
69 Summary(pl):    Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
70 Summary(pt_BR): Componentes para desenvolvimento com a avifile
71 Group:          X11/Development/Libraries
72 Requires:       XFree86-devel
73 Requires:       %{name} = %{version}
74
75 %description devel
76 Header files required to build programs using libavifile.
77
78 %description devel -l pl
79 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
80 libavifile.
81
82 %description devel -l pt_BR
83 Componentes para desenvolvimento com a avifile.
84
85 %package aviplay
86 Summary:        Player for AVI/ASF/WMF files
87 Summary(pl):    Odtwarzacz plików AVI/ASF/WMF
88 Group:          X11/Applications/Multimedia
89 Requires:       %{name} = %{version}
90
91 %description aviplay
92 Sample player for AVI, ASF, WFM (with straming support) files.
93
94 %description aviplay -l pl
95 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
96 odtwarzania z sieci.)
97
98 %package utils
99 Summary:        Sample programs using the avifile library
100 Summary(pl):    Przyk³adowe programy u¿ywaj±ce biblioteki avifile
101 Group:          X11/Applications/Multimedia
102 Requires:       %{name} = %{version}
103
104 %description utils
105 Qt-based AVI utilities with few other useful supporting tools for TV
106 capturing, AVI recompression, benchmarking, joining AVI files. These
107 programs have more bugs as they are not as extensively developed as
108 player.
109
110 %description utils -l pl
111 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
112 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
113 s± tak intensywnie rozwijane jak odtwarzacz.
114
115 %package win32
116 Summary:        Win32 audio/video plugin
117 Summary(pl):    Plugin audio/video win32
118 Group:          X11/Libraries
119 Requires:       %{name} = %{version}
120 Requires:       w32codec
121
122 %description win32
123 Plugin for using Win32 DLL libraries in avifile located in
124 /usr/lib/win32.
125
126 %description win32 -l pl
127 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
128 bibliotek DLL Win32.
129
130 %package ffmpeg
131 Summary:        GPL MPEG4 codec
132 Summary(pl):    Kodek MPEG4 na licencji GPL
133 Group:          X11/Libraries
134 Requires:       %{name} = %{version}
135
136 %description ffmpeg
137 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
138 server and a generic audio and video file converter.
139
140 It can grab from a standard Video4Linux video source and convert it
141 into several file formats based on DCT/motion compensation encoding.
142 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
143 stream.
144
145 %description ffmpeg -l pl
146 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
147 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
148
149 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
150 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
151 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
152 kompatybilnego z AC3 strumienia.
153
154 %package divx
155 Summary:        Fast MPEG4 codec
156 Summary(pl):    Szybki kodek MPEG4
157 Group:          X11/Libraries
158 Requires:       %{name} = %{version}
159 Requires:       divx4linux
160 Obsoletes:      avifile-divx4
161
162 %description divx
163 DivX MPEG-4 decoder and encoder.
164
165 %description divx -l pl
166 Dekoder i koder MPEG-4 DivX.
167
168 %package vorbis
169 Summary:        Vorbis audio plugin
170 Summary(pl):    Plugin vorbis audio
171 Group:          X11/Libraries
172 Requires:       %{name} = %{version}
173
174 %description vorbis
175 Plugin for decompression of Vorbis audio streams.
176
177 %description vorbis -l pl
178 Plugin do dekompresji strumieni audio Vorbis.
179
180 %package mad
181 Summary:        MAD - MPEG audio plugin
182 Summary(pl):    MAD - plugin MPEG audio
183 Group:          X11/Libraries
184 Requires:       %{name} = %{version}
185
186 %description mad
187 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
188
189 %description mad -l pl
190 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
191
192 %package lame_audioenc
193 Summary:        MP3 audio encoder plugin
194 Summary(pl):    Plugin enkoduj±cy d¼wiêk w formacie MP3
195 Group:          X11/Libraries
196 Requires:       %{name} = %{version}
197
198 %description lame_audioenc
199 Plugin for mp3 encoding capability of avirecompress tool.
200
201 %description lame_audioenc -l pl
202 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
203
204 %package xvid
205 Summary:        XVID codec
206 Summary(pl):    Kodek XVID
207 Group:          X11/Libraries
208 Requires:       %{name} = %{version}
209 Requires:       xvid
210
211 %description xvid
212 XVID decoder and encoder.
213
214 %description xvid -l pl
215 Dekoder i koder XVID.
216
217 %package vidix-driver-fb
218 Summary:        VIDIX driver for generic FrameBuffer
219 Summary(pl):    Sterownik VIDIX dla zwyk³ego FrameBuffera
220 Group:          X11/Libraries
221 Requires:       %{name} = %{version}
222
223 %description vidix-driver-fb
224 VIDIX driver for generic FrameBuffer.
225
226 %description vidix-driver-fb -l pl
227 Sterownik VIDIX dla zwyk³ego FrameBuffera.
228
229 %package vidix-driver-mach64
230 Summary:        VIDIX driver for ATI Mach64 video adapters
231 Summary(pl):    Sterownik VIDIX dla kart graficznych ATI Mach64
232 Group:          X11/Libraries
233 Requires:       %{name} = %{version}
234
235 %description vidix-driver-mach64
236 VIDIX driver for ATI Mach64 adapters.
237
238 %description vidix-driver-mach64 -l pl
239 Sterownik vidix dla kart graficznych ATI Mach64.
240
241 %package vidix-driver-rage128
242 Summary:        VIDIX driver for ATI Rage128 video adapters
243 Summary(pl):    Sterownik VIDIX dla kart graficznych ATI Rage128
244 Group:          X11/Libraries
245 Requires:       %{name} = %{version}
246
247 %description vidix-driver-rage128
248 VIDIX driver for ATI Rage128 video adapters.
249
250 %description vidix-driver-rage128 -l pl
251 Sterownik VIDIX dla kart graficznych ATI Rage128.
252
253 %package vidix-driver-radeon
254 Summary:        VIDIX driver for ATI Radeon video adapters
255 Summary(pl):    Sterownik VIDIX dla kart graficznych ATI Radeon
256 Group:          X11/Libraries
257 Requires:       %{name} = %{version}
258
259 %description vidix-driver-radeon
260 VIDIX driver for ATI Radeon video adapters.
261
262 %description vidix-driver-radeon -l pl
263 Sterownik VIDIX dla kart graficznych ATI Radeon.
264
265 %package vidix-driver-mga
266 Summary:        VIDIX driver for MGA (Matrox) video adapters
267 Summary(pl):    Sterownik VIDIX dla kart graficznych MGA (Matrox)
268 Group:          X11/Libraries
269 Requires:       %{name} = %{version}
270
271 %description vidix-driver-mga
272 VIDIX driver for MGA (Matrox) video adapters.
273
274 %description vidix-driver-mga -l pl
275 Sterownik VIDIX dla kart graficznych MGA (Matrox).
276
277 %package vidix-driver-nvidia
278 Summary:        VIDIX driver for NVidia video adapters
279 Summary(pl):    Sterownik VIDIX dla kart graficznych NVidia
280 Group:          X11/Libraries
281 Requires:       %{name} = %{version}
282
283 %description vidix-driver-nvidia
284 VIDIX driver for NVidia video adapters.
285
286 %description vidix-driver-nvidia -l pl
287 Sterownik VIDIX dla kart graficznych NVidia.
288
289 %package vidix-driver-permedia
290 Summary:        VIDIX driver for Permedia video adapters
291 Summary(pl):    Sterownik VIDIX dla kart graficznych Permedia
292 Group:          X11/Libraries
293 Requires:       %{name} = %{version}
294
295 %description vidix-driver-permedia
296 VIDIX driver for Permedia video adapters.
297
298 %description vidix-driver-permedia -l pl
299 Sterownik VIDIX dla kart graficznych Permedia.
300
301 %prep
302 %setup -q -n avifile0.7-%{version}
303 %patch0 -p1
304 %patch1 -p0
305 %patch2 -p1
306 %patch3 -p1
307 %patch4 -p1
308 %patch5 -p1
309
310 %build
311 %{__autoconf}
312
313 cd plugins/libmad/libmad
314 %{__autoconf}
315 cd ../../..
316
317 # This is The WRONG Way (tm)
318 %if %{!?_without_qt:1}%{?_without_qt:0}
319 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
320 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
321 %endif
322
323 %configure \
324         CPPFLAGS="-I/usr/include/divx -I/usr/include/xvid -I/usr/include/freetype2" \
325         AS="%{__cc}" \
326         FFMPEG_CFLAGS="%{rpmcflags} -ffast-math %{!?debug:-fomit-frame-pointer}" \
327         --with-qt-includes=%{_includedir}/qt \
328         --with-qt-libraries=%{_libdir} \
329         --enable-a52 \
330         --enable-release \
331         --enable-ffmpeg \
332         --enable-ffmpeg-a52 \
333         %{?_with_divx:--enable-divx4} \
334 %ifarch i586 i686 athlon
335         --enable-x86opt \
336 %else
337         --disable-x86opt \
338 %endif
339         %{?_without_qt:--without-qt} \
340         %{?_without_qt:--disable-samples}
341
342 touch lib/dummy.cpp
343 %{__make}
344
345 %install
346 rm -rf $RPM_BUILD_ROOT
347 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
348
349 %{__make} install \
350         DESTDIR="$RPM_BUILD_ROOT" \
351         m4datadir="%{_aclocaldir}"
352
353 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
354
355 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
356 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
357
358 %clean
359 rm -rf $RPM_BUILD_ROOT
360
361 %post   -p /sbin/ldconfig
362 %postun -p /sbin/ldconfig
363
364 %files
365 %defattr(644,root,root,755)
366 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
367 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
368 %attr(755,root,root) %{_libdir}/lib*.so.*.*
369 %dir %{_libdir}/avifile*
370 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
371 %{_libdir}/avifile*/audiodec.la
372 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
373 %{_libdir}/avifile*/mpeg_audiodec.la
374 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
375 %{_libdir}/avifile*/ac3pass.la
376 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
377 %{_libdir}/avifile*/mjpeg.la
378 %ifarch %{ix86} ppc
379 %dir %{_libdir}/avifile*/vidix
380 %endif
381
382 %files devel
383 %defattr(644,root,root,755)
384 %doc doc/README-DEVEL*
385 %attr(755,root,root) %{_bindir}/avifile-config
386 %{_libdir}/lib*.la
387 %{_libdir}/lib*.so
388 %{_includedir}/%{name}
389 %{_aclocaldir}/*.m4
390 %{_pkgconfigdir}/%{name}.pc
391 %{_mandir}/man1/avifile-config.1*
392
393 %if %{?_without_qt:0}%{!?_without_qt:1}
394 %files aviplay
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_bindir}/aviplay
397 %{_mandir}/man1/aviplay.1*
398 %{_datadir}/%{name}*
399 %{_applnkdir}/Multimedia/*
400 %{_pixmapsdir}/*
401 %endif
402
403 %files utils
404 %defattr(644,root,root,755)
405 %{?!_without_qt:%attr(755,root,root) %{_bindir}/avicap}
406 %{?!_without_qt:%attr(755,root,root) %{_bindir}/avirecompress}
407 %attr(755,root,root) %{_bindir}/avibench
408 %attr(755,root,root) %{_bindir}/avicat
409 %attr(755,root,root) %{_bindir}/avimake
410 %attr(755,root,root) %{_bindir}/avirec
411 %attr(755,root,root) %{_bindir}/avitype
412 %attr(755,root,root) %{_bindir}/kv4lsetup
413 %{?!_without_qt:%{_mandir}/man1/avicap.1*}
414 %{?!_without_qt:%{_mandir}/man1/avirecompress.1*}
415 %{_mandir}/man1/avibench.1*
416 %{_mandir}/man1/avicat.1*
417 %{_mandir}/man1/avimake.1*
418 %{_mandir}/man1/avirec.1*
419 %{_mandir}/man1/avitype.1*
420 %{_mandir}/man1/kv4lsetup.1*
421
422 %ifarch %{ix86}
423 %files win32
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
426 %{_libdir}/avifile*/win32.la
427 %endif
428
429 %files ffmpeg
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
432 %{_libdir}/avifile*/ffmpeg.la
433
434 %if %{?_with_divx:1}%{!?_with_divx:0}
435 %files divx
436 %defattr(644,root,root,755)
437 %attr(755,root,root) %{_libdir}/avifile*/divx*.so*
438 %{_libdir}/avifile*/divx*.la
439 %endif
440
441 %files vorbis
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
444 %{_libdir}/avifile*/vorbis*.la
445
446 %files mad
447 %defattr(644,root,root,755)
448 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
449 %{_libdir}/avifile*/mad*.la
450
451 %files lame_audioenc
452 %defattr(644,root,root,755)
453 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
454 %attr(755,root,root) %{_libdir}/avifile*/mp3lame_audioenc.so*
455 %{_libdir}/avifile*/mp3lamebin_audioenc.la
456 %{_libdir}/avifile*/mp3lame_audioenc.la
457
458 %ifarch %{ix86} ppc
459 %files xvid
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
462 %{_libdir}/avifile*/xvid.la
463 %endif
464
465 %ifnarch ppc
466 %files vidix-driver-fb
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_libdir}/avifile*/vidix/libgenfb.so*
469 %{_libdir}/avifile*/vidix/libgenfb.la
470
471 %files vidix-driver-mach64
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/avifile*/vidix/libmach64.so*
474 %{_libdir}/avifile*/vidix/libmach64.la
475
476 %files vidix-driver-rage128
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/avifile*/vidix/librage128.so*
479 %{_libdir}/avifile*/vidix/librage128.la
480
481 %files vidix-driver-radeon
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_libdir}/avifile*/vidix/libradeon.so*
484 %{_libdir}/avifile*/vidix/libradeon.la
485
486 %files vidix-driver-mga
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_libdir}/avifile*/vidix/libmga*.so*
489 %{_libdir}/avifile*/vidix/libmga*.la
490
491 %files vidix-driver-nvidia
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_libdir}/avifile*/vidix/libnvidia.so*
494 %{_libdir}/avifile*/vidix/libnvidia.la
495
496 %files vidix-driver-permedia
497 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_libdir}/avifile*/vidix/libpm3.so*
499 %{_libdir}/avifile*/vidix/libpm3.la
500 %endif
This page took 0.10037 seconds and 4 git commands to generate.