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}
153 DivX MPEG-4 decoder and encoder.
155 %description divx4 -l pl
156 Dekoder i koder MPEG-4 DivX.
159 Summary: Vorbis audio plugin
160 Summary(pl): Plugin vorbis audio.
162 Requires: %{name} = %{version}
165 Plugin for decompression of Vorbis audio streams.
167 %description vorbis -l pl
168 Plugin do dekompresji strumieni audio Vorbis.
171 Summary: MAD - MPEG audio plugin
172 Summary(pl): MAD - plugin MPEG audio
174 Requires: %{name} = %{version}
177 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
179 %description mad -l pl
180 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
182 %package lame_audioenc
183 Summary: MP3 audio encoder plugin
184 Summary(pl): Plugin enkoduj±cy d¼wiêk w formacie MP3
186 Requires: %{name} = %{version}
188 %description lame_audioenc
189 Plugin for mp3 encoding capability of avirecompress tool.
191 %description lame_audioenc -l pl
192 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
196 Summary(pl): Kodek XVID
198 Requires: %{name} = %{version}
202 XVID decoder and encoder.
204 %description xvid -l pl
205 Dekoder i koder XVID.
208 %setup -q -n avifile0.7-%{_ver}
210 # was broken and need fixing; without this xmms and avi plugin is broken
218 rm -f missing aclocal.m4
223 automake -a -c --foreign
225 cd plugins/libmad/libmad
233 # This is The WRONG Way (tm)
234 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
235 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
237 %configure CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
238 --with-qt-includes=%{_includedir}/qt \
239 --with-libac3-path=%{_prefix} \
243 %{?_without_qt:--without-qt}
249 rm -rf $RPM_BUILD_ROOT
250 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
253 for f in plugins/*/*.la ; do
254 sed -e '/^relink_command/d' $f > $f.new
259 DESTDIR="$RPM_BUILD_ROOT"
261 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
263 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
264 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
267 rm -rf $RPM_BUILD_ROOT
269 %post -p /sbin/ldconfig
270 %postun -p /sbin/ldconfig
273 %defattr(644,root,root,755)
274 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
275 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
276 %attr(755,root,root) %{_libdir}/*.so.*.*
277 %dir %{_libdir}/avifile*
278 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
279 %attr(755,root,root) %{_libdir}/avifile*/audiodec.la
280 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
281 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.la
282 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
283 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.la
284 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
285 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.la
288 %defattr(644,root,root,755)
289 %doc doc/README-DEVEL*
290 %attr(755,root,root) %{_bindir}/avifile-config
291 %attr(755,root,root) %{_bindir}/mmxnow-config
292 %attr(755,root,root) %{_libdir}/lib*.la
294 %{_includedir}/%{name}
296 %{?!_without_qt:%files aviplay}
297 %{?!_without_qt:%defattr(644,root,root,755)}
298 %{?!_without_qt:%attr(755,root,root) %{_bindir}/aviplay}
299 %{?!_without_qt:%{_datadir}/%{name}*}
300 %{?!_without_qt:%{_applnkdir}/Multimedia/*}
301 %{?!_without_qt:%{_pixmapsdir}/*}
303 %{?!_without_qt:%files utils}
304 %{?!_without_qt:%defattr(644,root,root,755)}
305 %{?!_without_qt:%attr(755,root,root) %{_bindir}/avi[bcmrt]*}
306 %{?!_without_qt:%attr(755,root,root) %{_bindir}/kv4lsetup}
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
312 %attr(755,root,root) %{_libdir}/avifile*/win32.la
316 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
318 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/avifile*/divx4.so*
324 %attr(755,root,root) %{_libdir}/avifile*/divx4.la
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
330 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.la
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
335 %attr(755,root,root) %{_libdir}/avifile*/mad*.la
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
340 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
342 %ifarch %{ix86} ppc sparc sparc64 sparcv9
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
346 %attr(755,root,root) %{_libdir}/avifile*/xvid.la