Author: kwizart
Update of /cvs/free/rpms/ffmpeg/devel
In directory se02.es.rpmfusion.net:/tmp/cvs-serv8306
Modified Files:
ffmpeg.spec
Added Files:
ffmpeg-snapshot.sh
Log Message:
Re-use ffmpeg-snapshot.sh
Index: ffmpeg-snapshot.sh
===================================================================
RCS file: ffmpeg-snapshot.sh
diff -N ffmpeg-snapshot.sh
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ ffmpeg-snapshot.sh 15 Oct 2009 22:25:17 -0000 1.4
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+ set +e
+ [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+svn=$(date +%Y%m%d)
+
+cd "$tmp"
+svn checkout -r {$svn} svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg-$svn
+cd ffmpeg-$svn
+./version.sh . version.h
+find . -type d -name .svn -print0 | xargs -0r rm -rf
+sed -i -e '/^\.PHONY: version\.h$/d' Makefile
+cd ..
+tar jcf "$pwd"/ffmpeg-$svn.tar.bz2 ffmpeg-$svn
+cd - >/dev/null
Index: ffmpeg.spec
===================================================================
RCS file: /cvs/free/rpms/ffmpeg/devel/ffmpeg.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ffmpeg.spec 15 Oct 2009 22:23:25 -0000 1.19
+++ ffmpeg.spec 15 Oct 2009 22:25:17 -0000 1.20
@@ -11,6 +11,7 @@
Group: Applications/Multimedia
URL:
http://ffmpeg.org/
Source0:
http://rpms.kwizart.net/fedora/SOURCES/%{name}-%{svn}.tar.bz2
+Source1: ffmpeg-snapshot.sh
# get rid of textrels on x86_64 in yasm code
Patch0: %{name}-textrel.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)