# $Id: ffmpeg.spec 3985 2006-01-18 18:55:49Z thias $ # Authority: matthias %{?dist: %{expand: %%define %dist 1}} %{?fc1:%define _without_theora 1} %{?el3:%define _without_theora 1} %{?rh9:%define _without_theora 1} %{?rh9:%define _without_x264 1} %{?rh7:%define _without_faac 1} %{?rh7:%define _without_theora 1} %{?rh7:%define _without_x264 1} %{?el2:%define _without_faac 1} %{?el2:%define _without_theora 1} %{?el2:%define _without_vorbis 1} %{?el2:%define _without_x264 1} %define date 20060317 #define prever pre1 Summary: Record, convert and stream audio and video Name: ffmpeg Version: 0.4.9 Release: 0.3%{?date:.%{date}}%{?prever:.%{prever}}.fc5 License: GPL Group: System Environment/Libraries URL: http://ffmpeg.sourceforge.net/ %if 0%{!?date:1} Source: http://dl.sf.net/ffmpeg/ffmpeg-%{version}%{?prever:-%{prever}}.tar.gz %else # cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg # then rename the directory and compress Source: ffmpeg-%{date}.tar.bz2 %endif #Patch0: ffmpeg-0.4.9-20051207-a52link.patch Patch1: ffmpeg-0.4.9-20051207-gsm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: imlib-devel, SDL-devel, freetype-devel, zlib-devel BuildRequires: texi2html %{!?_without_lame:BuildRequires: lame-devel} %{!?_without_vorbis:BuildRequires: libogg-devel, libvorbis-devel} %{!?_without_theora:BuildRequires: libogg-devel, libtheora-devel} %{!?_without_faad:BuildRequires: faad2-devel} %{!?_without_faac:BuildRequires: faac-devel} %{!?_without_gsm:BuildRequires: gsm-devel} %{!?_without_xvid:BuildRequires: xvidcore-devel} %{!?_without_x264:BuildRequires: x264-devel} %{!?_without_a52dec:BuildRequires: a52dec-devel} %{!?_without_dts:BuildRequires: libdca-devel} %{?_with_dc1394:BuildRequires: libdc1394-devel} %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. Available rpmbuild rebuild options : --without : lame vorbis theora faad faac gsm xvid x264 a52dec dts altivec --with : dc1394 %package devel Summary: Header files and static library for the ffmpeg codec library Group: Development/Libraries Requires: %{name} = %{version} Requires: imlib-devel, SDL-devel, freetype-devel, zlib-devel, pkgconfig %{!?_without_lame:Requires: lame-devel} %{!?_without_vorbis:Requires: libogg-devel, libvorbis-devel} %{!?_without_theora:Requires: libogg-devel, libtheora-devel} %{!?_without_faad:Requires: faad2-devel} %{!?_without_faac:Requires: faac-devel} %{!?_without_gsm:Requires: gsm-devel} %{!?_without_xvid:Requires: xvidcore-devel} %{!?_without_x264:Requires: x264-devel} %{!?_without_a52dec:Requires: a52dec-devel} %{!?_without_dts:Requires: libdca-devel} %{?_with_dc1394:Requires: libdc1394-devel} %description devel 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. Install this package if you want to compile apps with ffmpeg support. %package libpostproc Summary: Video postprocessing library from ffmpeg Group: System Environment/Libraries Provides: ffmpeg-libpostproc-devel = %{version}-%{release} Provides: libpostproc = 1.0-1 Provides: libpostproc-devel = 1.0-1 Obsoletes: libpostproc < 1.0-1 Obsoletes: libpostproc-devel < 1.0-1 Requires: pkgconfig %description libpostproc FFmpeg is a very fast video and audio converter. It can also grab from a live audio/video source. This package contains only ffmpeg's libpostproc post-processing library which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs. %prep %setup -n %{?date:ffmpeg-%{date}}%{!?date:%{name}-%{version}%{?prever:-%{prever}}} #%patch0 -p1 -b .a52link %patch1 -p1 -b .gsm %build export CFLAGS="%{optflags}" ./configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --incdir=%{_includedir}/ffmpeg \ %ifarch x86_64 --extra-cflags="-fPIC" \ %endif %{!?_without_lame: --enable-mp3lame} \ %{!?_without_vorbis: --enable-libogg --enable-vorbis} \ %{!?_without_theora: --enable-theora} \ %{!?_without_faad: --enable-faad} \ %{!?_without_faac: --enable-faac} \ %{!?_without_gsm: --enable-libgsm} \ %{!?_without_xvid: --enable-xvid} \ %{!?_without_x264: --enable-x264} \ %{!?_without_a52: --enable-a52 --enable-a52bin} \ %{!?_without_dts: --enable-dts} \ --enable-pp \ --enable-shared \ --enable-pthreads \ %{?_with_dc1394: --enable-dc1394} \ --enable-gpl \ --disable-opts \ --disable-strip %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} _docs %makeinstall \ incdir=%{buildroot}%{_includedir}/ffmpeg # Make installlib is broken in 0.4.6-8 (20050502 too), so we do it by hand # in order to get the static libraries installed too. %{__install} -m 0644 libav*/libav*.a %{buildroot}%{_libdir}/ # Remove unwanted files from the included docs %{__cp} -a doc _docs %{__rm} -rf _docs/{CVS,Makefile,*.1,*.texi,*.pl} # The is now at , so provide # a compatibility copy %{__mkdir_p} %{buildroot}%{_includedir}/postproc/ %{__cp} -a %{buildroot}%{_includedir}/ffmpeg/postprocess.h \ %{buildroot}%{_includedir}/postproc/postprocess.h %clean %{__rm} -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post libpostproc -p /sbin/ldconfig %postun libpostproc -p /sbin/ldconfig %files %defattr(-, root, root, 0755) %doc Changelog COPYING CREDITS README %{_bindir}/* %{_libdir}/*.so.* %exclude %{_libdir}/libpostproc.so* %{_libdir}/vhook/ %{_mandir}/man1/* %files devel %defattr(-, root, root, 0755) %doc _docs/* %{_includedir}/ffmpeg/ %{_libdir}/*.a %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %exclude %{_libdir}/pkgconfig/libpostproc.pc %files libpostproc %defattr(-, root, root, 0755) %{_includedir}/postproc/ %{_libdir}/libpostproc.so* %{_libdir}/pkgconfig/libpostproc.pc %changelog * Mon Apr 17 2006 Petr Krištof 0.4.9-0.3.20060317 - Rebuild with minimal codecs * Fri Mar 17 2006 Matthias Saou 0.4.9-0.4.20060317 - Update to CVS snapshot. - The libraries are versionned at last, so no longer use the autoreqprov hack. - Override incdir to get install to work properly. - Provide a postprocess.h compatibility copy. * Wed Dec 7 2005 Matthias Saou 0.4.9-0.3.20051207 - Update to CVS snapshot. - Added theora, gsm, x264, dts and dc1394 rebuild options, all on by default. - Nope, disable dc1394, as it fails to build. - Add GSM patch -> - Enable pthreads explicitly, as the build fails otherwise. - Include new pkgconfig files, add pkgconfig requirements to devel packages. - Add new libavutil.so* provides. - Rename libpostproc package to ffmpeg-libpostproc, in order to make things easier to obsolete the old mplayer sub-package. - No longer use %%configure, since --host makes the script stop. - No longer explicitly disable MMX for non-x86 (works again on x86_64). * Tue May 3 2005 Matthias Saou 0.4.9-0.20050427.1 - Downgrade to 20050427 since avcodec.h is missing AVCodecContext otherwise. - Re-enable upgrade path for FC3. * Tue May 3 2005 Matthias Saou 0.4.9-0.1.20050502 - Update and include patches from Enrico to fix gcc4 build. - Remove no longer include static libs from the devel package. - Remove no longer required explicit requirements. - Clean up obsolete stuff from the build : separate libpostproc compile etc. * Sun Apr 17 2005 Matthias Saou 0.4.9-0.1.20050417 - Update to today's snapshot (no upgrade path, but that shouldn't matter). - Disable patch3 as it's nowhere to be found :-( - Added theora... hmm, nope, the build is broken. * Sat Jan 15 2005 Dag Wieers - 0.4.9-0.20041110.3 - Exclude libpostproc.so* from ffmpeg package. * Sun Nov 21 2004 Matthias Saou 0.4.9-0.20041110.2 - Put back explicit requirements since some (all?) don't get properly added automatically, like faad2 (thanks to Holden McGroin). * Tue Nov 16 2004 Matthias Saou 0.4.9-0.20041110.1 - Update to latest CVS snaphsot. - Explicitely disable mmx on non-x86 to fix x86_64 build. - Add -fPIC to --extra-cflags on non-x86 to fix x86_64 build, as it seems mmx and pic are mutually exclusive (build fails with both). * Tue Nov 2 2004 Matthias Saou 0.4.9-0.20041102.1 - Update to 20040926 CVS to fix FC3 compilation problems... not! - Moved OPTFLAGS to --extra-cflags configure option... no better! - Add HAVE_LRINTF workaround to fix compile failure... yeah, one less. - Disable -fPIC, libpostproc breaks with it enabled... argh :-( - ...I give up, disable a52 for now. * Mon Sep 27 2004 Matthias Saou 0.4.9-0.pre1.1 - Update to 0.4.9-pre1. - Enable GPL, pp, shared and shared-pp! - Add sharedpp and nostrip patches from livna.org rpm. - Add PIC vs. __PIC__ patch. - Re-enable MMX. - Add mandatory -fomit-frame-pointer flag to not bomb on compile. - Added man pages. - Added -UUSE_FASTMEMCPY for libpostproc, otherwise we get : libpostproc.so.0: undefined reference to `fast_memcpy' * Mon Aug 2 2004 Matthias Saou 0.4.8-3 - Removed explicit binary dependencies. - Removed faac support, it doesn't exist. - Seems like Imlib2 support is broken... - Added missing -devel requirements for the -devel package. * Thu Jun 03 2004 Dag Wieers - 0.4.8-3 - Fixes for building for x86_64 architecture. * Tue May 18 2004 Matthias Saou 0.4.8-3 - Rebuilt for Fedora Core 2. * Sat Feb 21 2004 Matthias Saou 0.4.8-2 - Add faac support. - Enable pp. - Remove unneeded explicit main a52dec dependency. * Fri Nov 7 2003 Matthias Saou 0.4.8-1 - Update to 0.4.8. - Steal some changes back from Troy Engel : Disabling mmx to make the build succeed and added man pages. - Re-enabled auto provides but added explicit libavcodec.so and libavformat.so. - Rebuild for Fedora Core 1. * Mon Aug 25 2003 Matthias Saou - Update to 0.4.7. * Fri Aug 8 2003 Matthias Saou - Update to todays's snapshot. * 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. - Force OPTFLAGS to remove -mcpu, -march and -pipe that all prevent building! * 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.