3 # - split plugins into subpackages
4 # - disable building of libraries which exist in system (libdv,libmpeg2 etc.)
5 # - cmov test is broken, ignores --enable-cmov-extension and tries to read /proc/cpuinfo
8 %bcond_without gtk # disable GTK+ dependent stuff
9 %bcond_without avifile # disable avifile module
10 %bcond_without sdl # disable SDL support
11 %bcond_without im # disable imagemagick module
12 %bcond_without libmpeg3 # disable libmpeg3 support
13 %bcond_without quicktime # disable quicktime support
15 Summary: Video stream converter
16 Summary(pl): Konwerter strumieni video
22 Source0: http://www.zebra.fh-weingarten.de/~transcode/pre/%{name}-%{version}.tar.gz
23 # Source0-md5: 550214ed9f85224423ca8c7308ed96ce
24 Patch0: %{name}-altivec.patch
25 Patch1: %{name}-pic.patch
26 Patch2: %{name}-amfix.patch
27 URL: http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/
28 %{?with_im:BuildRequires: ImageMagick-devel >= 5.4.3}
29 %{?with_sdl:BuildRequires: SDL-devel >= 1.1.6}
30 BuildRequires: XFree86-devel
31 BuildRequires: a52dec-libs-devel
32 BuildRequires: autoconf
33 BuildRequires: automake >= 1.3
34 %{?with_avifile:BuildRequires: avifile-devel >= 3:0.7.32-0.20030219}
35 BuildRequires: freetype-devel >= 2.1.2
36 BuildRequires: glib-devel >= 0.99.7
37 %{?with_gtk:BuildRequires: gtk+-devel}
38 BuildRequires: lame-libs-devel >= 3.89
39 BuildRequires: libdv-devel
40 BuildRequires: libdvdread-devel
41 BuildRequires: libfame-devel
42 BuildRequires: libjpeg-devel
43 %{?with_libmpeg3:BuildRequires: libmpeg3-devel}
45 BuildRequires: libogg-devel
46 BuildRequires: libtheora-devel
47 BuildRequires: libtool >= 2:1.5
48 BuildRequires: libvorbis-devel
49 BuildRequires: libxml2-devel
50 BuildRequires: lzo-devel
51 BuildRequires: mjpegtools-devel
53 BuildRequires: nasm >= 0.98.34
55 %{?with_quicktime:BuildRequires: quicktime4linux-devel >= 1.5.5}
56 BuildRequires: xvid-devel
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59 %define specflags -fomit-frame-pointer
62 Linux Video Stream Processing Tool.
65 Linuksowe narzêdzie do obróbki strumieni video.
68 Summary: library to handle avi files from transcode
69 Summary(pl): biblioteka do obróbki plików avi pochodz±ca z transcode
70 Group: Development/Libraries
73 Avilib is part of transcode made accessible for other programs that
74 require it. So far I know of one such program - ogmtools.
76 %description avilib -l pl
77 Avifile jest czê¶ci± programu transcode udostêpnion± dla innych
78 programów, które jej wymagaj±. Jak na razie znam jeden taki program -
93 # ac_cv_* to avoid detection of libdivxdecore as divx4linux (leading to errors)
94 # or divx4linux itself (make bcond_with if you want it)
96 ac_cv_header_decore_h=no \
97 ac_cv_header_encore2_h=no \
102 %ifarch i386 i486 i586 \
103 --disable-cmov-extension \
105 --enable-cmov-extension \
109 --with-a52-include=%{_prefix} \
110 --with-a52-libs=%{_prefix} \
111 --with-avifile-mods \
112 --with-avifile-exec-prefix=%{_prefix} \
114 --with-dv-includes=%{_prefix} \
115 --with-dv-libs=%{_prefix} \
117 --with-dvdread-includes=%{_prefix} \
118 --with-dvdread-libs=%{_prefix} \
119 --with-gtk-prefix=%{_prefix} \
120 --with-gtk-exec-prefix=%{_prefix} \
122 --with-lame-includes=%{_prefix} \
123 --with-lame-libs=%{_prefix} \
124 --with-libfame-prefix=%{_prefix} \
125 --with-libfame-exec-prefix=%{_prefix} \
126 --with-libjpeg-mods \
128 --with-libmpeg3-includes=%{_prefix} \
129 --with-libmpeg3-libs=%{_prefix} \
131 --with-magick-exec-prefix=%{_prefix} \
132 --with-mod-path=%{_libdir}/transcode \
134 --with-ogg-includes=%{_prefix} \
135 --with-ogg-libs=%{_prefix} \
137 --with-qt-includes=%{_prefix} \
138 --with-qt-libs=%{_prefix} \
139 --with-sdl-prefix=%{_prefix} \
140 --with-sdl-exec-prefix=%{_prefix} \
142 --with-vorbis-includes=%{_prefix} \
143 --with-vorbis-libs=%{_prefix} \
150 rm -rf $RPM_BUILD_ROOT
153 DESTDIR=$RPM_BUILD_ROOT
155 install -D avilib/avilib.h $RPM_BUILD_ROOT%{_includedir}/avilib.h
156 install -D avilib/libavi.a $RPM_BUILD_ROOT%{_libdir}/libavi.a
159 rm -rf $RPM_BUILD_ROOT
162 %defattr(644,root,root,755)
163 %doc README ChangeLog docs/README* docs/*.txt docs/html
164 %attr(755,root,root) %{_bindir}/*
165 # todo: split it into subpackages export-*, import-* and filter-*
166 %dir %{_libdir}/%{name}
167 %attr(755,root,root) %{_libdir}/%{name}/*.so*
168 %attr(755,root,root) %{_libdir}/%{name}/*.awk
169 %{_libdir}/%{name}/*.la
170 %{_libdir}/%{name}/*.conf
171 %{_libdir}/%{name}/*.cfg
175 %defattr(644,root,root,755)
176 %doc avilib/README.avilib
177 %{_includedir}/avilib.h