]> git.pld-linux.org Git - packages/GeoIP-db-City.git/blobdiff - GeoIP-db-City.spec
- up to 2012.07.04
[packages/GeoIP-db-City.git] / GeoIP-db-City.spec
index 7eae25f5cdadd759026fa9f469e1fcca513b29c4..6f2a10df3c633a566bae14a51cb3fdbb566b3e55 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.09.02
+Version:       2012.07.04
 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: 8cc8b3af84316b01cdc91a2b5c92058c
+# Source0-md5: c7723d644e545936ef5ef80fb4779901
 Source1:       http://www.maxmind.com/download/geoip/database/LICENSE.txt
 # Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
 URL:           http://www.maxmind.com/app/geolitecity
@@ -31,16 +31,21 @@ Informacja licencyjna: ten produkt zawiera dane GeoLite stworzone
 przez MaxWind, dostÄ™pne z <http://www.maxwind.com/>.
 
 %prep
-%setup -q -c -T
-cp -a %{SOURCE0} .
-cp -a %{SOURCE1} .
+%setup -qcT
+cp -p %{SOURCE0} .
+cp -p %{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
-cp -a GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
+cp -p GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
 ln -s GeoLiteCity.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP/GeoIPCity.dat
 
 %clean
@@ -49,5 +54,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc *.txt
-%dir %{_datadir}/GeoIP
 %{_datadir}/GeoIP/*.dat
This page took 0.189426 seconds and 4 git commands to generate.