2 %define _snapver 20020412
3 %define _snap %{_snapver}
5 Summary: Library for playing AVI files
6 Summary(pl): Biblioteka do odtwarzania plików AVI
13 URL: http://avifile.sourceforge.net/
14 Source0: http://avifile.sourceforge.net/%{name}%{version}-%{_snap}.tar.gz
15 Source1: %{name}.desktop
16 Patch0: %{name}-shareware.patch
17 Patch1: %{name}-deplib.patch
18 Patch2: %{name}-ac3.patch
19 Patch3: %{name}-size_t.patch
20 Patch4: %{name}-amfix.patch
21 Patch5: %{name}-xvid.patch
22 BuildRequires: SDL-devel >= 1.2.0
23 BuildRequires: XFree86-devel
24 BuildRequires: ac3dec-devel >= 0.6.1
25 BuildRequires: audiofile-devel
26 BuildRequires: autoconf
27 BuildRequires: automake
29 BuildRequires: divx4linux-devel
31 BuildRequires: lame-libs-devel
32 BuildRequires: libjpeg-devel
33 BuildRequires: libogg-devel
34 BuildRequires: libtool
35 BuildRequires: libvorbis-devel >= 1:1.0
36 BuildRequires: nas-devel
37 BuildRequires: qt-devel
39 %ifarch %{ix86} ppc sparc sparc64 sparcv9
40 BuildRequires: xvid-devel
42 BuildConflicts: wine-devel
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _prefix /usr/X11R6
46 %define _mandir %{_prefix}/man
49 Avifile is a library that allow programs to read and write compressed
50 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
51 (De)compression is performed with various plugins (Win32, FFMpeg,...)
54 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
55 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
56 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
59 Summary: Header file required to build programs using libavifile
60 Summary(pl): Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
61 Group: X11/Development/Libraries
62 Requires: XFree86-devel
63 Requires: %{name} = %{version}
66 Header files required to build programs using libavifile.
68 %description devel -l pl
69 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
73 Summary: Player for AVI/ASF/WMF files
74 Summary(pl): Odtwarzacz plików AVI/ASF/WMF
75 Group: X11/Applications/Multimedia
76 Requires: %{name} = %{version}
79 Sample player for AVI, ASF, WFM (with straming support) files.
81 %description aviplay -l pl
82 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
86 Summary: Sample programs using the avifile library
87 Summary(pl): Przyk³adowe programy u¿ywaj±ce biblioteki avifile
88 Group: X11/Applications/Multimedia
89 Requires: %{name} = %{version}
92 Qt-based AVI utilities with few other useful supporting tools for TV
93 capturing, AVI recompression, benchmarking, joining AVI files. These
94 programs have more bugs as they are not as extensively developed as
97 %description utils -l pl
98 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
99 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
100 s± tak intensywnie rozwijane jak odtwarzacz.
103 Summary: Win32 audio/video plugin
104 Summary(pl): Plugin audio/video win32
106 Requires: %{name} = %{version}
110 Plugin for using Win32 DLL libraries in avifile located in
113 %description win32 -l pl
114 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
118 Summary: GPL MPEG4 codec
119 Summary(pl): Kodek MPEG4 na licencji GPL
121 Requires: %{name} = %{version}
124 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
125 server and a generic audio and video file converter.
127 It can grab from a standard Video4Linux video source and convert it
128 into several file formats based on DCT/motion compensation encoding.
129 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
132 %description ffmpeg -l pl
133 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
134 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
136 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
137 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
138 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
139 kompatybilnego z AC3 strumienia.
142 Summary: Fast MPEG4 codec
143 Summary(pl): Szybki kodek MPEG4
145 Requires: %{name} = %{version}
149 DivX MPEG-4 decoder and encoder.
151 %description divx4 -l pl
152 Dekoder i koder MPEG-4 DivX.
155 Summary: Vorbis audio plugin
156 Summary(pl): Plugin vorbis audio.
158 Requires: %{name} = %{version}
161 Plugin for decompression of Vorbis audio streams.
163 %description vorbis -l pl
164 Plugin do dekompresji strumieni audio Vorbis.
167 Summary: MAD - MPEG audio plugin
168 Summary(pl): MAD - plugin MPEG audio
170 Requires: %{name} = %{version}
173 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
175 %description mad -l pl
176 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
178 %package lame_audioenc
179 Summary: MP3 audio encoder plugin
180 Summary(pl): Plugin enkoduj±cy d¼wiêk w formacie MP3
182 Requires: %{name} = %{version}
184 %description lame_audioenc
185 Plugin for mp3 encoding capability of avirecompress tool.
187 %description lame_audioenc -l pl
188 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
192 Summary(pl): Kodek XVID
194 Requires: %{name} = %{version}
198 XVID decoder and encoder.
200 %description xvid -l pl
201 Dekoder i koder XVID.
204 %setup -q -n avifile%{_ver}-%{_snapver}
206 # was broken and need fixing; without this xmms and avi plugin is broken
214 rm -f missing aclocal.m4
219 automake -a -c --foreign
221 cd plugins/libmad/libmad
229 # This is The WRONG Way (tm)
230 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
231 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
233 %configure CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
234 --with-qt-includes=%{_includedir}/qt \
235 --with-libac3-path=%{_prefix} \
244 rm -rf $RPM_BUILD_ROOT
245 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
248 for f in plugins/*/lib*.la ; do
249 sed -e '/^relink_command/d' $f > $f.new
254 DESTDIR="$RPM_BUILD_ROOT"
256 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
258 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
259 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
262 rm -rf $RPM_BUILD_ROOT
264 %post -p /sbin/ldconfig
265 %postun -p /sbin/ldconfig
268 %defattr(644,root,root,755)
269 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
270 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
271 %attr(755,root,root) %{_libdir}/lib*.so.*.*
272 %dir %{_libdir}/avifile*
273 %attr(755,root,root) %{_libdir}/avifile*/libaudiodec.so*
274 %attr(755,root,root) %{_libdir}/avifile*/libaudiodec.la
275 %attr(755,root,root) %{_libdir}/avifile*/libmpeg_audiodec.so*
276 %attr(755,root,root) %{_libdir}/avifile*/libmpeg_audiodec.la
277 %attr(755,root,root) %{_libdir}/avifile*/libac3pass.so*
278 %attr(755,root,root) %{_libdir}/avifile*/libac3pass.la
279 %attr(755,root,root) %{_libdir}/avifile*/libmjpeg.so*
280 %attr(755,root,root) %{_libdir}/avifile*/libmjpeg.la
283 %defattr(644,root,root,755)
284 %doc doc/README-DEVEL*
285 %attr(755,root,root) %{_bindir}/avifile-config
286 %attr(755,root,root) %{_bindir}/mmxnow-config
287 %attr(755,root,root) %{_libdir}/lib*.la
289 %{_includedir}/%{name}
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_bindir}/aviplay
295 %{_applnkdir}/Multimedia/*
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
301 %attr(755,root,root) %{_bindir}/kv4lsetup
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/avifile*/libwin32.so*
307 %attr(755,root,root) %{_libdir}/avifile*/libwin32.la
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/avifile*/libffmpeg.so*
313 %attr(755,root,root) %{_libdir}/avifile*/libffmpeg.la
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/avifile*/libdivx4.so*
319 %attr(755,root,root) %{_libdir}/avifile*/libdivx4.la
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/avifile*/libvorbis*.so*
325 %attr(755,root,root) %{_libdir}/avifile*/libvorbis*.la
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_libdir}/avifile*/libmad*.so*
330 %attr(755,root,root) %{_libdir}/avifile*/libmad*.la
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/avifile*/libmp3lamebin_audioenc.so*
335 %attr(755,root,root) %{_libdir}/avifile*/libmp3lamebin_audioenc.la
337 %ifarch %{ix86} ppc sparc sparc64 sparcv9
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/avifile*/libxvid.so*
341 %attr(755,root,root) %{_libdir}/avifile*/libxvid.la