]> git.pld-linux.org Git - packages/GeoIP-db-Country.git/commitdiff
- up to 2010.12.04 auto/ac/GeoIP-db-Country-2010_12_04-1 auto/th/GeoIP-db-Country-2010_12_04-1
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 5 Dec 2010 13:09:38 +0000 (13:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    GeoIP-db-Country.spec -> 1.17

GeoIP-db-Country.spec

index 6fecbf0682a136e7acceb7e9f90bcff35775c215..e4b6e9f8af2064881b1b6001484f373aa277e402 100644 (file)
@@ -2,12 +2,12 @@ Summary:      GeoLite Country - Country database for GeoIP
 Summary(pl.UTF-8):     GeoLite Country - baza danych krajów dla GeoIP
 Name:          GeoIP-db-Country
 # Updated every month:
-Version:       2010.11.02
+Version:       2010.12.04
 Release:       1
 License:       OPEN DATA LICENSE (see LICENSE.txt)
 Group:         Applications/Databases
 Source0:       http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
-# Source0-md5: b28f1b22ee576da7ec7333f5b8cf7cd5
+# Source0-md5: 42a6b039337ed271ee0c8f40497ceba9
 Source1:       http://www.maxmind.com/download/geoip/database/LICENSE.txt
 # Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
 URL:           http://www.maxmind.com/app/geolitecountry
@@ -44,17 +44,21 @@ Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
 przez MaxWind, dostępne z <http://www.maxwind.com/>.
 
 %prep
-%setup -q -c -T
-cp %{SOURCE0} .
-cp %{SOURCE1} .
+%setup -qcT
+cp -a %{SOURCE0} .
+cp -a %{SOURCE1} .
 
 gunzip GeoIP.dat.gz
 
+ver=$(stat -c '%y' GeoIP.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
-
-install GeoIP.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
+cp -a GeoIP.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.071766 seconds and 4 git commands to generate.