4 # _without_qt - disables QT support
6 %define _snapver 20020816
7 %define _snap %{_snapver}
9 Summary: Library for playing AVI files
10 Summary(pl): Biblioteka do odtwarzania plików AVI
17 Source0: http://avifile.sourceforge.net/%{name}-%{version}-%{_snap}.tgz
18 Source1: %{name}.desktop
19 URL: http://avifile.sourceforge.net/
20 Patch0: %{name}-shareware.patch
21 Patch1: %{name}-deplib.patch
22 Patch2: %{name}-ac3.patch
23 Patch3: %{name}-size_t.patch
24 Patch4: %{name}-amfix.patch
25 Patch5: %{name}-xvid.patch
26 BuildRequires: SDL-devel >= 1.2.0
27 BuildRequires: XFree86-devel
28 BuildRequires: ac3dec-devel >= 0.6.1
29 BuildRequires: audiofile-devel
30 BuildRequires: autoconf
31 BuildRequires: automake
33 BuildRequires: divx4linux-devel
35 BuildRequires: lame-libs-devel
36 BuildRequires: libjpeg-devel
37 BuildRequires: libogg-devel
38 BuildRequires: libtool
39 BuildRequires: libvorbis-devel >= 1:1.0
40 BuildRequires: nas-devel
41 %{?!_without_qt:BuildRequires: qt-devel >= 3.0.5}
43 %ifarch %{ix86} ppc sparc sparc64 sparcv9
44 BuildRequires: xvid-devel
46 BuildConflicts: wine-devel
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
49 %define _prefix /usr/X11R6
50 %define _mandir %{_prefix}/man
53 Avifile is a library that allow programs to read and write compressed
54 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
55 (De)compression is performed with various plugins (Win32, FFMpeg,...)
58 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
59 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
60 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
63 Summary: Header file required to build programs using libavifile
64 Summary(pl): Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
65 Group: X11/Development/Libraries
66 Requires: XFree86-devel
67 Requires: %{name} = %{version}
70 Header files required to build programs using libavifile.
72 %description devel -l pl
73 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
77 Summary: Player for AVI/ASF/WMF files
78 Summary(pl): Odtwarzacz plików AVI/ASF/WMF
79 Group: X11/Applications/Multimedia
80 Requires: %{name} = %{version}
83 Sample player for AVI, ASF, WFM (with straming support) files.
85 %description aviplay -l pl
86 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
90 Summary: Sample programs using the avifile library
91 Summary(pl): Przyk³adowe programy u¿ywaj±ce biblioteki avifile
92 Group: X11/Applications/Multimedia
93 Requires: %{name} = %{version}
96 Qt-based AVI utilities with few other useful supporting tools for TV
97 capturing, AVI recompression, benchmarking, joining AVI files. These
98 programs have more bugs as they are not as extensively developed as
101 %description utils -l pl
102 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
103 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
104 s± tak intensywnie rozwijane jak odtwarzacz.
107 Summary: Win32 audio/video plugin
108 Summary(pl): Plugin audio/video win32
110 Requires: %{name} = %{version}
114 Plugin for using Win32 DLL libraries in avifile located in
117 %description win32 -l pl
118 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
122 Summary: GPL MPEG4 codec
123 Summary(pl): Kodek MPEG4 na licencji GPL
125 Requires: %{name} = %{version}
128 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
129 server and a generic audio and video file converter.
131 It can grab from a standard Video4Linux video source and convert it
132 into several file formats based on DCT/motion compensation encoding.
133 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
136 %description ffmpeg -l pl
137 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
138 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
140 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
141 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
142 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
143 kompatybilnego z AC3 strumienia.
146 Summary: Fast MPEG4 codec
147 Summary(pl): Szybki kodek MPEG4
149 Requires: %{name} = %{version}
151 Obsoletes: avifile-divx4
154 DivX MPEG-4 decoder and encoder.
156 %description divx -l pl
157 Dekoder i koder MPEG-4 DivX.
160 Summary: Vorbis audio plugin
161 Summary(pl): Plugin vorbis audio.
163 Requires: %{name} = %{version}
166 Plugin for decompression of Vorbis audio streams.
168 %description vorbis -l pl
169 Plugin do dekompresji strumieni audio Vorbis.
172 Summary: MAD - MPEG audio plugin
173 Summary(pl): MAD - plugin MPEG audio
175 Requires: %{name} = %{version}
178 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
180 %description mad -l pl
181 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
183 %package lame_audioenc
184 Summary: MP3 audio encoder plugin
185 Summary(pl): Plugin enkoduj±cy d¼wiêk w formacie MP3
187 Requires: %{name} = %{version}
189 %description lame_audioenc
190 Plugin for mp3 encoding capability of avirecompress tool.
192 %description lame_audioenc -l pl
193 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
197 Summary(pl): Kodek XVID
199 Requires: %{name} = %{version}
203 XVID decoder and encoder.
205 %description xvid -l pl
206 Dekoder i koder XVID.
209 %setup -q -n avifile0.7-%{_ver}
211 # was broken and need fixing; without this xmms and avi plugin is broken
219 rm -f missing aclocal.m4
224 automake -a -c --foreign
226 cd plugins/libmad/libmad
234 # This is The WRONG Way (tm)
235 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
236 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
238 %configure CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
239 --with-qt-includes=%{_includedir}/qt \
240 --with-libac3-path=%{_prefix} \
244 %{?_without_qt:--without-qt}
250 rm -rf $RPM_BUILD_ROOT
251 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
254 for f in plugins/*/*.la ; do
255 sed -e '/^relink_command/d' $f > $f.new
260 DESTDIR="$RPM_BUILD_ROOT"
262 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
264 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
265 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
268 rm -rf $RPM_BUILD_ROOT
270 %post -p /sbin/ldconfig
271 %postun -p /sbin/ldconfig
274 %defattr(644,root,root,755)
275 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
276 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
277 %attr(755,root,root) %{_libdir}/*.so.*.*
278 %dir %{_libdir}/avifile*
279 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
280 %attr(755,root,root) %{_libdir}/avifile*/audiodec.la
281 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
282 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.la
283 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
284 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.la
285 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
286 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.la
289 %defattr(644,root,root,755)
290 %doc doc/README-DEVEL*
291 %attr(755,root,root) %{_bindir}/avifile-config
292 %attr(755,root,root) %{_bindir}/mmxnow-config
293 %attr(755,root,root) %{_libdir}/lib*.la
295 %{_includedir}/%{name}
297 %{?!_without_qt:%files aviplay}
298 %{?!_without_qt:%defattr(644,root,root,755)}
299 %{?!_without_qt:%attr(755,root,root) %{_bindir}/aviplay}
300 %{?!_without_qt:%{_datadir}/%{name}*}
301 %{?!_without_qt:%{_applnkdir}/Multimedia/*}
302 %{?!_without_qt:%{_pixmapsdir}/*}
304 %{?!_without_qt:%files utils}
305 %{?!_without_qt:%defattr(644,root,root,755)}
306 %{?!_without_qt:%attr(755,root,root) %{_bindir}/avi[bcmrt]*}
307 %{?!_without_qt:%attr(755,root,root) %{_bindir}/kv4lsetup}
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
313 %attr(755,root,root) %{_libdir}/avifile*/win32.la
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
319 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/avifile*/divx*.so*
325 %attr(755,root,root) %{_libdir}/avifile*/divx*.la
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
331 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.la
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
336 %attr(755,root,root) %{_libdir}/avifile*/mad*.la
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
341 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
343 %ifarch %{ix86} ppc sparc sparc64 sparcv9
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
347 %attr(755,root,root) %{_libdir}/avifile*/xvid.la