]> git.pld-linux.org Git - packages/avifile.git/blob - avifile.spec
- Experiment. Release number extedned with info about --with switches
[packages/avifile.git] / avifile.spec
1 # It's sick.
2 #
3 # Conditional build:
4 # _without_qt           - disables QT support
5 # _with_divx4           - enables divx4linux support (proprietary, binary-only lib)
6 #
7 %define         _snapver        20020913
8 %define         _snap           %{_snapver}
9 Summary:        Library for playing AVI files
10 Summary(pl):    Biblioteka do odtwarzania plików AVI
11 Summary(pt_BR): Biblioteca para reproduzir formatos de áudio e vídeo usando binários win32
12 Name:           avifile
13 Version:        0.7.16
14 Release:        0.%{_snap}.3%{?_with_divx4:+divx4}
15 Epoch:          3
16 License:        GPL
17 Group:          X11/Libraries
18 Source0:        http://avifile.sourceforge.net/%{name}-%{version}-%{_snap}.tgz
19 Source1:        %{name}.desktop
20 Patch0:         %{name}-shareware.patch
21 Patch1:         %{name}-no_libnsl.patch
22 Patch2:         %{name}-vidix.patch
23 Patch3:         %{name}-configure.patch
24 URL:            http://avifile.sourceforge.net/
25 BuildRequires:  SDL-devel >= 1.2.0
26 BuildRequires:  XFree86-devel
27 BuildRequires:  a52dec-libs-devel
28 BuildRequires:  audiofile-devel
29 BuildRequires:  autoconf
30 BuildRequires:  automake
31 %{?_with_divx4:BuildRequires:   divx4linux-devel}
32 BuildRequires:  lame-libs-devel
33 BuildRequires:  libjpeg-devel
34 BuildRequires:  libogg-devel
35 BuildRequires:  libtool >= 0:1.4.2-9
36 BuildRequires:  libvorbis-devel >= 1:1.0
37 BuildRequires:  nas-devel
38 %{?!_without_qt:BuildRequires:  qt-devel >= 3.0.5}
39 BuildRequires:  unzip
40 %ifarch %{ix86} ppc
41 BuildRequires:  xvid-devel
42 %endif
43 BuildConflicts: wine-devel
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %define         _prefix         /usr/X11R6
47 %define         _mandir         %{_prefix}/man
48
49 %description
50 Avifile is a library that allow programs to read and write compressed
51 AVI files (Indeo Video, DivX :-), etc.) under x86 Linux.
52 (De)compression is performed with various plugins (Win32, FFMpeg,...)
53
54 %description -l pl
55 Avifile jest bibliotek± s³u¿±c± do odczytywania i zapisywania
56 skompresowanych plików AVI (Indeo Video, DivX :-), etc.) pod Linuksem.
57 Do (de)kompresji u¿ywane s± pluginy (win32, FFMpeg, ...)
58
59 %description -l pt_BR
60 Avifile busca criar uma biblioteca usável de suporte a arquivos AVI e
61 um conjunto básico de utilitários (para reprodução, captura e edição)
62 para o Linux. Contém classes C++ para leitura e criação de AVIs e
63 interfaces para compressores e descompresseores de áudio e vídeo.
64
65 %package devel
66 Summary:        Header file required to build programs using libavifile
67 Summary(pl):    Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
68 Summary(pt_BR): Componentes para desenvolvimento com a avifile
69 Group:          X11/Development/Libraries
70 Requires:       XFree86-devel
71 Requires:       %{name} = %{version}
72
73 %description devel
74 Header files required to build programs using libavifile.
75
76 %description devel -l pl
77 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
78 libavifile.
79
80 %description devel -l pt_BR
81 Componentes para desenvolvimento com a avifile.
82
83 %package aviplay
84 Summary:        Player for AVI/ASF/WMF files
85 Summary(pl):    Odtwarzacz plików AVI/ASF/WMF
86 Group:          X11/Applications/Multimedia
87 Requires:       %{name} = %{version}
88
89 %description aviplay
90 Sample player for AVI, ASF, WFM (with straming support) files.
91
92 %description aviplay -l pl
93 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
94 odtwarzania z sieci.)
95
96 %package utils
97 Summary:        Sample programs using the avifile library
98 Summary(pl):    Przyk³adowe programy u¿ywaj±ce biblioteki avifile
99 Group:          X11/Applications/Multimedia
100 Requires:       %{name} = %{version}
101
102 %description utils
103 Qt-based AVI utilities with few other useful supporting tools for TV
104 capturing, AVI recompression, benchmarking, joining AVI files. These
105 programs have more bugs as they are not as extensively developed as
106 player.
107
108 %description utils -l pl
109 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
110 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
111 s± tak intensywnie rozwijane jak odtwarzacz.
112
113 %package win32
114 Summary:        Win32 audio/video plugin
115 Summary(pl):    Plugin audio/video win32
116 Group:          X11/Libraries
117 Requires:       %{name} = %{version}
118 Requires:       w32codec
119
120 %description win32
121 Plugin for using Win32 DLL libraries in avifile located in
122 /usr/lib/win32.
123
124 %description win32 -l pl
125 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
126 bibliotek DLL Win32.
127
128 %package ffmpeg
129 Summary:        GPL MPEG4 codec
130 Summary(pl):    Kodek MPEG4 na licencji GPL
131 Group:          X11/Libraries
132 Requires:       %{name} = %{version}
133
134 %description ffmpeg
135 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
136 server and a generic audio and video file converter.
137
138 It can grab from a standard Video4Linux video source and convert it
139 into several file formats based on DCT/motion compensation encoding.
140 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
141 stream.
142
143 %description ffmpeg -l pl
144 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
145 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
146
147 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
148 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
149 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
150 kompatybilnego z AC3 strumienia.
151
152 %package divx
153 Summary:        Fast MPEG4 codec
154 Summary(pl):    Szybki kodek MPEG4
155 Group:          X11/Libraries
156 Requires:       %{name} = %{version}
157 Requires:       divx4linux
158 Obsoletes:      avifile-divx4
159
160 %description divx
161 DivX MPEG-4 decoder and encoder.
162
163 %description divx -l pl
164 Dekoder i koder MPEG-4 DivX.
165
166 %package vorbis
167 Summary:        Vorbis audio plugin
168 Summary(pl):    Plugin vorbis audio.
169 Group:          X11/Libraries
170 Requires:       %{name} = %{version}
171
172 %description vorbis
173 Plugin for decompression of Vorbis audio streams.
174
175 %description vorbis -l pl
176 Plugin do dekompresji strumieni audio Vorbis.
177
178 %package mad
179 Summary:        MAD - MPEG audio plugin
180 Summary(pl):    MAD - plugin MPEG audio
181 Group:          X11/Libraries
182 Requires:       %{name} = %{version}
183
184 %description mad
185 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
186
187 %description mad -l pl
188 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
189
190 %package lame_audioenc
191 Summary:        MP3 audio encoder plugin
192 Summary(pl):    Plugin enkoduj±cy d¼wiêk w formacie MP3
193 Group:          X11/Libraries
194 Requires:       %{name} = %{version}
195
196 %description lame_audioenc
197 Plugin for mp3 encoding capability of avirecompress tool.
198
199 %description lame_audioenc -l pl
200 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
201
202 %package xvid
203 Summary:        XVID codec
204 Summary(pl):    Kodek XVID
205 Group:          X11/Libraries
206 Requires:       %{name} = %{version}
207 Requires:       xvid
208
209 %description xvid
210 XVID decoder and encoder.
211
212 %description xvid -l pl
213 Dekoder i koder XVID.
214
215 %prep
216 %setup -q -n avifile0.7-%{version}
217 %patch0 -p1
218 %patch1 -p1
219 %patch2 -p1
220 %patch3 -p1
221
222 %build
223 rm -f missing aclocal.m4
224 %{__libtoolize}
225 %{__aclocal}
226 autoheader
227 %{__autoconf}
228 %{__automake}
229
230 cd plugins/libmad/libmad
231 %{__autoconf}
232 cd ../../..
233
234 cd libmmxnow
235 %{__autoconf}
236 cd ..
237
238 # This is The WRONG Way (tm)
239 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
240 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
241
242 %configure \
243         CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
244         FFMPEG_CFLAGS="%{rpmcflags} -ffast-math %{!?debug:-fomit-frame-pointer}" \
245         --with-qt-includes=%{_includedir}/qt \
246         --with-qt-libraries=%{_libdir} \
247         --enable-a52 \
248         --enable-release \
249         --enable-ffmpeg \
250         --enable-ffmpeg-a52 \
251         %{?_with_divx4:--enable-divx4} \
252         --disable-x86opt \
253         %{?_without_qt:--without-qt}
254
255 touch lib/dummy.cpp
256 %{__make}
257
258 %install
259 rm -rf $RPM_BUILD_ROOT
260 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
261
262 %{__make} install \
263         DESTDIR="$RPM_BUILD_ROOT" \
264         m4datadir="%{_aclocaldir}"
265
266 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
267
268 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
269 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
270
271 %clean
272 rm -rf $RPM_BUILD_ROOT
273
274 %post   -p /sbin/ldconfig
275 %postun -p /sbin/ldconfig
276
277 %files
278 %defattr(644,root,root,755)
279 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
280 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
281 %attr(755,root,root) %{_libdir}/lib*.so.*.*
282 %dir %{_libdir}/avifile*
283 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
284 %attr(755,root,root) %{_libdir}/avifile*/audiodec.la
285 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
286 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.la
287 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
288 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.la
289 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
290 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.la
291
292 %files devel
293 %defattr(644,root,root,755)
294 %doc doc/README-DEVEL*
295 %attr(755,root,root) %{_bindir}/avifile-config
296 %attr(755,root,root) %{_bindir}/mmxnow-config
297 %attr(755,root,root) %{_libdir}/lib*.la
298 %{_libdir}/lib*.so
299 %{_includedir}/%{name}
300 %{_includedir}/*.h
301 %{_aclocaldir}/*.m4
302
303 %if %{?_without_qt:0}%{!?_without_qt:1}
304 %files aviplay
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_bindir}/aviplay
307 %{_mandir}/man1/aviplay.1*
308 %{_datadir}/%{name}*
309 %{_applnkdir}/Multimedia/*
310 %{_pixmapsdir}/*
311
312 %files utils
313 %defattr(644,root,root,755)
314 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
315 %attr(755,root,root) %{_bindir}/kv4lsetup
316 %endif
317
318 %ifarch %{ix86}
319 %files win32
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
322 %attr(755,root,root) %{_libdir}/avifile*/win32.la
323 %endif
324
325 %files ffmpeg
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
328 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
329
330 %if %{?_with_divx4:1}%{!?_with_divx4:0}
331 %files divx
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_libdir}/avifile*/divx*.so*
334 %attr(755,root,root) %{_libdir}/avifile*/divx*.la
335 %endif
336
337 %files vorbis
338 %defattr(644,root,root,755)
339 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
340 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.la
341
342 %files mad
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
345 %attr(755,root,root) %{_libdir}/avifile*/mad*.la
346
347 %files lame_audioenc
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
350 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
351
352 %ifarch %{ix86} ppc
353 %files xvid
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
356 %attr(755,root,root) %{_libdir}/avifile*/xvid.la
357 %endif
This page took 0.084615 seconds and 4 git commands to generate.