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