]> git.pld-linux.org Git - packages/avifile.git/blob - avifile.spec
- added BR nas-devel
[packages/avifile.git] / avifile.spec
1 # It's sick.
2 %define         _snapver        20020412
3 %define         _snap           %{_snapver}
4 %define         _ver    0.7
5 Summary:        Library for playing AVI files
6 Summary(pl):    Biblioteka do odtwarzania plików AVI
7 Name:           avifile
8 Version:        %{_ver}
9 Release:        0.%{_snap}.9
10 Epoch:          3
11 License:        GPL
12 Group:          X11/Libraries
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
28 %ifarch %{ix86}
29 BuildRequires:  divx4linux-devel
30 %endif
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
38 BuildRequires:  unzip
39 %ifarch %{ix86} ppc sparc sparc64 sparcv9
40 BuildRequires:  xvid-devel
41 %endif
42 BuildConflicts: wine-devel
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %define         _prefix         /usr/X11R6
46 %define         _mandir         %{_prefix}/man
47
48 %description
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,...)
52
53 %description -l pl
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, ...)
57
58 %package devel
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}
64
65 %description devel
66 Header files required to build programs using libavifile.
67
68 %description devel -l pl
69 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
70 libavifile.
71
72 %package aviplay
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}
77
78 %description aviplay
79 Sample player for AVI, ASF, WFM (with straming support) files.
80
81 %description aviplay -l pl
82 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
83 odtwarzania z sieci.)
84
85 %package utils
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}
90
91 %description utils
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
95 player.
96
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.
101
102 %package win32
103 Summary:        Win32 audio/video plugin
104 Summary(pl):    Plugin audio/video win32
105 Group:          X11/Libraries
106 Requires:       %{name} = %{version}
107 Requires:       w32codec
108
109 %description win32
110 Plugin for using Win32 DLL libraries in avifile located in
111 /usr/lib/win32.
112
113 %description win32 -l pl
114 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
115 bibliotek DLL Win32.
116
117 %package ffmpeg
118 Summary:        GPL MPEG4 codec
119 Summary(pl):    Kodek MPEG4 na licencji GPL
120 Group:          X11/Libraries
121 Requires:       %{name} = %{version}
122
123 %description ffmpeg
124 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
125 server and a generic audio and video file converter.
126
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
130 stream.
131
132 %description ffmpeg -l pl
133 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
134 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
135
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.
140
141 %package divx4
142 Summary:        Fast MPEG4 codec
143 Summary(pl):    Szybki kodek MPEG4
144 Group:          X11/Libraries
145 Requires:       %{name} = %{version}
146 Requires:       divx4linux
147
148 %description divx4
149 DivX MPEG-4 decoder and encoder.
150
151 %description divx4 -l pl
152 Dekoder i koder MPEG-4 DivX.
153
154 %package vorbis
155 Summary:        Vorbis audio plugin
156 Summary(pl):    Plugin vorbis audio.
157 Group:          X11/Libraries
158 Requires:       %{name} = %{version}
159
160 %description vorbis
161 Plugin for decompression of Vorbis audio streams.
162
163 %description vorbis -l pl
164 Plugin do dekompresji strumieni audio Vorbis.
165
166 %package mad
167 Summary:        MAD - MPEG audio plugin
168 Summary(pl):    MAD - plugin MPEG audio
169 Group:          X11/Libraries
170 Requires:       %{name} = %{version}
171
172 %description mad
173 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
174
175 %description mad -l pl
176 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
177
178 %package lame_audioenc
179 Summary:        MP3 audio encoder plugin
180 Summary(pl):    Plugin enkoduj±cy d¼wiêk w formacie MP3
181 Group:          X11/Libraries
182 Requires:       %{name} = %{version}
183
184 %description lame_audioenc
185 Plugin for mp3 encoding capability of avirecompress tool.
186
187 %description lame_audioenc -l pl
188 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
189
190 %package xvid
191 Summary:        XVID codec
192 Summary(pl):    Kodek XVID
193 Group:          X11/Libraries
194 Requires:       %{name} = %{version}
195 Requires:       xvid
196
197 %description xvid
198 XVID decoder and encoder.
199
200 %description xvid -l pl
201 Dekoder i koder XVID.
202
203 %prep
204 %setup -q -n avifile%{_ver}-%{_snapver}
205 %patch0 -p1
206 # was broken and need fixing; without this xmms and avi plugin is broken
207 %patch1 -p1
208 %patch2 -p1
209 %patch3 -p1
210 %patch4 -p1
211 %patch5 -p1
212
213 %build
214 rm -f missing aclocal.m4
215 %{__libtoolize}
216 aclocal
217 autoheader
218 %{__autoconf}
219 automake -a -c --foreign
220
221 cd plugins/libmad/libmad
222 %{__autoconf}
223 cd ../../..
224
225 cd libmmxnow
226 %{__autoconf}
227 cd ..
228
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
232
233 %configure CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
234         --with-qt-includes=%{_includedir}/qt \
235         --with-libac3-path=%{_prefix} \
236         --enable-release \
237         --enable-ffmpeg \
238         --disable-x86opt
239
240 touch lib/dummy.cpp
241 %{__make}
242
243 %install
244 rm -rf $RPM_BUILD_ROOT
245 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
246
247 # avoid relinking
248 for f in plugins/*/lib*.la ; do
249         sed -e '/^relink_command/d' $f > $f.new
250         mv -f $f.new $f
251 done
252
253 %{__make} install \
254         DESTDIR="$RPM_BUILD_ROOT"
255
256 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
257
258 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
259 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
260
261 %clean
262 rm -rf $RPM_BUILD_ROOT
263
264 %post   -p /sbin/ldconfig
265 %postun -p /sbin/ldconfig
266
267 %files
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
281
282 %files devel
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
288 %{_libdir}/lib*.so
289 %{_includedir}/%{name}
290
291 %files aviplay
292 %defattr(644,root,root,755)
293 %attr(755,root,root) %{_bindir}/aviplay
294 %{_datadir}/%{name}*
295 %{_applnkdir}/Multimedia/*
296 %{_pixmapsdir}/*
297
298 %files utils
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
301 %attr(755,root,root) %{_bindir}/kv4lsetup
302
303 %ifarch %{ix86}
304 %files win32
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_libdir}/avifile*/libwin32.so*
307 %attr(755,root,root) %{_libdir}/avifile*/libwin32.la
308 %endif
309
310 %files ffmpeg
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/avifile*/libffmpeg.so*
313 %attr(755,root,root) %{_libdir}/avifile*/libffmpeg.la
314
315 %ifarch %{ix86}
316 %files divx4
317 %defattr(644,root,root,755)
318 %attr(755,root,root) %{_libdir}/avifile*/libdivx4.so*
319 %attr(755,root,root) %{_libdir}/avifile*/libdivx4.la
320 %endif
321
322 %files vorbis
323 %defattr(644,root,root,755)
324 %attr(755,root,root) %{_libdir}/avifile*/libvorbis*.so*
325 %attr(755,root,root) %{_libdir}/avifile*/libvorbis*.la
326
327 %files mad
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_libdir}/avifile*/libmad*.so*
330 %attr(755,root,root) %{_libdir}/avifile*/libmad*.la
331
332 %files lame_audioenc
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
336
337 %ifarch %{ix86} ppc sparc sparc64 sparcv9
338 %files xvid
339 %defattr(644,root,root,755)
340 %attr(755,root,root) %{_libdir}/avifile*/libxvid.so*
341 %attr(755,root,root) %{_libdir}/avifile*/libxvid.la
342 %endif
This page took 0.047235 seconds and 3 git commands to generate.