]> git.pld-linux.org Git - packages/avifile.git/blob - avifile.spec
- use X_LIBS when linking libqavm
[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}.6
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:  XFree86-devel
23 BuildRequires:  SDL-devel >= 1.2.0
24 BuildRequires:  ac3dec-devel >= 0.6.1
25 BuildRequires:  libjpeg-devel
26 BuildRequires:  unzip
27 BuildRequires:  qt-devel
28 %ifarch %{ix86}
29 BuildRequires:  divx4linux-devel
30 %endif
31 BuildRequires:  autoconf
32 BuildRequires:  automake
33 BuildRequires:  libtool
34 BuildRequires:  libogg-devel
35 BuildRequires:  libvorbis-devel
36 BuildRequires:  lame-libs-devel
37 %ifarch %{ix86} ppc sparc sparc64 sparcv9
38 BuildRequires:  xvid-devel
39 %endif
40 BuildConflicts: wine-devel
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _prefix         /usr/X11R6
44 %define         _mandir         %{_prefix}/man
45
46 %description
47 Avifile is a library that allow programs to read and write compressed
48 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
49 (De)compression is performed with various plugins (Win32, FFMpeg,...)
50
51 %description -l pl
52 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
53 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
54 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
55
56 %package devel
57 Summary:        Header file required to build programs using libavifile
58 Summary(pl):    Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
59 Group:          X11/Development/Libraries
60 Requires:       XFree86-devel
61 Requires:       %{name} = %{version}
62
63 %description devel
64 Header files required to build programs using libavifile.
65
66 %description devel -l pl
67 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
68 libavifile.
69
70 %package aviplay
71 Summary:        Player for AVI/ASF/WMF files
72 Summary(pl):    Odtwarzacz plików AVI/ASF/WMF
73 Group:          X11/Applications/Multimedia
74 Requires:       %{name} = %{version}
75
76 %description aviplay
77 Sample player for AVI, ASF, WFM (with straming support) files.
78
79 %description aviplay -l pl
80 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
81 odtwarzania z sieci.)
82
83 %package utils
84 Summary:        Sample programs using the avifile library
85 Summary(pl):    Przyk³adowe programy u¿ywaj±ce biblioteki avifile
86 Group:          X11/Applications/Multimedia
87 Requires:       %{name} = %{version}
88
89 %description utils
90 Qt-based AVI utilities with few other useful supporting tools for TV
91 capturing, AVI recompression, benchmarking, joining AVI files. These
92 programs have more bugs as they are not as extensively developed as
93 player.
94
95 %description utils -l pl
96 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
97 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
98 s± tak intensywnie rozwijane jak odtwarzacz.
99
100 %package win32
101 Summary:        Win32 audio/video plugin
102 Summary(pl):    Plugin audio/video win32
103 Group:          X11/Libraries
104 Requires:       %{name} = %{version}
105 Requires:       w32codec
106
107 %description win32
108 Plugin for using Win32 DLL libraries in avifile located in
109 /usr/lib/win32.
110
111 %description win32 -l pl
112 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
113 bibliotek DLL Win32.
114
115 %package ffmpeg
116 Summary:        GPL MPEG4 codec
117 Summary(pl):    Kodek MPEG4 na licencji GPL
118 Group:          X11/Libraries
119 Requires:       %{name} = %{version}
120
121 %description ffmpeg
122 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
123 server and a generic audio and video file converter.
124
125 It can grab from a standard Video4Linux video source and convert it
126 into several file formats based on DCT/motion compensation encoding.
127 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
128 stream.
129
130 %description ffmpeg -l pl
131 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
132 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
133
134 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
135 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
136 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
137 kompatybilnego z AC3 strumienia.
138
139 %package divx4
140 Summary:        Fast MPEG4 codec
141 Summary(pl):    Szybki kodek MPEG4
142 Group:          X11/Libraries
143 Requires:       %{name} = %{version}
144 Requires:       divx4linux
145
146 %description divx4
147 DivX MPEG-4 decoder and encoder.
148
149 %description divx4 -l pl
150 Dekoder i koder MPEG-4 DivX.
151
152 %package vorbis
153 Summary:        Vorbis audio plugin
154 Summary(pl):    Plugin vorbis audio.
155 Group:          X11/Libraries
156 Requires:       %{name} = %{version}
157
158 %description vorbis
159 Plugin for decompression of Vorbis audio streams.
160
161 %description vorbis -l pl
162 Plugin do dekompresji strumieni audio Vorbis.
163
164 %package mad
165 Summary:        MAD - MPEG audio plugin
166 Summary(pl):    MAD - plugin MPEG audio
167 Group:          X11/Libraries
168 Requires:       %{name} = %{version}
169
170 %description mad
171 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
172
173 %description mad -l pl
174 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
175
176 %package lame_audioenc
177 Summary:        MP3 audio encoder plugin
178 Summary(pl):    Plugin enkoduj±cy d¼wiêk w formacie MP3
179 Group:          X11/Libraries
180 Requires:       %{name} = %{version}
181
182 %description lame_audioenc
183 Plugin for mp3 encoding capability of avirecompress tool.
184
185 %description lame_audioenc -l pl
186 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
187
188 %package xvid
189 Summary:        XVID codec
190 Summary(pl):    Kodek XVID
191 Group:          X11/Libraries
192 Requires:       %{name} = %{version}
193 Requires:       xvid
194
195 %description xvid
196 XVID decoder and encoder.
197
198 %description xvid -l pl
199 Dekoder i koder XVID.
200
201 %prep
202 %setup -q -n avifile%{_ver}-%{_snapver}
203 %patch0 -p1
204 # was broken and need fixing; without this xmms and avi plugin is broken
205 %patch1 -p1
206 %patch2 -p1
207 %patch3 -p1
208 %patch4 -p1
209 %patch5 -p1
210
211 %build
212 rm -f missing aclocal.m4
213 libtoolize --copy --force
214 aclocal
215 autoheader
216 %{__autoconf}
217 automake -a -c --foreign
218
219 cd plugins/libmad/libmad
220 %{__autoconf}
221 cd ../../..
222
223 cd libmmxnow
224 %{__autoconf}
225 cd ..
226
227 # This is The WRONG Way (tm)
228 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
229 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
230
231 %configure CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
232         --with-qt-includes=%{_includedir}/qt \
233         --with-libac3-path=%{_prefix} \
234         --enable-release \
235         --enable-ffmpeg \
236         --disable-x86opt
237
238 touch lib/dummy.cpp
239 %{__make}
240
241 %install
242 rm -rf $RPM_BUILD_ROOT
243 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
244
245 # avoid relinking
246 for f in plugins/*/lib*.la ; do
247         sed -e '/^relink_command/d' $f > $f.new
248         mv -f $f.new $f
249 done
250
251 %{__make} install \
252         DESTDIR="$RPM_BUILD_ROOT"
253
254 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
255
256 gzip -9nf README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING} \
257         doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
258
259 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
260 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
261
262 %clean
263 rm -rf $RPM_BUILD_ROOT
264
265 %post   -p /sbin/ldconfig
266 %postun -p /sbin/ldconfig
267
268 %files
269 %defattr(644,root,root,755)
270 %doc *.gz doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}.gz
271 %doc doc/{TODO,VIDEO-PERFORMANCE,WARNINGS}.gz
272 %attr(755,root,root) %{_libdir}/lib*.so.*.*
273 %dir %{_libdir}/avifile*
274 %attr(755,root,root) %{_libdir}/avifile*/libaudiodec.so*
275 %attr(755,root,root) %{_libdir}/avifile*/libaudiodec.la
276 %attr(755,root,root) %{_libdir}/avifile*/libmpeg_audiodec.so*
277 %attr(755,root,root) %{_libdir}/avifile*/libmpeg_audiodec.la
278 %attr(755,root,root) %{_libdir}/avifile*/libac3pass.so*
279 %attr(755,root,root) %{_libdir}/avifile*/libac3pass.la
280 %attr(755,root,root) %{_libdir}/avifile*/libmjpeg.so*
281 %attr(755,root,root) %{_libdir}/avifile*/libmjpeg.la
282
283 %files devel
284 %defattr(644,root,root,755)
285 %doc doc/README-DEVEL*
286 %attr(755,root,root) %{_bindir}/avifile-config
287 %attr(755,root,root) %{_bindir}/mmxnow-config
288 %attr(755,root,root) %{_libdir}/lib*.la
289 %{_libdir}/lib*.so
290 %{_includedir}/%{name}
291
292 %files aviplay
293 %defattr(644,root,root,755)
294 %attr(755,root,root) %{_bindir}/aviplay
295 %{_datadir}/%{name}*
296 %{_applnkdir}/Multimedia/*
297 %{_pixmapsdir}/*
298
299 %files utils
300 %defattr(644,root,root,755)
301 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
302 %attr(755,root,root) %{_bindir}/kv4lsetup
303
304 %ifarch %{ix86}
305 %files win32
306 %defattr(644,root,root,755)
307 %attr(755,root,root) %{_libdir}/avifile*/libwin32.so*
308 %attr(755,root,root) %{_libdir}/avifile*/libwin32.la
309 %endif
310
311 %files ffmpeg
312 %defattr(644,root,root,755)
313 %attr(755,root,root) %{_libdir}/avifile*/libffmpeg.so*
314 %attr(755,root,root) %{_libdir}/avifile*/libffmpeg.la
315
316 %ifarch %{ix86}
317 %files divx4
318 %defattr(644,root,root,755)
319 %attr(755,root,root) %{_libdir}/avifile*/libdivx4.so*
320 %attr(755,root,root) %{_libdir}/avifile*/libdivx4.la
321 %endif
322
323 %files vorbis
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_libdir}/avifile*/libvorbis*.so*
326 %attr(755,root,root) %{_libdir}/avifile*/libvorbis*.la
327
328 %files mad
329 %defattr(644,root,root,755)
330 %attr(755,root,root) %{_libdir}/avifile*/libmad*.so*
331 %attr(755,root,root) %{_libdir}/avifile*/libmad*.la
332
333 %files lame_audioenc
334 %defattr(644,root,root,755)
335 %attr(755,root,root) %{_libdir}/avifile*/libmp3lamebin_audioenc.so*
336 %attr(755,root,root) %{_libdir}/avifile*/libmp3lamebin_audioenc.la
337
338 %ifarch %{ix86} ppc sparc sparc64 sparcv9
339 %files xvid
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/avifile*/libxvid.so*
342 %attr(755,root,root) %{_libdir}/avifile*/libxvid.la
343 %endif
This page took 0.188552 seconds and 3 git commands to generate.