%bcond_without libgsm %bcond_without x264 %bcond_without libnut %bcond_without libdc %lib_package avcodec 51 %lib_package avformat 52 %lib_package avdevice 52 %lib_package avutil 49 %lib_package postproc 51 %lib_package swscale 0 Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder Name: ffmpeg Version: 0.4.9 Release: 26_r12135%{?dist} License: GPL Group: System Environment/Libraries #Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}-pre1.tar.gz Source: %{name}-%{version}-r12135.tar.bz2 URL: http://ffmpeg.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-root BuildRequires: imlib2-devel, SDL-devel, freetype-devel, zlib-devel BuildRequires: a52dec-devel %{?with_libdc:BuildRequires: libdc1394-devel, libraw1394-devel} BuildRequires: faac-devel BuildRequires: faad2-devel %{?with_libgsm:BuildRequires: gsm-devel} BuildRequires: lame-devel %{?with_libnut:BuildRequires: nut-devel} BuildRequires: libtheora-devel, libvorbis-devel BuildRequires: xvidcore-devel %{?with_x264:BuildRequires: x264-devel} %lib_dependencies %description FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source. The command line interface is designed to be intuitive, in the sense that ffmpeg tries to figure out all the parameters, when possible. You have usually to give only the target bitrate you want. FFmpeg can also convert from any sample rate to any other, and resize video on the fly with a high quality polyphase filter. %devel_extra_Requires zlib-devel, libX11-devel, libXext-devel %devel_extra_Requires a52dec-devel %{?with_libdc:%devel_extra_Requires libdc1394-devel, libraw1394-devel} %devel_extra_Requires faac-devel, faad2-devel %{?with_libgsm:%devel_extra_Requires gsm-devel} %devel_extra_Requires lame-devel %devel_extra_Requires libvorbis-devel, libtheora-devel %devel_extra_Requires xvidcore-devel %{?with_x264:%devel_extra_Requires x264-devel} %ifarch x86_64 #devel_extra_Provides libavcodec.so()(64bit), libavformat.so()(64bit) %else #devel_extra_Provides libavcodec.so, libavformat.so %endif %prep %setup -q test -f version.h || echo "#define FFMPEG_VERSION \"%{evr}\"" > version.h %build ./configure --prefix=%{_prefix} --libdir=%{_libdir} \ --shlibdir=%{_libdir} --mandir=%{_mandir} \ --enable-shared \ --enable-gpl \ --enable-pp \ --enable-swscaler \ --enable-pthreads \ --enable-x11grab \ \ --enable-liba52 \ --enable-liba52bin \ --disable-avisynth \ --disable-libamr-nb \ --disable-libamr-wb \ %{?with_libdc:--enable-libdc1394} \ --enable-libfaac \ --enable-libfaad \ --enable-libfaadbin \ %{?with_libgsm:--enable-libgsm} \ --enable-libmp3lame \ %{?with_libnut:--enable-libnut} \ --enable-libtheora \ --enable-libvorbis \ %{?with_x264:--enable-libx264} \ --enable-libxvid \ %ifarch %ix86 --extra-cflags="%{optflags}" \ %else --extra-cflags="%{optflags} -fPIC" \ %endif --disable-strip make %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} incdir=%{buildroot}%{_includedir}/ffmpeg #mkdir %{buildroot}%{_includedir}/postproc #ln %{buildroot}%{_includedir}/ffmpeg/postprocess.h %{buildroot}%{_includedir}/postproc # Remove from the included docs rm -f doc/Makefile %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc COPYING* CREDITS Changelog README doc/ %{_bindir}/* %{_libdir}/vhook #{_mandir}/man1/ff*.1.gz %changelog * Mon Feb 18 2008 Axel Thimm - 0.4.9-26_r12135 - Update to latest svn version. * Sat Jan 12 2008 Axel Thimm - 0.4.9-25_r11517 - Update to latest svn version. - libdca nd libogg are not (directly) needed anymore. * Sat Oct 27 2007 Paulo Roma - 0.4.9-24_r8743 - Compiling with --enable-liba52 for vob->avi using AC3. - Added --enable-libaad. - Added libnut-devel as a conditional BuildRequires. - Using libdc1394-1.2.2, because version 2 does not work. * Mon Apr 23 2007 Axel Thimm - 0.4.9-23_r8743 - Add some more dependencies (#1172). * Sun Apr 22 2007 Axel Thimm - 0.4.9-21_r8743 - Add some dependencies on the devel package (#1172). * Sun Apr 15 2007 Axel Thimm - 0.4.9-20_r8742 - Update to latest svn version. * Wed Jan 3 2007 Axel Thimm - 0.4.9_19_r7407 - Update to latest svn version. * Fri Oct 27 2006 Axel Thimm - 0.4.9-18_r6524 - Add faac support. * Mon Oct 2 2006 Axel Thimm - 0.4.9-17_r6524 - Update to latest svn version. - Fix revision in release tag. * Wed Sep 6 2006 Axel Thimm - 0.4.9-15_r19707 - Update to latest svn version. * Wed Mar 1 2006 Axel Thimm - Update to cvs20060301. - Fix bug #752. * Mon Feb 27 2006 Axel Thimm - Move compatibility provides to devel package (bug #750). * Wed Feb 15 2006 Axel Thimm - Update to cvs20060215. * Sun Jun 12 2005 Axel Thimm - Update to cvs20050612. * Tue May 17 2005 Axel Thimm - Update to cvs 20050517. * Mon Apr 18 2005 Axel Thimm - Update to cvs 20050418. * Tue Nov 23 2004 Axel Thimm - Update to 0.4.9-pre1. * Thu Oct 16 2003 Axel Thimm - Update to 0.4.8. * Tue Jul 1 2003 Matthias Saou - Update to a CVS snapshot as videolan-client 0.6.0 needs it. - Enable faad, imlib2 and SDL support. - Disable mmx until it doesn't make the build fail anymore :-/ * Mon Mar 31 2003 Matthias Saou - Rebuilt for Red Hat Linux 9. - Hardcode provides in order to get it right :-/ * Tue Feb 25 2002 Matthias Saou - Moved libavcodec.so to the main package to fix dependency problems. * Wed Feb 19 2002 Matthias Saou - Major spec file updates, based on a very nice Mandrake spec. - Revert to the 0.4.6 release as CVS snapshots don't build. * Tue Feb 4 2002 Matthias Saou - Initial RPM release.