* Thu Oct 22 2009 Dominik Mierzejewski <rpm at greysector.net> - 0.5-4.20091019svn

- 20091019 snapshot
- dropped support for old amr libs (not supported upstream since July)
- don't disable yasm for generic builds
- fixed opencore amr support
- dropped workaround for non-standard openjpeg headers location
- dropped separate SIMDified libs for x86, runtime CPU detection should be enough
el8
Dominik Mierzejewski 16 years ago
parent d6e488a7f1
commit 81a75bb7d2

@ -13,10 +13,14 @@ cleanup() {
unset CDPATH unset CDPATH
pwd=$(pwd) pwd=$(pwd)
svn=$(date +%Y%m%d) svn=$(date +%Y%m%d)
svn=20091019
cd "$tmp" cd "$tmp"
svn checkout -r {$svn} svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-$svn svn checkout -r {$svn} svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-$svn
cd ffmpeg-$svn cd ffmpeg-$svn
pushd libswscale
svn update -r {$svn} libswscale
popd
./version.sh . version.h ./version.sh . version.h
find . -type d -name .svn -print0 | xargs -0r rm -rf find . -type d -name .svn -print0 | xargs -0r rm -rf
sed -i -e '/^\.PHONY: version\.h$/d' Makefile sed -i -e '/^\.PHONY: version\.h$/d' Makefile

@ -1,13 +1,17 @@
# TODO: add make test to %%check section # TODO: add make test to %%check section
%global svn 20091007 %global svn 20091019
%global faad2min 1:2.6.1 %global faad2min 1:2.6.1
Summary: Digital VCR and streaming server Summary: Digital VCR and streaming server
Name: ffmpeg Name: ffmpeg
Version: 0.5 Version: 0.5
Release: 3.svn%{svn}%{?dist} Release: 4.%{svn}svn%{?dist}
%if 0%{?_with_opencore_amr:1}
License: GPLv3+
%else
License: GPLv2+ License: GPLv2+
%endif
Group: Applications/Multimedia Group: Applications/Multimedia
URL: http://ffmpeg.org/ URL: http://ffmpeg.org/
Source0: http://rpms.kwizart.net/fedora/SOURCES/%{name}-%{svn}.tar.bz2 Source0: http://rpms.kwizart.net/fedora/SOURCES/%{name}-%{svn}.tar.bz2
@ -16,7 +20,6 @@ Source1: ffmpeg-snapshot.sh
Patch0: %{name}-textrel.patch Patch0: %{name}-textrel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%{?_with_amr:BuildRequires: amrnb-devel amrwb-devel}
BuildRequires: bzip2-devel BuildRequires: bzip2-devel
BuildRequires: dirac-devel BuildRequires: dirac-devel
%{?_with_faac:BuildRequires: faac-devel} %{?_with_faac:BuildRequires: faac-devel}
@ -29,7 +32,7 @@ BuildRequires: libtheora-devel
%{?_with_vaapi:BuildRequires:libva-devel >= 0.31.0} %{?_with_vaapi:BuildRequires:libva-devel >= 0.31.0}
BuildRequires: libvdpau-devel BuildRequires: libvdpau-devel
BuildRequires: libvorbis-devel BuildRequires: libvorbis-devel
%{?_with_opencore-amr:BuildRequires: opencore-amr-devel} %{?_with_opencore_amr:BuildRequires: opencore-amr-devel}
BuildRequires: openjpeg-devel BuildRequires: openjpeg-devel
BuildRequires: schroedinger-devel BuildRequires: schroedinger-devel
BuildRequires: SDL-devel BuildRequires: SDL-devel
@ -85,14 +88,13 @@ This package contains development files for %{name}
--libdir=%{_libdir} \\\ --libdir=%{_libdir} \\\
--mandir=%{_mandir} \\\ --mandir=%{_mandir} \\\
--arch=%{_target_cpu} \\\ --arch=%{_target_cpu} \\\
--extra-cflags="$RPM_OPT_FLAGS -I%{_includedir}/openjpeg" \\\ --extra-cflags="$RPM_OPT_FLAGS" \\\
--extra-version=rpmfusion \\\ --extra-version=rpmfusion \\\
%{?_with_opencore-amr: --enable-libopencore-amrnb --enable-libopencore-amrnb} \\\ %{?_with_opencore_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \\\
%{?_with_amr:--enable-libamr-nb --enable-libamr-wb} \\\
--enable-bzlib \\\ --enable-bzlib \\\
--enable-libdc1394 \\\ --enable-libdc1394 \\\
--enable-libdirac \\\ --enable-libdirac \\\
%{?_with_faac:--enable-libfaac} \\\ %{?_with_faac:--enable-libfaac --enable-nonfree} \\\
--enable-libfaad \\\ --enable-libfaad \\\
--enable-libgsm \\\ --enable-libgsm \\\
--enable-libmp3lame \\\ --enable-libmp3lame \\\
@ -111,8 +113,6 @@ This package contains development files for %{name}
--disable-static \\\ --disable-static \\\
--enable-shared \\\ --enable-shared \\\
--enable-gpl \\\ --enable-gpl \\\
%{?_with_nonfree:--enable-nonfree} \\\
%{?_with_gplv3:--enable-version3} \\\
--disable-debug \\\ --disable-debug \\\
--disable-stripping --disable-stripping
@ -131,14 +131,8 @@ pushd generic
%else %else
%ifarch %{ix86} %ifarch %{ix86}
--cpu=%{_target_cpu} \ --cpu=%{_target_cpu} \
--disable-mmx2 \
--disable-amd3dnow \
--disable-amd3dnowext \
--disable-sse \
--disable-ssse3 \
--disable-yasm \
%endif %endif
%ifarch x86_64 %ifarch %{ix86} x86_64
--enable-runtime-cpudetect \ --enable-runtime-cpudetect \
%endif %endif
%ifarch ppc ppc64 %ifarch ppc ppc64
@ -156,18 +150,7 @@ popd
%if 1%{?ffmpegsuffix:0} %if 1%{?ffmpegsuffix:0}
mkdir simd mkdir simd
pushd simd pushd simd
%ifarch %{ix86} %ifarch ppc ppc64
%{ff_configure}\
--shlibdir=%{_libdir}/sse2 \
--cpu=i686 \
--enable-runtime-cpudetect \
--disable-ffmpeg \
--disable-ffserver \
--disable-ffplay \
make %{?_smp_mflags}
%endif
%ifarch ppc
%{ff_configure}\ %{ff_configure}\
--shlibdir=%{_libdir}/altivec \ --shlibdir=%{_libdir}/altivec \
--cpu=g4 \ --cpu=g4 \
@ -210,7 +193,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
popd popd
%if 1%{?ffmpegsuffix:0} %if 1%{?ffmpegsuffix:0}
pushd simd pushd simd
%ifarch %{ix86} ppc ppc64 sparc sparc64 %ifarch ppc ppc64 sparc sparc64
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT
%endif %endif
popd popd
@ -239,9 +222,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/lib*.so.* %{_libdir}/lib*.so.*
%if 1%{?ffmpegsuffix:0} %if 1%{?ffmpegsuffix:0}
%ifarch %{ix86}
%{_libdir}/sse2/lib*.so.*
%endif
%ifarch ppc ppc64 %ifarch ppc ppc64
%{_libdir}/altivec/lib*.so.* %{_libdir}/altivec/lib*.so.*
%endif %endif
@ -257,9 +237,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/pkgconfig/lib*.pc %{_libdir}/pkgconfig/lib*.pc
%{_libdir}/lib*.so %{_libdir}/lib*.so
%if 1%{?ffmpegsuffix:0} %if 1%{?ffmpegsuffix:0}
%ifarch %{ix86}
%{_libdir}/sse2/lib*.so
%endif
%ifarch ppc ppc64 %ifarch ppc ppc64
%{_libdir}/altivec/lib*.so %{_libdir}/altivec/lib*.so
%endif %endif
@ -270,6 +247,14 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Oct 22 2009 Dominik Mierzejewski <rpm at greysector.net> - 0.5-4.20091019svn
- 20091019 snapshot
- dropped support for old amr libs (not supported upstream since July)
- don't disable yasm for generic builds
- fixed opencore amr support
- dropped workaround for non-standard openjpeg headers location
- dropped separate SIMDified libs for x86, runtime CPU detection should be enough
* Thu Oct 15 2009 kwizart <kwizart at gmail.com > - 0.5-3.svn20091007 * Thu Oct 15 2009 kwizart <kwizart at gmail.com > - 0.5-3.svn20091007
- Update to svn snapshot 20091007 - Update to svn snapshot 20091007
- Add BR dirac vdpau. - Add BR dirac vdpau.

Loading…
Cancel
Save