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