%define enable_gpl 1 %define enable_non_free 1 %define buildyear %(echo %{version} | cut -b 7-10) %define buildmonth %(echo %{version} | cut -b 11-12) %define buildday %(echo %{version} | cut -b 13-14) %define buildver %{version} #% define buildver export-%{buildyear}-%{buildmonth}-%{buildday} Name: ffmpeg052 Epoch: 1 Version: 0.5.2 Release: 2mamba Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://ffmpeg.mplayerhq.hu/ Source: http://ffmpeg.mplayerhq.hu/releases/ffmpeg-%{version}.tar.bz2 #Source: http://ffmpeg.mplayerhq.hu/releases/ffmpeg-export-snapshot.tar.bz2 # Source now taken from exported snapshot # Source chekout from SVN: # svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg && find ffmpeg -name .svn | xargs rm -rf && tar cjvf ffmpeg-`date '+%Y%m%d'`svn.tar.bz2 ffmpeg Patch1: ffmpeg-0.4.9-pic.patch Patch2: ffmpeg-20080820svn-libx264.patch Patch3: ffmpeg-0.5-x264.patch Patch3: ffmpeg-0.5-x264.patch License: LGPL, GPL BuildRequires: liba52dec-devel BuildRequires: libgsm-devel BuildRequires: yasm-devel BuildRequires: ldconfig ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libamrnb-devel BuildRequires: libamrwb-devel BuildRequires: libbzip2-devel BuildRequires: libdc1394-devel BuildRequires: libfaac-devel BuildRequires: libfreetype-devel BuildRequires: libimlib2-devel BuildRequires: liblame-devel BuildRequires: libschroedinger-devel BuildRequires: libSDL-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libx264-devel BuildRequires: libxvidcore-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libogg-devel BuildRequires: libfaad2-devel BuildRequires: libraw1394-devel BuildRequires: libopencore-amr-devel # texi2html required BuildRequires: tetex >= 3.0 Obsoletes: libffmpeg BuildRoot: %{_tmppath}/%{name}-%{version}-root %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. %package -n libswscale Summary: Shared library part of ffmpeg Group: System/Libraries Obsoletes: libffmpeg Provides: ffmpeg-swscale Obsoletes: ffmpeg-swscale %description -n libswscale Shared libswscale libraries part of ffmpeg. %package -n libswscale-devel Summary: Shared header files and static libraries part of ffmpeg Group: System/Libraries Requires: libswscale = %{?epoch:%epoch:}%{version}-%{release} Obsoletes: libffmpeg-devel Provides: libffmpeg-swscale-devel Obsoletes: libffmpeg-swscale-devel %description -n libswscale-devel This is the common utility library from the ffmpeg project. It is required by all other ffmpeg libraries. This package contains the header files and static libraries needed to compile applications or shared objects that use libswscale %package -n libavcodec Summary: Shared library part of ffmpeg Group: System/Libraries Obsoletes: libffmpeg Provides: libffmpeg-avcodec Obsoletes: libffmpeg-avcodec %description -n libavcodec Shared libavcodec libraries part of ffmpeg %package -n libavcodec-devel Summary: Shared header files and static libraries part of ffmpeg Group: System/Libraries Requires: libavcodec = %{?epoch:%epoch:}%{version}-%{release} Obsoletes: libffmpeg-devel Provides: libffmpeg-avcodec-devel Obsoletes: libffmpeg-avcodec-devel %description -n libavcodec-devel This is the common utility library from the ffmpeg project. It is required by all other ffmpeg libraries. This package contains the header files and static libraries needed to compile applications or shared objects that use libavcodec %package -n libavdevice Summary: Shared library part of ffmpeg Group: System/Libraries Obsoletes: libffmpeg Provides: libffmpeg-avdevice Obsoletes: libffmpeg-avdevice %description -n libavdevice Shared libavdevice libraries part of ffmpeg %package -n libavdevice-devel Summary: Shared header files and static libraries part of ffmpeg Group: System/Libraries Requires: libavdevice = %{?epoch:%epoch:}%{version}-%{release} Obsoletes: libffmpeg-devel Provides: libffmpeg-avdevice-devel Obsoletes: libffmpeg-avdevice-devel %description -n libavdevice-devel This is the common utility library from the ffmpeg project. It is required by all other ffmpeg libraries. This package contains the header files and static libraries needed to compile applications or shared objects that use libavdevice. %package -n libavformat Summary: Shared library part of ffmpeg Group: System/Libraries Obsoletes: libffmpeg Provides: libffmpeg-avformat Obsoletes: libffmpeg-avformat %description -n libavformat Shared libavformat libraries part of ffmpeg. %package -n libavformat-devel Summary: Shared header files and static libraries part of ffmpeg Group: System/Libraries Requires: libavformat = %{?epoch:%epoch:}%{version}-%{release} Obsoletes: libffmpeg-devel Provides: libffmpeg-avformat-devel Obsoletes: libffmpeg-avformat-devel %description -n libavformat-devel This is the common utility library from the ffmpeg project. It is required by all other ffmpeg libraries. This package contains the header files and static libraries needed to compile applications or shared objects that use libavformat %package -n libavutil052 Summary: Shared library part of ffmpeg Group: System/Libraries %description -n libavutil052 Shared library part of ffmpeg %package -n libavutil052-devel Summary: Shared header files and static libraries part of ffmpeg Group: System/Libraries Requires: libavutil052 = %{?epoch:%epoch:}%{version}-%{release} Provides: libffmpeg-avutil-devel Obsoletes: libffmpeg-avutil-devel %description -n libavutil052-devel This is the common utility library from the ffmpeg project. It is required by all other ffmpeg libraries. This package contains the header files and static libraries needed to compile applications or shared objects that use libavutil %package -n libpostproc Summary: Video postprocessing library from ffmpeg Group: System/Libraries Provides: libffmpeg-postproc Obsoletes: libffmpeg-postproc Obsoletes: libffmpeg %description -n 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 postproc 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. %package -n libpostproc-devel Summary: Video postprocessing library from ffmpeg Group: System/Libraries Obsoletes: libffmpeg-devel Requires: libpostproc = %{?epoch:%epoch:}%{version}-%{release} Provides: libffmpeg-postproc-devel Obsoletes: libffmpeg-postproc-devel %description -n libpostproc-devel 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 postproc post-processing headers and static libraries which other projects such as transcode may use. Install this package if you intend to use MPlayer, transcode or other similar programs. %prep %setup -q -n ffmpeg-%{buildver} sed -i "s|gsm\.h|gsm/gsm.h|" configure # -n ffmpeg-%{version} #%patch3 -p1 #%patch1 -p1 -b .pic #%patch2 -p1 #%patch3 -p1 #rm -rf 'find ffmpeg-checkout-%{buildver} -name .svn | xargs' %build # configure not generated by autoconf export CFLAGS="%{optflags} -fno-unit-at-a-time" ./configure \ --extra-cflags="-I%{_includedir}/gsm" \ --prefix="%{_prefix}" \ --libdir="%{_libdir}" \ --mandir="%{_mandir}" \ --cpu=%{_target_cpu} \ --enable-libmp3lame \ --enable-libvorbis \ --enable-libtheora \ --enable-libfaac \ --enable-libgsm \ --enable-libdc1394 \ --enable-libschroedinger \ --enable-shared \ --enable-pthreads \ --enable-avfilter-lavf \ --disable-stripping \ --enable-libdirac \ --enable-libopenjpeg \ --enable-libspeex \ --enable-swscale \ %if %enable_gpl --enable-gpl \ --enable-version3 \ --enable-libfaad \ --enable-libfaadbin \ --enable-libxvid \ --enable-postproc \ --enable-libx264 \ --enable-libopencore-amrnb \ --enable-libopencore-amrwb \ %if %enable_non_free --enable-nonfree \ %endif %endif # --enable-swscale \ ## --incdir="%{_includedir}/ffmpeg" \ # FIXME: # software scaler enabled no # Sun medialib support no # AVISynth enabled no # liba52 dlopened no # enable non free (libamrnb, libamrwb) License: unredistributable # libamr-nb support no # libamr-wb support no # libgsm enabled no # libnut enabled no %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall \ shlibdir="%{buildroot}%{_libdir}" \ libdir="%{buildroot}%{_libdir}" #\ # incdir="%{buildroot}%{_includedir}/ffmpeg" \ # shlibdir="%{buildroot}%{_libdir}" \ # libdir="%{buildroot}%{_libdir}" # Remove unwanted files from the included docs #%{__cp} -a doc _docs #%{__rm} -rf _docs/{Makefile,*.texi,*.pl} # make installlib is broken, so we do it by hand #install -m 644 libavcodec/libavcodec.a %{buildroot}%{_libdir} #install -m 644 libavformat/libavformat.a %{buildroot}%{_libdir} # create compat symlink install -d %{buildroot}%{_libdir}/libavcodec ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a #install -d %{buildroot}%{_includedir}/ffmpeg #cp -a %{buildroot}%{_includedir}/libavcodec/*.h \ # %{buildroot}%{_includedir}/libavdevice/*.h \ # %{buildroot}%{_includedir}/libavformat/*.h \ # %{buildroot}%{_includedir}/libavutil/*.h \ # %{buildroot}%{_includedir}/libswscale/*.h \ # %{buildroot}%{_includedir}/ffmpeg #install -d %{buildroot}%{_includedir}/postproc #cp -a %{buildroot}%{_includedir}/libpostproc/*.h \ # %{buildroot}%{_includedir}/postproc # The is now at , so provide # a compatibility symlink #%{__mkdir_p} %{buildroot}%{_includedir}/postproc/ #%{__mkdir_p} %{buildroot}%{_includedir}/libswscale/ #%{__ln_s} ../ffmpeg/postprocess.h \ # %{buildroot}%{_includedir}/postproc/postprocess.h #%{__ln_s} ../ffmpeg/rgb2rgb.h\ # %{buildroot}%{_includedir}/libswscale/rgb2rgb.h %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n libavcodec -p /sbin/ldconfig %postun -n libavcodec -p /sbin/ldconfig %post -n libavdevice -p /sbin/ldconfig %postun -n libavdevice -p /sbin/ldconfig %post -n libavformat -p /sbin/ldconfig %postun -n libavformat -p /sbin/ldconfig %post -n libavutil052 -p /sbin/ldconfig %postun -n libavutil052 -p /sbin/ldconfig %post -n libpostproc -p /sbin/ldconfig %postun -n libpostproc -p /sbin/ldconfig %post -n libswscale -p /sbin/ldconfig %postun -n libswscale -p /sbin/ldconfig %files -n libavutil052 %defattr(-,root,root) %{_libdir}/libavutil.so.* #%files #%defattr(-,root,root) %exclude %{_bindir}/ffmpeg %exclude %{_bindir}/ffplay %exclude %{_bindir}/ffserver %exclude %{_libdir}/vhook/drawtext.so %exclude %{_libdir}/vhook/fish.so %exclude %{_libdir}/vhook/imlib2.so %exclude %{_libdir}/vhook/null.so %exclude %{_libdir}/vhook/ppm.so %exclude %{_libdir}/vhook/watermark.so %exclude %{_mandir}/man1/ffmpeg.1.gz %exclude %{_mandir}/man1/ffplay.1.gz %exclude %{_mandir}/man1/ffserver.1.gz #%doc CREDITS README #%files -n libswscale #%defattr(-,root,root) %exclude %{_libdir}/libswscale.so.* #%files -n libswscale-devel #%defattr(-,root,root) %exclude %dir %{_includedir}/libswscale %exclude %{_includedir}/libswscale/*.h %exclude %{_libdir}/libswscale.a %exclude %{_libdir}/libswscale.so %exclude %{_libdir}/pkgconfig/libswscale.pc #%files -n libavcodec #%defattr(-,root,root) %exclude %{_libdir}/libavcodec.so.* %exclude %{_datadir}/ffmpeg/libx264-*.ffpreset #%files -n libavcodec-devel #%defattr(-,root,root) %exclude %dir %{_includedir}/libavcodec %exclude %{_includedir}/libavcodec/avcodec.h %exclude %{_includedir}/libavcodec/opt.h %exclude %{_includedir}/libavcodec/vdpau.h %exclude %{_includedir}/libavcodec/xvmc.h %exclude %dir %{_libdir}/libavcodec %exclude %{_libdir}/libavcodec/libavcodec.a %exclude %{_libdir}/libavcodec.a %exclude %{_libdir}/libavcodec.so %exclude %{_libdir}/pkgconfig/libavcodec.pc #%files -n libavdevice #%defattr(-,root,root) %exclude %{_libdir}/libavdevice.so.* #%files -n libavdevice-devel #%defattr(-,root,root) %exclude %dir %{_includedir}/libavdevice %exclude %{_includedir}/libavdevice/avdevice.h %exclude %{_libdir}/libavdevice.a %exclude %{_libdir}/libavdevice.so %exclude %{_libdir}/pkgconfig/libavdevice.pc #%files -n libavformat #%defattr(-,root,root) %exclude %{_libdir}/libavformat.so.* #%files -n libavformat-devel #%defattr(-,root,root) %exclude %dir %{_includedir}/libavformat %exclude %{_includedir}/libavformat/avformat.h %exclude %{_includedir}/libavformat/avio.h #%{_includedir}/libavformat/rtsp.h #%{_includedir}/libavformat/rtspcodes.h %exclude %{_libdir}/libavformat.a %exclude %{_libdir}/libavformat.so %exclude %{_libdir}/pkgconfig/libavformat.pc %files -n libavutil052-devel %defattr(-,root,root) %dir %{_includedir}/libavutil %{_includedir}/libavutil/*.h %{_libdir}/libavutil.a %{_libdir}/libavutil.so %{_libdir}/pkgconfig/libavutil.pc #%files -n libpostproc #%defattr(-,root,root) %exclude %{_libdir}/libpostproc.so.* #%files -n libpostproc-devel #%defattr(-,root,root) %exclude %dir %{_includedir}/libpostproc %exclude %{_includedir}/libpostproc/postprocess.h %exclude %{_libdir}/libpostproc.a %exclude %{_libdir}/libpostproc.so %exclude %{_libdir}/pkgconfig/libpostproc.pc %changelog * Fri Jul 09 2010 Silvan Calarco 0.5.2-2mamba - rebuilt as legacy package (just provide libavutil052) * Tue May 25 2010 Automatic Build System 0.5.2-1mamba - automatic update to 0.5.2 by autodist * Tue Mar 16 2010 Automatic Build System 0.5.1-2mamba - automatic rebuild by autodist * Fri Mar 05 2010 Automatic Build System 0.5.1-1mamba - automatic update to 0.5.1 by autodist * Thu Nov 19 2009 Automatic Build System 0.5.0.20091119-1mamba - update to 0.5.snapshot20091119 * Wed Aug 12 2009 Automatic Build System 0.5-3mamba - automatic rebuild by autodist * Fri Jul 10 2009 Automatic Build System 0.5-2mamba - automatic rebuild by autodist * Mon Apr 06 2009 Silvan Calarco 0.5-1mamba - update to 0.5 - removed compatibility headers as complained by libxine 1.1.16.3 * Mon Dec 01 2008 Silvan Calarco 20081113-5mamba - remove provides for libffmpeg and libffmpeg-devel * Thu Nov 20 2008 gil 20081113-4mamba - rebuilt with new libdc1394 2.0.2 * Thu Nov 20 2008 Silvan Calarco 20081113-3mamba - add obsoletes for libffmpeg and libffmpeg to all subpackages * Wed Nov 19 2008 Silvan Calarco 20081113-2mamba - ffmpeg: don't obsolete libpostproc * Fri Nov 14 2008 Silvan Calarco 20081113-1mamba - package renamed to ffmpeg; rename libraries to standard names and add proper provides and obsoletes for upgrade * Wed Aug 20 2008 gil 20080820-1mamba - update to 20080820 - edit configure options - added patch - rebuilt with: libschroedinger, libamrnb, libamrwb, ffmpeg-checkout-snapshot.tar.bz2, - enable non free (libamrnb, libamrwb) License: unredistributable * Mon Jun 02 2008 Silvan Calarco 20080504-2mamba - rebuilt with recent libdc1394 * Mon May 05 2008 Silvan Calarco 20080504-1mamba - update to 20080505 * Wed Apr 02 2008 Silvan Calarco 20080402-1mamba - update to 20080402 * Fri Feb 29 2008 Silvan Calarco 20080229-1mamba - update to 20080229 - set exported-snapshot as source instead of svn * Sun Feb 03 2008 Silvan Calarco 20080203-1mamba - update to 20080203 * Thu Dec 13 2007 Silvan Calarco 20071213-1mamba - update to 20071213 - enabled pthread support - changed package maintainer - enabled support for libtheora and libx264 * Fri Jan 19 2007 Davide Madrisan 20070119-1qilnx - updated to subversion 20070119 - dropped patch against CVE-2005-4048 (merged upstream) - the shared libraries are now compiled with the -fPIC option: dropped patch * Mon Dec 19 2005 Davide Madrisan 0.4.9-2qilnx - fixed security issue CVE-2005-4048 (qibug#97) - gcc4 fixes; compile the library with -fPIC - HTML documentation moved to devel package * Fri Jun 17 2005 Davide Madrisan 0.4.9-pre1-1qilnx - update to version 0.4.9-pre1 by autospec * Sun Oct 03 2004 Davide Madrisan 0.4.8-2qilnx - specfile modified to match QiLinux standards - library name modified (was ffmpeg) - added a path to fix the broken configure check for the imlib2 library * Mon Sep 13 2004 Matteo Bernasconi 0.4.8-1qilnx - first build