]> git.pld-linux.org Git - packages/GeoIP-db-City.git/blobdiff - GeoIP-db-City.spec
update to 2012.09.05
[packages/GeoIP-db-City.git] / GeoIP-db-City.spec
index 58bdd1e328b6242ca73f008362be85824c04df2f..00827a71e1883a648169b31445018ea5884e0775 100644 (file)
@@ -1,46 +1,52 @@
 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:       2007.08.01
+Version:       2012.09.05
 Release:       1
 License:       OPEN DATA LICENSE (see LICENSE.txt)
 Group:         Applications/Databases
-Source0:       http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
-# Source0-md5: 04b160944385f4d5989bedef89124a9d
+Source0:       http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
+# Source0-md5: 6ed8c46880fc5579392375fbc5efa375
 Source1:       http://www.maxmind.com/download/geoip/database/LICENSE.txt
-# Source1-md5: 8c0bc6e8ebe6ec3bc1580021edb4bba1
+# Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
 URL:           http://www.maxmind.com/app/geolitecity
 BuildArch:     noarch
-Requires:      GeoIP-libs
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-GeoIP is a C library that enables the user to find the country that
-any IP address or hostname originates from. It uses a file based
-database that is accurate as of March 2003. This database simply
-contains IP blocks as keys, and countries as values. This database
-should be more complete and accurate than using reverse DNS lookups.
+Determine country, state/region, city, US postal code, US area code,
+metro code, latitude, and longitude information for IP addresses
+worldwide.
 
-GeoLite City is similar to the GeoIP City database, but is not as accurate.
-Should you require greater accuracy, GeoIP City is a drop-in replacement
-for GeoLite City.
+License disclaimer: this product includes GeoLite data created by
+MaxMind, available from <http://www.maxmind.com/>.
 
-License disclaimer:
-This product includes GeoLite data created by MaxMind, available from
-http://www.maxmind.com/.
+%description -l pl.UTF-8
+Znajdź państwo, stan/region, miasto, kod pocztowy, kod regionu, kod
+miejski, szerokość i wysokość geograficzną dla adresów IP z całego
+świata.
+
+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 -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
-
-install 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
 rm -rf $RPM_BUILD_ROOT
This page took 0.098161 seconds and 4 git commands to generate.