packages (distfiles-mtime): test/test.spec, test/secret.gz (REMOVED) - dist...

glen glen at pld-linux.org
Tue Nov 15 22:01:50 CET 2011


Author: glen                         Date: Tue Nov 15 21:01:49 2011 GMT
Module: packages                      Tag: distfiles-mtime
---- Log message:
- distfiles mtime check

---- Files affected:
packages/test:
   test.spec (1.30.4.16 -> 1.30.4.16.2.1) , secret.gz (1.1 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/test/test.spec
diff -u packages/test/test.spec:1.30.4.16 packages/test/test.spec:1.30.4.16.2.1
--- packages/test/test.spec:1.30.4.16	Sat Jun 18 18:07:01 2011
+++ packages/test/test.spec	Tue Nov 15 22:01:44 2011
@@ -1,33 +1,35 @@
 # $Revision$, $Date$
-%define		prefix	http://carme.pld-linux.org/~glen/horde/
 Summary:	Distfiles Fetcher
-Name:		distfiles
-Version:	1.9
+Name:		distfiles-mtime
+Version:	2011.11.02
 Release:	1
 License:	GPL
 Group:		Networking/Hacking
-Source0:	linux-2.6.38.tar.bz2
-# Source0-md5:	7d471477bfa67546f902da62227fa976
-Patch1:		bar_1.11.1.tar.gz
-# Patch1-md5:	4836a9767cbfb9c0b16020d23b4b5e91
+Source0:	http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
+# Source0-md5:	2f6e084013b442bb94a7ef0232818d3f
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Alien allows you to convert Debian, Stampede and Slackware Packages
-into PLD packages, which can be installed with rpm. It can also
-convert into Slackware, Debian, and Stampede packages. This is a tool
-only suitable for binary packages.
+this test should ensure distfiles stores files with original timestamp
 
 %prep
-exit 1
+%setup -qcT
+cp -p %{SOURCE0} .
+ls -l *dat*
+gunzip GeoIP.dat.gz
+ls -l *dat*
+
+ver=$(stat -c '%y' GeoIP.dat | awk '{print $1}' | tr - .)
+if [ "$ver" != %{version} ]; then
+	exit 1
+fi
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README TODO
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -35,6 +37,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30.4.16.2.1  2011/11/15 21:01:44  glen
+- distfiles mtime check
+
 Revision 1.30.4.16  2011/06/18 16:07:01  draenog
 - test Patch-md5 with new sources
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/test/test.spec?r1=1.30.4.16&r2=1.30.4.16.2.1&f=u



More information about the pld-cvs-commit mailing list