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