From 6ff51013a2269ba21f6b23e9182c37a18551ed15 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Sun, 27 Feb 2011 23:38:24 +0000 Subject: [PATCH] - 20110227 snapshot - build PIC objects on PPC (bug #1457) - provide custom version string --- .gitignore | 2 +- ffmpeg-snapshot.sh | 14 ++++---------- ffmpeg.spec | 22 +++++++++++----------- sources | 2 +- 4 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index 625bbdd..a26a4f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -ffmpeg-20110110.tar.bz2 +ffmpeg-20110227.tar.bz2 diff --git a/ffmpeg-snapshot.sh b/ffmpeg-snapshot.sh index 9085f1d..4f81b74 100644 --- a/ffmpeg-snapshot.sh +++ b/ffmpeg-snapshot.sh @@ -13,15 +13,9 @@ cleanup() { unset CDPATH pwd=$(pwd) date=$(date +%Y%m%d) -svn={$date} -svn=HEAD -cd "$tmp" -svn checkout -r $svn svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-$date -cd ffmpeg-$date -pushd libswscale -svn update -r $svn libswscale +pushd "$tmp" +git clone git://git.videolan.org/ffmpeg.git +cd ffmpeg +git archive --prefix="ffmpeg-${date}/" --format=tar master | bzip2 > "$pwd"/ffmpeg-${date}.tar.bz2 popd -cd .. -tar jcf "$pwd"/ffmpeg-$date.tar.bz2 ffmpeg-$date -cd - >/dev/null diff --git a/ffmpeg.spec b/ffmpeg.spec index 3ff9a63..f96a390 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -1,11 +1,11 @@ # TODO: add make test to %%check section -%global svn 20110110 +%global date 20110227 Summary: Digital VCR and streaming server Name: ffmpeg Version: 0.6.1 -Release: 1.%{svn}svn%{?dist} +Release: 1.%{date}git%{?dist} %if 0%{?_with_amr:1} License: GPLv3+ %else @@ -13,7 +13,7 @@ License: GPLv2+ %endif Group: Applications/Multimedia URL: http://ffmpeg.org/ -Source0: ffmpeg-%{svn}.tar.bz2 +Source0: ffmpeg-%{date}.tar.bz2 Source1: ffmpeg-snapshot.sh BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -83,7 +83,6 @@ This package contains development files for %{name} --mandir=%{_mandir} \\\ --arch=%{_target_cpu} \\\ --extra-cflags="$RPM_OPT_FLAGS" \\\ - --extra-version=rpmfusion \\\ %{?_with_amr:--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3} \\\ --enable-bzlib \\\ --enable-libdc1394 \\\ @@ -112,13 +111,10 @@ This package contains development files for %{name} %prep -%setup -q -n ffmpeg-%{svn} +%setup -q -n ffmpeg-%{date} +echo "git-snapshot-%{date}-RPMFusion" > VERSION %build -%ifarch ppc ppc64 -# compile with -mlongcall on ppc/ppc64 (rf804) -export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -mlongcall" -%endif mkdir generic pushd generic %{ff_configure}\ @@ -137,10 +133,12 @@ pushd generic %ifarch ppc --cpu=g3 \ --enable-runtime-cpudetect \ + --enable-pic \ %endif %ifarch ppc64 --cpu=g5 \ --enable-runtime-cpudetect \ + --enable-pic \ %endif %ifarch sparc sparc64 --disable-vis \ @@ -230,11 +228,13 @@ rm -rf $RPM_BUILD_ROOT %changelog -* Mon Jan 10 2011 Dominik Mierzejewski - 0.6.1-1.20110110svn -- 20110110 snapshot +* Sun Feb 27 2011 Dominik Mierzejewski - 0.6.1-1.20110227git +- 20110227 snapshot - bump version to post-0.6.1 to allow stable 0.6.1 update in older branches - drop --with amr->opencore_amr indirection - add qt-faststart tool (bug #1259) +- build PIC objects on PPC (bug #1457) +- provide custom version string * Fri Jan 21 2011 Hans de Goede - 0.6-5.20100704svn - Rebuild for new openjpeg diff --git a/sources b/sources index 8b3dcf3..acc6a40 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -fccd69057e331c2541bb024b1e92e864 ffmpeg-20110110.tar.bz2 +97a4485c7373faaa7df70f218867d20d ffmpeg-20110227.tar.bz2