Search
j0ke.net Open Build Service
>
Projects
>
multimedia
>
ffmpeg
> ffmpeg.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ffmpeg.spec of Package ffmpeg (Revision 7)
Currently displaying revision
7
,
show latest
# norootforbuild %define name ffmpeg %define version 0.4.9 %define release 9.svn20071223 %define major 0 %define lib libffmpeg %define libname %{lib}%{major} Name: %{name} Version: %{version} Release: %{release} License: LGPL Group: Applications/Multimedia Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder Summary(de): Hyperschneller MPEG1/MPEG4/H263/RV Und AC3/MPEG Audio-Encoder URL: http://ffmpeg.sourceforge.net Source0: ffmpeg-0.4.9-svn20071223.tar.bz2 Patch0: ffmpeg_configure.diff Patch1: ffmpeg-img_convert-SWSCALE.diff BuildRoot: %{_tmppath}/%{name}-buildroot Prefix: %{_prefix} Requires: %{libname} = %{version}-%{release} Requires: imlib2 Requires: lame Requires: libogg Requires: libvorbis Requires: libtheora Requires: ncurses Requires: esound Requires: alsa Requires: freetype2 Requires: SDL Requires: slang %if %suse_version >= 920 Requires: xorg-x11-libs %else Requires: XFree86-libs %endif Requires: zlib Requires: faad2 >= 2.5 Requires: faac >= 1.25 Requires: amrnb Requires: amrwb %if %suse_version >= 930 BuildRequires: libdca-devel BuildRequires: libdca0 Requires: libdca0 %endif %if %suse_version >= 1010 BuildRequires: libgsm BuildRequires: libgsm-devel %endif BuildRequires: imlib2-devel BuildRequires: lame BuildRequires: libogg-devel BuildRequires: libvorbis-devel BuildRequires: libtheora-devel BuildRequires: ncurses-devel BuildRequires: esound-devel BuildRequires: alsa-devel BuildRequires: freetype2-devel BuildRequires: SDL-devel BuildRequires: slang-devel %if %suse_version >= 920 BuildRequires: xorg-x11-devel %else BuildRequires: XFree86-devel %endif BuildRequires: zlib-devel BuildRequires: faad2 >= 2.5 BuildRequires: faad2-devel >= 2.5 BuildRequires: faac >= 1.25 BuildRequires: libx264-devel BuildRequires: xvid-devel BuildRequires: libmp4v2-devel BuildRequires: texinfo BuildRequires: amrnb-devel BuildRequires: amrwb-devel BuildRequires: a52dec BuildRequires: libdc1394 BuildRequires: libdc1394-devel %if %suse_version > 1020 BuildRequires: libdc1394_control12-devel %endif %description ffmpeg is a hyper fast realtime audio/video encoder, a streaming server and a generic audio and video file converter. It can grab from a standard Video4Linux video source and convert it into several file formats based on DCT/motion compensation encoding. Sound is compressed in MPEG audio layer 2 or using an AC3 compatible stream. %description -l de ffmpeg ist ein hyperschneller realtime Audio-/Video-Encoder, ein Streaming Server und ein Audio und Video Dateikonverter. Es kann von einer Standard-Video4Linux-Quelle grabben und in verschiedene Dateiformate basierend auf einer DCT/motion compensation konvertiern. Sound wird in einen MPEG audio layer 2 oder AC3 Stream geschrieben. %package -n %{libname} Group: System/Libraries Summary: Shared library part of ffmpeg Requires: lame Requires: libogg Requires: libvorbis Requires: libtheora Requires: ncurses Requires: esound Requires: alsa Requires: slang Requires: zlib Requires: faad2 >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' faad2` ) Requires: faac >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' faac` ) Requires: xvid Requires: libmp4v2 Requires: libx264 Requires: amrnb Requires: amrwb Requires: libdc1394 %if %suse_version >= 1010 Requires: libgsm %endif Obsoletes: libpostproc Provides: %{lib} = %{version}-%{release} Provides: libpostproc %description -n %{libname} ffmpeg is a hyper fast realtime audio/video encoder, a streaming server and a generic audio and video file converter. It can grab from a standard Video4Linux video source and convert it into several file formats based on DCT/motion compensation encoding. Sound is compressed in MPEG audio layer 2 or using an AC3 compatible stream. Install libffmpeg if you want to encode multimedia streams. %description -n %{libname} -l de ffmpeg ist ein hyperschneller realtime Audio-/Video-Encoder, ein Streaming Server und ein Audio und Video Dateikonverter. Es kann von einer Standard-Video4Linux-Quelle grabben und in verschiedene Dateiformate basierend auf einer DCT/motion compensation konvertiern. Sound wird in einen MPEG audio layer 2 oder AC3 Stream geschrieben. Installieren sie libffmpeg, wenn Sie Multimdia-Streamd encoden wollen. %package -n %{lib}-devel Group: System/Libraries Summary: Header files and static library for the ffmpeg codec library Requires: %{libname} = %{version}-%{release} Requires: lame Requires: libogg-devel Requires: libvorbis-devel Requires: libtheora-devel Requires: esound-devel Requires: alsa-devel Requires: slang-devel Requires: zlib-devel Requires: faad2-devel Requires: faac Requires: xvid-devel Requires: libmp4v2-devel Requires: libx264-devel Requires: amrnb-devel Requires: amrwb-devel %if %suse_version > 930 Requires: libdca-devel %endif %if %suse_version >= 1010 Requires: libgsm-devel %endif Requires: libdc1394 Requires: libdc1394-devel %if %suse_version > 1020 Requires: libdc1394_control12-devel %endif Provides: %{libname}-devel = %{version}-%{release} %ifarch x86_64 amd64 ia32e Provides: libavcodec.so()(64bit) Provides: libavformat.so()(64bit) Provides: libavutil.so()(64bit) Provides: libpostproc.so()(64bit) %else Provides: libavcodec.so Provides: libavformat.so Provides: libavutil.so Provides: libpostproc.so %endif Obsoletes: ffmpeg-devel Provides: ffmpeg-devel %description -n %{lib}-devel ffmpeg is a hyper fast realtime audio/video encoder, a streaming server and a generic audio and video file converter. It can grab from a standard Video4Linux video source and convert it into several file formats based on DCT/motion compensation encoding. Sound is compressed in MPEG audio layer 2 or using an AC3 compatible stream. Install libffmpeg-devel if you want to compile apps with ffmpeg support. %description -n %{lib}-devel -l de ffmpeg ist ein hyperschneller realtime Audio-/Video-Encoder, ein Streaming Server und ein Audio und Video Dateikonverter. Es kann von einer Standard-Video4Linux-Quelle grabben und in verschiedene Dateiformate basierend auf einer DCT/motion compensation konvertiern. Sound wird in einen MPEG audio layer 2 oder AC3 Stream geschrieben. Installieren Sie libffmpeg-devel wenn Sie Anwendungen mit ffmpeg Support compilieren wollen. %debug_package %prep #%setup -q -n %{name}-%{version}-pre1 %setup -q -n %{name} %patch0 %patch1 #%if %suse_version <= 930 #%patch1 -p1 #%endif %suse_update_libdir configure #don't call ldconfig on install #perl -pi -e 's/ldconfig \|\| true//' libavcodec/Makefile %build archflags="" %ifarch x86_64 amd64 ia32e archflags=" -fPIC" %endif %ifarch %ix86 # archflags=" -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" archflags=" -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" mv libpostproc/Makefile libpostproc/MakefileX cat libpostproc/MakefileX | sed -e "s/-fPIC -DPIC//g" > libpostproc/Makefile %endif CFLAGS="$RPM_OPT_FLAGS $archflags" %if %suse_version >= 1010 CFLAGS="${CFLAGS} -I%{_includedir}/gsm" %endif export archflags export CFLAGS ./configure --shlibdir=%{_libdir} --prefix=%{_prefix} --mandir=%{_mandir} \ %if %suse_version == 910 --enable-memalign-hack \ %endif --libdir=%{_libdir} --enable-shared --enable-libmp3lame \ --enable-libvorbis --enable-libtheora --enable-libfaad \ --enable-libfaac --enable-libxvid --enable-liba52 --enable-swscaler \ --enable-pp --enable-gpl --enable-vhook --enable-x11grab \ %if %suse_version >= 1010 --enable-libgsm \ %endif %ifarch ppc --disable-altivec \ %endif --enable-libx264 --enable-libamr-nb --enable-libamr-wb --enable-libdc1394 %{__make} %{?jobs:-j%{jobs}} %install [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %{__ln_s} libavformat libav %{__make} DESTDIR=%{buildroot} mandir=%{buildroot}%{_mandir} \ prefix=%{buildroot}%{_prefix} \ bindir=%{buildroot}%{_bindir} \ libdir=%{buildroot}%{_libdir} \ mandir=%{buildroot}%{_mandir} \ includedir=%{buildroot}%{_includedir} \ install %{__install} -m 644 libavcodec/opt.h %{buildroot}%{_includedir}/%{name}/opt.h %{__install} -d %{buildroot}%{_libdir}/libavcodec %{__rm} -rf doc/.svn %{__rm} -f doc/Makefile pushd %{buildroot}%{_libdir}/libavcodec && %{__ln_s} -f ../libavcodec.a && popd %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %post -n %{libname} %run_ldconfig %postun -n %{libname} %run_ldconfig %files %defattr(-,root,root) %doc Changelog COPYING.* CREDITS INSTALL MAINTAINERS README doc %{_bindir}/* %{_libdir}/vhook/* %{_mandir}/man1/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{lib}-devel %defattr(-,root,root) %{_includedir}/%{name} %{_includedir}/postproc/postprocess.h %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/libavcodec/* %{_libdir}/pkgconfig/*.pc %changelog * Sun Sep 30 2007 Carsten Schoene <cs@linux-administrator.com> - import for SLE_10 build