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