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 Patch4: %{name}-compilation.patch
25 URL: http://avifile.sourceforge.net/
26 BuildRequires: SDL-devel >= 1.2.0
27 BuildRequires: XFree86-devel
28 BuildRequires: a52dec-libs-devel
29 BuildRequires: audiofile-devel
30 BuildRequires: autoconf
31 BuildRequires: automake
32 %{?_with_divx4:BuildRequires: divx4linux-devel}
33 BuildRequires: lame-libs-devel
34 BuildRequires: libjpeg-devel
35 BuildRequires: libogg-devel
36 BuildRequires: libtool >= 0:1.4.2-9
37 BuildRequires: libvorbis-devel >= 1:1.0
38 BuildRequires: nas-devel
39 %{?!_without_qt:BuildRequires: qt-devel >= 3.0.5}
42 BuildRequires: xvid-devel
44 BuildConflicts: wine-devel
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _prefix /usr/X11R6
48 %define _mandir %{_prefix}/man
51 Avifile is a library that allow programs to read and write compressed
52 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
53 (De)compression is performed with various plugins (Win32, FFMpeg,...)
56 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
57 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
58 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
61 Avifile busca criar uma biblioteca usável de suporte a arquivos AVI e
62 um conjunto básico de utilitários (para reprodução, captura e edição)
63 para o Linux. Contém classes C++ para leitura e criação de AVIs e
64 interfaces para compressores e descompresseores de áudio e vídeo.
67 Summary: Header file required to build programs using libavifile
68 Summary(pl): Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
69 Summary(pt_BR): Componentes para desenvolvimento com a avifile
70 Group: X11/Development/Libraries
71 Requires: XFree86-devel
72 Requires: %{name} = %{version}
75 Header files required to build programs using libavifile.
77 %description devel -l pl
78 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
81 %description devel -l pt_BR
82 Componentes para desenvolvimento com a avifile.
85 Summary: Player for AVI/ASF/WMF files
86 Summary(pl): Odtwarzacz plików AVI/ASF/WMF
87 Group: X11/Applications/Multimedia
88 Requires: %{name} = %{version}
91 Sample player for AVI, ASF, WFM (with straming support) files.
93 %description aviplay -l pl
94 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
98 Summary: Sample programs using the avifile library
99 Summary(pl): Przyk³adowe programy u¿ywaj±ce biblioteki avifile
100 Group: X11/Applications/Multimedia
101 Requires: %{name} = %{version}
104 Qt-based AVI utilities with few other useful supporting tools for TV
105 capturing, AVI recompression, benchmarking, joining AVI files. These
106 programs have more bugs as they are not as extensively developed as
109 %description utils -l pl
110 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
111 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
112 s± tak intensywnie rozwijane jak odtwarzacz.
115 Summary: Win32 audio/video plugin
116 Summary(pl): Plugin audio/video win32
118 Requires: %{name} = %{version}
122 Plugin for using Win32 DLL libraries in avifile located in
125 %description win32 -l pl
126 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
130 Summary: GPL MPEG4 codec
131 Summary(pl): Kodek MPEG4 na licencji GPL
133 Requires: %{name} = %{version}
136 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
137 server and a generic audio and video file converter.
139 It can grab from a standard Video4Linux video source and convert it
140 into several file formats based on DCT/motion compensation encoding.
141 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
144 %description ffmpeg -l pl
145 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
146 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
148 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
149 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
150 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
151 kompatybilnego z AC3 strumienia.
154 Summary: Fast MPEG4 codec
155 Summary(pl): Szybki kodek MPEG4
157 Requires: %{name} = %{version}
159 Obsoletes: avifile-divx4
162 DivX MPEG-4 decoder and encoder.
164 %description divx -l pl
165 Dekoder i koder MPEG-4 DivX.
168 Summary: Vorbis audio plugin
169 Summary(pl): Plugin vorbis audio.
171 Requires: %{name} = %{version}
174 Plugin for decompression of Vorbis audio streams.
176 %description vorbis -l pl
177 Plugin do dekompresji strumieni audio Vorbis.
180 Summary: MAD - MPEG audio plugin
181 Summary(pl): MAD - plugin MPEG audio
183 Requires: %{name} = %{version}
186 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
188 %description mad -l pl
189 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
191 %package lame_audioenc
192 Summary: MP3 audio encoder plugin
193 Summary(pl): Plugin enkoduj±cy d¼wiêk w formacie MP3
195 Requires: %{name} = %{version}
197 %description lame_audioenc
198 Plugin for mp3 encoding capability of avirecompress tool.
200 %description lame_audioenc -l pl
201 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
205 Summary(pl): Kodek XVID
207 Requires: %{name} = %{version}
211 XVID decoder and encoder.
213 %description xvid -l pl
214 Dekoder i koder XVID.
217 %setup -q -n avifile0.7-%{version}
225 rm -f missing aclocal.m4
232 cd plugins/libmad/libmad
240 # This is The WRONG Way (tm)
241 %if %{!?_without_qt:1}%{?_without_qt:0}
242 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
243 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
247 CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
248 FFMPEG_CFLAGS="%{rpmcflags} -ffast-math %{!?debug:-fomit-frame-pointer}" \
249 --with-qt-includes=%{_includedir}/qt \
250 --with-qt-libraries=%{_libdir} \
254 --enable-ffmpeg-a52 \
255 %{?_with_divx4:--enable-divx4} \
257 %{?_without_qt:--without-qt} \
258 %{?_without_qt:--disable-samples}
264 rm -rf $RPM_BUILD_ROOT
265 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
268 DESTDIR="$RPM_BUILD_ROOT" \
269 m4datadir="%{_aclocaldir}"
271 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
273 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
274 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
277 rm -rf $RPM_BUILD_ROOT
279 %post -p /sbin/ldconfig
280 %postun -p /sbin/ldconfig
283 %defattr(644,root,root,755)
284 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
285 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
286 %attr(755,root,root) %{_libdir}/lib*.so.*.*
287 %dir %{_libdir}/avifile*
288 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
289 %attr(755,root,root) %{_libdir}/avifile*/audiodec.la
290 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
291 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.la
292 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
293 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.la
294 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
295 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.la
298 %defattr(644,root,root,755)
299 %doc doc/README-DEVEL*
300 %attr(755,root,root) %{_bindir}/avifile-config
301 %attr(755,root,root) %{_bindir}/mmxnow-config
302 %attr(755,root,root) %{_libdir}/lib*.la
304 %{_includedir}/%{name}
308 %if %{?_without_qt:0}%{!?_without_qt:1}
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_bindir}/aviplay
312 %{_mandir}/man1/aviplay.1*
314 %{_applnkdir}/Multimedia/*
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
320 %attr(755,root,root) %{_bindir}/kv4lsetup
325 %defattr(644,root,root,755)
326 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
327 %attr(755,root,root) %{_libdir}/avifile*/win32.la
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
333 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
335 %if %{?_with_divx4:1}%{!?_with_divx4:0}
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/avifile*/divx*.so*
339 %attr(755,root,root) %{_libdir}/avifile*/divx*.la
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
345 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.la
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
350 %attr(755,root,root) %{_libdir}/avifile*/mad*.la
353 %defattr(644,root,root,755)
354 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
355 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
361 %attr(755,root,root) %{_libdir}/avifile*/xvid.la