# # todo: # - split plugins into subpackages # - disable building of libraries which exist in system (libdv,libmpeg2 etc.) # - cmov test is broken, ignores --enable-cmov-extension and tries to read /proc/cpuinfo # # Conditional build: %bcond_without gtk # disable GTK+ dependent stuff %bcond_without avifile # disable avifile module %bcond_without sdl # disable SDL support %bcond_without im # disable imagemagick module %bcond_without libmpeg3 # disable libmpeg3 support %bcond_without quicktime # disable quicktime support # Summary: Video stream converter Summary(pl): Konwerter strumieni video Name: transcode Version: 0.6.12 Release: 10 License: GPL Group: Applications Source0: http://www.jakemsr.com/transcode/%{name}-%{version}.tar.gz # Source0-md5: 550214ed9f85224423ca8c7308ed96ce Patch0: %{name}-altivec.patch Patch1: %{name}-pic.patch Patch2: %{name}-amfix.patch Patch3: %{name}-gcc34.patch URL: http://www.transcoding.org/ %{?with_im:BuildRequires: ImageMagick-devel >= 5.4.3} %{?with_sdl:BuildRequires: SDL-devel >= 1.1.6} BuildRequires: XFree86-devel BuildRequires: a52dec-libs-devel BuildRequires: autoconf BuildRequires: automake >= 1.3 %{?with_avifile:BuildRequires: avifile-devel >= 3:0.7.32-0.20030219} BuildRequires: freetype-devel >= 2.1.2 BuildRequires: glib-devel >= 0.99.7 %{?with_gtk:BuildRequires: gtk+-devel} BuildRequires: lame-libs-devel >= 3.89 BuildRequires: libdv-devel BuildRequires: libdvdread-devel BuildRequires: libfame-devel BuildRequires: libjpeg-devel %{?with_libmpeg3:BuildRequires: libmpeg3-devel} # liblve-devel ??? BuildRequires: libogg-devel BuildRequires: libtheora-devel BuildRequires: libtool >= 2:1.5 BuildRequires: libvorbis-devel BuildRequires: libxml2-devel BuildRequires: lzo-devel BuildRequires: mjpegtools-devel %ifarch %{ix86} BuildRequires: nasm >= 0.98.34 %endif %{?with_quicktime:BuildRequires: quicktime4linux-devel >= 1.5.5} BuildRequires: xvid-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define specflags -fomit-frame-pointer %description Linux Video Stream Processing Tool. %description -l pl Linuksowe narzędzie do obróbki strumieni video. %package avilib Summary: library to handle avi files from transcode Summary(pl): biblioteka do obróbki plików avi pochodząca z transcode Group: Development/Libraries %description avilib Avilib is part of transcode made accessible for other programs that require it. So far I know of one such program - ogmtools. %description avilib -l pl Avifile jest częścią programu transcode udostępnioną dla innych programów, które jej wymagają. Jak na razie znam jeden taki program - ogmtools. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %build %{__libtoolize} %{__aclocal} %{__autoconf} %{__autoheader} %{__automake} # ac_cv_* to avoid detection of libdivxdecore as divx4linux (leading to errors) # or divx4linux itself (make bcond_with if you want it) %configure \ ac_cv_header_decore_h=no \ ac_cv_header_encore2_h=no \ %ifarch ppc --disable-altivec \ %endif %ifarch %{ix86} %ifarch i386 i486 i586 \ --disable-cmov-extension \ %else --enable-cmov-extension \ %endif %endif --with-a52 \ --with-a52-include=%{_prefix} \ --with-a52-libs=%{_prefix} \ --with-avifile-mods \ --with-avifile-exec-prefix=%{_prefix} \ --with-dv \ --with-dv-includes=%{_prefix} \ --with-dv-libs=%{_prefix} \ --with-dvdread \ --with-dvdread-includes=%{_prefix} \ --with-dvdread-libs=%{_prefix} \ --with-gtk-prefix=%{_prefix} \ --with-gtk-exec-prefix=%{_prefix} \ --with-lame \ --with-lame-includes=%{_prefix} \ --with-lame-libs=%{_prefix} \ --with-libfame-prefix=%{_prefix} \ --with-libfame-exec-prefix=%{_prefix} \ --with-libjpeg-mods \ --with-libmpeg3 \ --with-libmpeg3-includes=%{_prefix} \ --with-libmpeg3-libs=%{_prefix} \ --with-magick-mods \ --with-magick-exec-prefix=%{_prefix} \ --with-mod-path=%{_libdir}/transcode \ --with-ogg \ --with-ogg-includes=%{_prefix} \ --with-ogg-libs=%{_prefix} \ --with-qt \ --with-qt-includes=%{_prefix} \ --with-qt-libs=%{_prefix} \ --with-sdl-prefix=%{_prefix} \ --with-sdl-exec-prefix=%{_prefix} \ --with-vorbis \ --with-vorbis-includes=%{_prefix} \ --with-vorbis-libs=%{_prefix} \ --with-x \ --without-pvm3 %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install -D avilib/avilib.h $RPM_BUILD_ROOT%{_includedir}/avilib.h install -D avilib/libavi.a $RPM_BUILD_ROOT%{_libdir}/libavi.a %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc README ChangeLog docs/README* docs/*.txt docs/html %attr(755,root,root) %{_bindir}/* # todo: split it into subpackages export-*, import-* and filter-* %dir %{_libdir}/%{name} %attr(755,root,root) %{_libdir}/%{name}/*.so* %attr(755,root,root) %{_libdir}/%{name}/*.awk %{_libdir}/%{name}/*.la %{_libdir}/%{name}/*.conf %{_libdir}/%{name}/*.cfg %{_mandir}/man1/* %files avilib %defattr(644,root,root,755) %doc avilib/README.avilib %{_includedir}/avilib.h %{_libdir}/libavi.a