packages: grfcodec/grfcodec.spec - better vesion, it is 0.9.10

sparky sparky at pld-linux.org
Sat May 1 19:56:24 CEST 2010


Author: sparky                       Date: Sat May  1 17:56:24 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- better vesion, it is 0.9.10

---- Files affected:
packages/grfcodec:
   grfcodec.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: packages/grfcodec/grfcodec.spec
diff -u packages/grfcodec/grfcodec.spec:1.4 packages/grfcodec/grfcodec.spec:1.5
--- packages/grfcodec/grfcodec.spec:1.4	Sat May  1 19:40:59 2010
+++ packages/grfcodec/grfcodec.spec	Sat May  1 19:56:18 2010
@@ -1,12 +1,13 @@
 # $Revision$, $Date$
+%define		rev	2306
 Summary:	Programs to modify Transport Tycoon Deluxe's GRF files
 Summary(pl.UTF-8):	Narzędzia do modyfikacji plików GRX gry Transport Tycoon Deluxe
 Name:		grfcodec
-Version:	r2306
-Release:	1
+Version:	0.9.10
+Release:	0.%{rev}.1
 License:	GPL v2+
 Group:		Applications
-Source0:	http://binaries.openttd.org/extra/grfcodec/%{version}/%{name}-%{version}-source.tar.bz2
+Source0:	http://binaries.openttd.org/extra/grfcodec/%{version}/%{name}-r%{rev}-source.tar.bz2
 # Source0-md5:	16de60c05fba2aa4a5c2b22d4e0eff42
 Patch0:		%{name}-cflags.patch
 Patch1:		%{name}-destdir.patch
@@ -23,13 +24,19 @@
 Zestaw narzędzi do modyfikacji plików GRX gry Transport Tycoon Deluxe.
 
 %prep
-%setup -q
+%setup -q -n %{name}-r%{rev}
 %patch0 -p1
 %patch1 -p1
 
+VER=$(awk '/VER /{print $3}' version.def)
+if [ "$VER" != "%{version}" ]; then
+	: Current version is $VER, not %{version}
+	exit 1
+fi
+
 %build
 %{__make} \
-	SVNVERSION="echo %{version} | tr -d r" \
+	SVNVERSION="echo %{rev}" \
 	CC="%{__cc}" \
 	CXX="%{__cxx}" \
 	CFLAGAPP="%{rpmcxxflags}" \
@@ -56,6 +63,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2010/05/01 17:56:18  sparky
+- better vesion, it is 0.9.10
+
 Revision 1.4  2010/05/01 17:40:59  sparky
 - correct svn version
 - BR: libstdc++-devel, perl-base
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/grfcodec/grfcodec.spec?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list