]> git.pld-linux.org Git - packages/avifile.git/blob - avifile.spec
- removed outdated patches: ac3,size_t,xvid,amfix,deplib
[packages/avifile.git] / avifile.spec
1 # It's sick.
2 #
3 # Conditional build:
4 # _without_qt           - disables QT support
5 # _without_divx4        - disables divx4linux support
6 #
7 %ifnarch %{ix86}
8 %define         _without_divx4  1
9 %endif
10 %define         _snapver        20020816
11 %define         _snap           %{_snapver}
12 %define         _ver    0.7.15
13 Summary:        Library for playing AVI files
14 Summary(pl):    Biblioteka do odtwarzania plików AVI
15 Name:           avifile
16 Version:        %{_ver}
17 Release:        0.%{_snap}.2
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 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 %{!?_without_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 sparc sparc64 sparcv9
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 %package devel
60 Summary:        Header file required to build programs using libavifile
61 Summary(pl):    Pliki nag³ówkowe wymagane przez programy u¿ywaj±ce libavifile
62 Group:          X11/Development/Libraries
63 Requires:       XFree86-devel
64 Requires:       %{name} = %{version}
65
66 %description devel
67 Header files required to build programs using libavifile.
68
69 %description devel -l pl
70 Pliki nag³ówkowe niezbêdne do kompilacji programów korzystaj±cych z
71 libavifile.
72
73 %package aviplay
74 Summary:        Player for AVI/ASF/WMF files
75 Summary(pl):    Odtwarzacz plików AVI/ASF/WMF
76 Group:          X11/Applications/Multimedia
77 Requires:       %{name} = %{version}
78
79 %description aviplay
80 Sample player for AVI, ASF, WFM (with straming support) files.
81
82 %description aviplay -l pl
83 Przyk³adowy odtwarzacz plików AVI, ASF, WFM (ze wsparciem dla
84 odtwarzania z sieci.)
85
86 %package utils
87 Summary:        Sample programs using the avifile library
88 Summary(pl):    Przyk³adowe programy u¿ywaj±ce biblioteki avifile
89 Group:          X11/Applications/Multimedia
90 Requires:       %{name} = %{version}
91
92 %description utils
93 Qt-based AVI utilities with few other useful supporting tools for TV
94 capturing, AVI recompression, benchmarking, joining AVI files. These
95 programs have more bugs as they are not as extensively developed as
96 player.
97
98 %description utils -l pl
99 Kilka u¿ytecznych narzêdzi do przechwytywania TV, rekompresji AVI,
100 benchmarkowania, ³±czenia plików AVI. Maj± wiêcej b³êdów, poniewa¿ nie
101 s± tak intensywnie rozwijane jak odtwarzacz.
102
103 %package win32
104 Summary:        Win32 audio/video plugin
105 Summary(pl):    Plugin audio/video win32
106 Group:          X11/Libraries
107 Requires:       %{name} = %{version}
108 Requires:       w32codec
109
110 %description win32
111 Plugin for using Win32 DLL libraries in avifile located in
112 /usr/lib/win32.
113
114 %description win32 -l pl
115 Plugin do u¿ywania w avifile zlokalizowanych w /usr/lib/win32
116 bibliotek DLL Win32.
117
118 %package ffmpeg
119 Summary:        GPL MPEG4 codec
120 Summary(pl):    Kodek MPEG4 na licencji GPL
121 Group:          X11/Libraries
122 Requires:       %{name} = %{version}
123
124 %description ffmpeg
125 ffmpeg is a hyper fast realtime audio/video encoder, a streaming
126 server and a generic audio and video file converter.
127
128 It can grab from a standard Video4Linux video source and convert it
129 into several file formats based on DCT/motion compensation encoding.
130 Sound is compressed in MPEG audio layer 2 or using an AC3 compatible
131 stream.
132
133 %description ffmpeg -l pl
134 ffmpeg jest hiperszybkim koderem audio/wideo czasu rzeczywistego,
135 serwerem strumieni oraz standardowym konwerterem plików audio-wideo.
136
137 Mo¿e pobieraæ ze standardowego Video4Linux ¼ród³o obrazu i konwertowaæ
138 je do kilku formatów plików opartych na kodowaniu DCT/kompensacji
139 ruchu. D¼wiêk jest kompresowany w MPEG audio layer 2 lub u¿ywaj±c
140 kompatybilnego z AC3 strumienia.
141
142 %package divx
143 Summary:        Fast MPEG4 codec
144 Summary(pl):    Szybki kodek MPEG4
145 Group:          X11/Libraries
146 Requires:       %{name} = %{version}
147 Requires:       divx4linux
148 Obsoletes:      avifile-divx4
149
150 %description divx
151 DivX MPEG-4 decoder and encoder.
152
153 %description divx -l pl
154 Dekoder i koder MPEG-4 DivX.
155
156 %package vorbis
157 Summary:        Vorbis audio plugin
158 Summary(pl):    Plugin vorbis audio.
159 Group:          X11/Libraries
160 Requires:       %{name} = %{version}
161
162 %description vorbis
163 Plugin for decompression of Vorbis audio streams.
164
165 %description vorbis -l pl
166 Plugin do dekompresji strumieni audio Vorbis.
167
168 %package mad
169 Summary:        MAD - MPEG audio plugin
170 Summary(pl):    MAD - plugin MPEG audio
171 Group:          X11/Libraries
172 Requires:       %{name} = %{version}
173
174 %description mad
175 Plugin for decompression of MPEG-1 Layer I/II/III audio streams.
176
177 %description mad -l pl
178 Plugin do dekompresji strumieni d¼wiêkowych MPEG-1 Layer I/II/III.
179
180 %package lame_audioenc
181 Summary:        MP3 audio encoder plugin
182 Summary(pl):    Plugin enkoduj±cy d¼wiêk w formacie MP3
183 Group:          X11/Libraries
184 Requires:       %{name} = %{version}
185
186 %description lame_audioenc
187 Plugin for mp3 encoding capability of avirecompress tool.
188
189 %description lame_audioenc -l pl
190 Plugin umo¿liwiaj±cy avirecompressowi kodowanie mp3.
191
192 %package xvid
193 Summary:        XVID codec
194 Summary(pl):    Kodek XVID
195 Group:          X11/Libraries
196 Requires:       %{name} = %{version}
197 Requires:       xvid
198
199 %description xvid
200 XVID decoder and encoder.
201
202 %description xvid -l pl
203 Dekoder i koder XVID.
204
205 %prep
206 %setup -q -n avifile0.7-%{_ver}
207 %patch0 -p1
208
209 %build
210 rm -f missing aclocal.m4
211 %{__libtoolize}
212 aclocal
213 autoheader
214 %{__autoconf}
215 %{__automake}
216
217 cd plugins/libmad/libmad
218 %{__autoconf}
219 cd ../../..
220
221 cd libmmxnow
222 %{__autoconf}
223 cd ..
224
225 # This is The WRONG Way (tm)
226 GEN_MOC="`grep -Rl '^ *Q_OBJECT$' *`"
227 for f in $GEN_MOC; do moc -o "${f%.[!.]*}.moc" "$f"; done
228
229 %configure \
230         CPPFLAGS="-I/usr/include/divx" AS="%{__cc}" \
231         FFMPEG_CFLAGS="%{rpmcflags} -ffast-math %{!?debug:-fomit-frame-pointer}" \
232         --with-qt-includes=%{_includedir}/qt \
233         --with-qt-libraries=%{_libdir} \
234         --enable-a52 \
235         --enable-release \
236         --enable-ffmpeg \
237         --enable-ffmpeg-a52 \
238         %{?_without_divx4:--disable-divx4} \
239 %ifarch i586 i686 athlon
240         --enable-x86opt \
241 %endif
242         %{?_without_qt:--without-qt}
243
244 touch lib/dummy.cpp
245 %{__make}
246
247 %install
248 rm -rf $RPM_BUILD_ROOT
249 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},/usr/lib/win32,%{_pixmapsdir},%{_applnkdir}/Multimedia}
250
251 %{__make} install \
252         DESTDIR="$RPM_BUILD_ROOT" \
253         m4datadir="%{_aclocaldir}"
254
255 cp -f include/fourcc.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
256
257 install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Multimedia
258 install bin/test.png $RPM_BUILD_ROOT%{_pixmapsdir}/avifile.png
259
260 %clean
261 rm -rf $RPM_BUILD_ROOT
262
263 %post   -p /sbin/ldconfig
264 %postun -p /sbin/ldconfig
265
266 %files
267 %defattr(644,root,root,755)
268 %doc README doc/{CREDITS,EXCEPTIONS,KNOWN_BUGS,LICENSING}
269 %doc doc/{README-DEVEL,TODO,VIDEO-PERFORMANCE,WARNINGS}
270 %attr(755,root,root) %{_libdir}/lib*.so.*.*
271 %dir %{_libdir}/avifile*
272 %attr(755,root,root) %{_libdir}/avifile*/audiodec.so*
273 %attr(755,root,root) %{_libdir}/avifile*/audiodec.la
274 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.so*
275 %attr(755,root,root) %{_libdir}/avifile*/mpeg_audiodec.la
276 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.so*
277 %attr(755,root,root) %{_libdir}/avifile*/ac3pass.la
278 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.so*
279 %attr(755,root,root) %{_libdir}/avifile*/mjpeg.la
280
281 %files devel
282 %defattr(644,root,root,755)
283 %doc doc/README-DEVEL*
284 %attr(755,root,root) %{_bindir}/avifile-config
285 %attr(755,root,root) %{_bindir}/mmxnow-config
286 %attr(755,root,root) %{_libdir}/lib*.la
287 %{_libdir}/lib*.so
288 %{_includedir}/%{name}
289 %{_includedir}/*.h
290 %{_aclocaldir}/*.m4
291
292 %if %{?_without_qt:0}%{!?_without_qt:1}
293 %files aviplay
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_bindir}/aviplay
296 %{_datadir}/%{name}*
297 %{_applnkdir}/Multimedia/*
298 %{_pixmapsdir}/*
299
300 %files utils
301 %defattr(644,root,root,755)
302 %attr(755,root,root) %{_bindir}/avi[bcmrt]*
303 %attr(755,root,root) %{_bindir}/kv4lsetup
304 %endif
305
306 %ifarch %{ix86}
307 %files win32
308 %defattr(644,root,root,755)
309 %attr(755,root,root) %{_libdir}/avifile*/win32.so*
310 %attr(755,root,root) %{_libdir}/avifile*/win32.la
311 %endif
312
313 %files ffmpeg
314 %defattr(644,root,root,755)
315 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.so*
316 %attr(755,root,root) %{_libdir}/avifile*/ffmpeg.la
317
318 %if %{?_without_divx4:0}%{!?_without_divx4:1}
319 %files divx
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/avifile*/divx*.so*
322 %attr(755,root,root) %{_libdir}/avifile*/divx*.la
323 %endif
324
325 %files vorbis
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.so*
328 %attr(755,root,root) %{_libdir}/avifile*/vorbis*.la
329
330 %files mad
331 %defattr(644,root,root,755)
332 %attr(755,root,root) %{_libdir}/avifile*/mad*.so*
333 %attr(755,root,root) %{_libdir}/avifile*/mad*.la
334
335 %files lame_audioenc
336 %defattr(644,root,root,755)
337 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.so*
338 %attr(755,root,root) %{_libdir}/avifile*/mp3lamebin_audioenc.la
339
340 %ifarch %{ix86} ppc sparc sparc64 sparcv9
341 %files xvid
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_libdir}/avifile*/xvid.so*
344 %attr(755,root,root) %{_libdir}/avifile*/xvid.la
345 %endif
This page took 0.134914 seconds and 4 git commands to generate.