]> git.pld-linux.org Git - packages/GeoIP-db-City.git/blobdiff - GeoIP-db-City.spec
- 2010.12.05
[packages/GeoIP-db-City.git] / GeoIP-db-City.spec
index 2fb6577d2d6c869a2d8f1f30b6882742d862e1b1..3c673a06d0223a27da1602d509795111ba6b8d68 100644 (file)
@@ -2,12 +2,12 @@ Summary:      GeoLite City - City database for GeoIP
 Summary(pl.UTF-8):     GeoLite City - baza danych miast dla GeoIP
 Name:          GeoIP-db-City
 # Updated every month:
-Version:       2010.07.02
+Version:       2010.12.05
 Release:       1
 License:       OPEN DATA LICENSE (see LICENSE.txt)
 Group:         Applications/Databases
 Source0:       http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
-# Source0-md5: 5f452aa27f5afd3d31a3d8d56b21e796
+# Source0-md5: 05a5a51695b815d5effe79a7be5cc76f
 Source1:       http://www.maxmind.com/download/geoip/database/LICENSE.txt
 # Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
 URL:           http://www.maxmind.com/app/geolitecity
@@ -37,6 +37,11 @@ cp -a %{SOURCE1} .
 
 gunzip GeoLiteCity.dat.gz
 
+ver=$(stat -c '%y' GeoLiteCity.dat | awk '{print $1}' | tr - .)
+if [ "$ver" != %{version} ]; then
+       exit 1
+fi
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
This page took 0.147083 seconds and 4 git commands to generate.