2 # - split plugins into subpackages. (how? splitting criteria? perhaps by external deps, not by functionality (import/export/..?)
3 # - disable building of libraries which exist in system (libdv?,libmpeg2 etc.)
4 # - cmov test is broken, ignores --enable-cmov-extension and tries to read /proc/cpuinfo
5 # - pvm3 needs recompiled with -fPIC, then it can be used here
8 %bcond_without avifile # disable avifile module
9 %bcond_without gtk # disable GTK+ dependent stuff
10 %bcond_without im # disable imagemagick module
11 %bcond_without libmpeg2 # disable libmpeg2 support
12 %bcond_without libmpeg3 # disable libmpeg3 support
13 %bcond_without lzo # disable lzo support
14 %bcond_without mjpeg # disable mjpegtools support
15 %bcond_without sdl # disable SDL support
16 %bcond_with jpegmmx # jpeg-mmx
17 %bcond_with pvm3 # pvm3
19 # no jpeg-mmx there (doesn't compile)
20 %ifnarch i586 i686 athlon
21 %undefine with_jpegmmx
23 # pvm3 needs recompiled with -fPIC
24 %ifarch %{x8664} alpha
28 Summary: Video stream converter
29 Summary(pl): Konwerter strumieni video
35 Source0: http://www.jakemsr.com/transcode/%{name}-%{version}.tar.gz
36 # Source0-md5: e353c0ab7e927a8672528e05a9ae960b
37 URL: http://www.transcoding.org/
38 BuildRequires: xorg-lib-libXaw-devel
39 BuildRequires: xorg-lib-libXpm-devel
40 %{?with_im:BuildRequires: ImageMagick-devel >= 5.4.3}
41 %{?with_sdl:BuildRequires: SDL-devel >= 1.1.6}
42 BuildRequires: a52dec-libs-devel
43 BuildRequires: autoconf
44 BuildRequires: automake >= 1.3
45 %{?with_avifile:BuildRequires: avifile-devel > 3:0.7.43-1}
46 BuildRequires: ffmpeg-devel >= 0.4.9-0.pre1
47 BuildRequires: freetype-devel >= 2.1.2
48 %{?with_gtk:BuildRequires: gtk+-devel}
49 %{?with_jpegmmx:BuildRequires: jpeg-mmx}
50 BuildRequires: lame-libs-devel >= 3.89
51 BuildRequires: libdv-devel >= 0.104-3
52 BuildRequires: libdvdread-devel
53 BuildRequires: libfame-devel
54 BuildRequires: libjpeg-devel
55 %{?with_libmpeg3:BuildRequires: libmpeg3-devel}
56 BuildRequires: libogg-devel
57 BuildRequires: libpng-devel
58 %{?with_quicktime:BuildRequires: libquicktime-devel}
59 BuildRequires: libstdc++-devel
60 BuildRequires: libtheora-devel
61 BuildRequires: libtool >= 2:1.5
62 BuildRequires: libvorbis-devel
63 BuildRequires: libxml2-devel
64 %{?with_lzo:BuildRequires: lzo-devel}
65 %{?with_mjpeg:BuildRequires: mjpegtools-devel}
66 %{?with_libmpeg2:BuildRequires: mpeg2dec-devel >= 0.4.0b}
68 BuildRequires: nasm >= 0.98.34
70 BuildRequires: pkgconfig
71 %{?with_pvm3:BuildRequires: pvm-devel}
72 BuildRequires: xvid-devel
73 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
75 %define specflags -fomit-frame-pointer
78 Linux Video Stream Processing Tool.
81 Linuksowe narzêdzie do obróbki strumieni video.
84 Summary: library to handle avi files from transcode
85 Summary(pl): biblioteka do obróbki plików avi pochodz±ca z transcode
86 Group: Development/Libraries
89 Avilib is part of transcode made accessible for other programs that
90 require it. So far I know of one such program - ogmtools.
92 %description avilib -l pl
93 Avifile jest czê¶ci± programu transcode udostêpnion± dla innych
94 programów, które jej wymagaj±. Jak na razie znam jeden taki program -
108 # ac_cv_* to avoid detection of libdivxdecore as divx4linux (leading to errors)
109 # or divx4linux itself (make bcond_with if you want it)
111 ac_cv_header_decore_h=no \
112 ac_cv_header_encore2_h=no \
116 %ifarch %{ix86} %{x8664}
123 %ifarch i386 i486 i586 \
124 --disable-cmov-extension \
126 --enable-cmov-extension \
133 --enable-a52-default-decoder \
135 --%{!?with_gtk:dis}%{?with_gtk:en}able-gtk \
138 --enable-imagemagick \
140 --enable-libavcodec \
142 --enable-libdvdread \
145 --%{!?with_libmpeg2:dis}%{?with_libmpeg2:en}able-libmpeg2 \
146 --%{!?with_libmpeg3:dis}%{?with_libmpeg3:en}able-libmpeg3 \
147 --enable-libpostproc \
148 --%{!?with_quicktime:dis}%{?with_quicktime:en}able-libquicktime \
150 --%{!?with_lzo:dis}%{?with_lzo:en}able-lzo \
151 --%{!?with_mjpeg:dis}%{?with_mjpeg:en}able-mjpegtools \
156 --enable-statbuffer \
161 --%{!?with_avifile:dis}%{?with_avifile:en}able-avifile \
162 --%{!?with_jpegmmx:dis}%{?with_jpegmmx:en}able-libjpegmmx \
163 --%{!?with_pvm3:dis}%{?with_pvm3:en}able-pvm3 \
164 --with-libpostproc-includes=%{_includedir}/postproc \
170 rm -rf $RPM_BUILD_ROOT
173 DESTDIR=$RPM_BUILD_ROOT
175 install -D avilib/avilib.h $RPM_BUILD_ROOT%{_includedir}/avilib.h
178 rm -rf $RPM_BUILD_ROOT%{_docdir}/transcode
181 rm -rf $RPM_BUILD_ROOT
184 %defattr(644,root,root,755)
185 %doc README ChangeLog docs/README* docs/*.txt docs/html
186 %attr(755,root,root) %{_bindir}/*
187 # TODO: split it into subpackages export-*, import-* and filter-*
188 %dir %{_libdir}/%{name}
189 %attr(755,root,root) %{_libdir}/%{name}/*.so*
190 %attr(755,root,root) %{_libdir}/%{name}/*.awk
191 %{_libdir}/%{name}/*.la
192 %{_libdir}/%{name}/*.conf
193 %{_libdir}/%{name}/*.cfg
197 %defattr(644,root,root,755)
198 %doc avilib/README.avilib
199 %{_includedir}/avilib.h