4 # _without_qt - disables QT support
5 # _with_divx4 - enables divx4linux support (proprietary, binary-only lib)
7 %define _snapver 20020913
8 %define _snap %{_snapver}
9 Summary: Library for playing AVI files
10 Summary(pl): Biblioteka do odtwarzania plików AVI
11 Summary(pt_BR): Biblioteca para reproduzir formatos de áudio e vídeo usando binários win32
14 Release: 0.%{_snap}.3%{?_with_divx4:+divx4}
18 Source0: http://avifile.sourceforge.net/%{name}-%{version}-%{_snap}.tgz
19 Source1: %{name}.desktop
20 Patch0: %{name}-shareware.patch
21 Patch1: %{name}-no_libnsl.patch
22 Patch2: %{name}-vidix.patch
23 Patch3: %{name}-configure.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_divx4: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 >= 3.0.5}
41 BuildRequires: xvid-devel
43 BuildConflicts: wine-devel
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _prefix /usr/X11R6
47 %define _mandir %{_prefix}/man
50 Avifile is a library that allow programs to read and write compressed
51 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
52 (De)compression is performed with various plugins (Win32, FFMpeg,...)
55 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
56 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
57 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
60 Avifile busca criar uma biblioteca usável de suporte a arquivos AVI e
61 um conjunto básico de utilitários (para reprodução, captura e edição)
62 para o Linux. Contém classes C++ para leitura e criação de AVIs e
63 interfaces para compressores e descompresseores de áudio e vídeo.
66 Summary: Header file required to build programs using libavifile
67 Summary(pl): Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
68 Summary(pt_BR): Componentes para desenvolvimento com a avifile
69 Group: X11/Development/Libraries
70 Requires: XFree86-devel
71 Requires: %{name} = %{version}
74 Header files required to build programs using libavifile.
76 %description devel -l pl
77 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
80 %description devel -l pt_BR
81 Componentes para desenvolvimento com a avifile.
84 Summary: Player for AVI/ASF/WMF files
85 Summary(pl): Odtwarzacz plików AVI/ASF/WMF
86 Group: X11/Applications/Multimedia
87 Requires: %{name} = %{version}
90 Sample player for AVI, ASF, WFM (with straming support) files.
92 %description aviplay -l pl
93 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
97 Summary: Sample programs using the avifile library
98 Summary(pl): Przyk³adowe programy u¿ywaj±ce biblioteki avifile
99 Group: X11/Applications/Multimedia
100 Requires: %{name} = %{version}
103 Qt-based AVI utilities with few other useful supporting tools for TV
104 capturing, AVI recompression, benchmarking, joining AVI files. These
105 programs have more bugs as they are not as extensively developed as
108 %description utils -l pl
109 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
110 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
111 s± tak intensywnie rozwijane jak odtwarzacz.
114 Summary: Win32 audio/video plugin
115 Summary(pl): Plugin audio/video win32
117 Requires: %{name} = %{version}
121 Plugin for using Win32 DLL libraries in avifile located in
124 %description win32 -l pl
125 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
129 Summary: GPL MPEG4 codec
130 Summary(pl): Kodek MPEG4 na licencji GPL
132 Requires: %{name} = %{version}
135 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
136 server and a generic audio and video file converter.
138 It can grab from a standard Video4Linux video source and convert it
139 into several file formats based on DCT/motion compensation encoding.
140 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
143 %description ffmpeg -l pl
144 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
145 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
147 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
148 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
149 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
150 kompatybilnego z AC3 strumienia.
153 Summary: Fast MPEG4 codec
154 Summary(pl): Szybki kodek MPEG4
156 Requires: %{name} = %{version}
158 Obsoletes: avifile-divx4
161 DivX MPEG-4 decoder and encoder.
163 %description divx -l pl
164 Dekoder i koder MPEG-4 DivX.
167 Summary: Vorbis audio plugin
168 Summary(pl): Plugin vorbis audio.
170 Requires: %{name} = %{version}
173 Plugin for decompression of Vorbis audio streams.
175 %description vorbis -l pl
176 Plugin do dekompresji strumieni audio Vorbis.
179 Summary: MAD - MPEG audio plugin
180 Summary(pl): MAD - plugin MPEG audio
182 Requires: %{name} = %{version}
185 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
187 %description mad -l pl
188 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
190 %package lame_audioenc
191 Summary: MP3 audio encoder plugin
192 Summary(pl): Plugin enkoduj±cy d¼wiêk w formacie MP3
194 Requires: %{name} = %{version}
196 %description lame_audioenc
197 Plugin for mp3 encoding capability of avirecompress tool.
199 %description lame_audioenc -l pl
200 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
204 Summary(pl): Kodek XVID
206 Requires: %{name} = %{version}
210 XVID decoder and encoder.
212 %description xvid -l pl
213 Dekoder i koder XVID.
216 %setup -q -n avifile0.7-%{version}
223 rm -f missing aclocal.m4
230 cd plugins/libmad/libmad
238 # This is The WRONG Way (tm)
239 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
240 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
243 CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
244 FFMPEG_CFLAGS="%{rpmcflags} -ffast-math %{!?debug:-fomit-frame-pointer}" \
245 --with-qt-includes=%{_includedir}/qt \
246 --with-qt-libraries=%{_libdir} \
250 --enable-ffmpeg-a52 \
251 %{?_with_divx4:--enable-divx4} \
253 %{?_without_qt:--without-qt}
259 rm -rf $RPM_BUILD_ROOT
260 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
263 DESTDIR="$RPM_BUILD_ROOT" \
264 m4datadir="%{_aclocaldir}"
266 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
268 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
269 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
272 rm -rf $RPM_BUILD_ROOT
274 %post -p /sbin/ldconfig
275 %postun -p /sbin/ldconfig
278 %defattr(644,root,root,755)
279 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
280 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
281 %attr(755,root,root) %{_libdir}/lib*.so.*.*
282 %dir %{_libdir}/avifile*
283 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
284 %attr(755,root,root) %{_libdir}/avifile*/audiodec.la
285 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
286 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.la
287 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
288 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.la
289 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
290 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.la
293 %defattr(644,root,root,755)
294 %doc doc/README-DEVEL*
295 %attr(755,root,root) %{_bindir}/avifile-config
296 %attr(755,root,root) %{_bindir}/mmxnow-config
297 %attr(755,root,root) %{_libdir}/lib*.la
299 %{_includedir}/%{name}
303 %if %{?_without_qt:0}%{!?_without_qt:1}
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_bindir}/aviplay
307 %{_mandir}/man1/aviplay.1*
309 %{_applnkdir}/Multimedia/*
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
315 %attr(755,root,root) %{_bindir}/kv4lsetup
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
322 %attr(755,root,root) %{_libdir}/avifile*/win32.la
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
328 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
330 %if %{?_with_divx4:1}%{!?_with_divx4:0}
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/avifile*/divx*.so*
334 %attr(755,root,root) %{_libdir}/avifile*/divx*.la
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
340 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.la
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
345 %attr(755,root,root) %{_libdir}/avifile*/mad*.la
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
350 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
356 %attr(755,root,root) %{_libdir}/avifile*/xvid.la