]> git.pld-linux.org Git - packages/GeoIP-db-IPASNum.git/blobdiff - GeoIP-db-IPASNum.spec
- up to 2011.02.02
[packages/GeoIP-db-IPASNum.git] / GeoIP-db-IPASNum.spec
index 85424b2a54df316591608b5ae479688d4a236a63..99d4f0de66c9dc8475dd8f260a9cafb001f04b23 100644 (file)
@@ -1,44 +1,50 @@
 Summary:       GeoLite IPASNum - IP to AS number translation database for GeoIP
+Summary(pl.UTF-8):     GeoLite IPASNum - baza danych tłumaczeń adresów IP na numery AS dla GeoIP
 Name:          GeoIP-db-IPASNum
 # Updated every month:
-Version:       2007.05.15
+Version:       2011.02.02
 Release:       1
 License:       OPEN DATA LICENSE (see LICENSE.txt)
 Group:         Applications/Databases
 Source0:       http://www.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
-# Source0-md5: 27d7e96a9bf3f04acd71e674119f3601
+# Source0-md5: 3b9e3af4bc050efa48e44d5f756fc9a6
 Source1:       http://www.maxmind.com/download/geoip/database/LICENSE.txt
-# Source1-md5: 8c0bc6e8ebe6ec3bc1580021edb4bba1
+# Source1-md5: a1381bd1aa0a0c91dc31b3f1e847cf4a
 URL:           http://www.maxmind.com/app/asnum
-BuildArch:     noarch
 Requires:      GeoIP-libs
+BuildArch:     noarch
 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.
+This package contains IPv4 to AS number translation database for
+GeoIP.
+
+License disclaimer: this product includes GeoLite data created by
+MaxMind, available from <http://www.maxmind.com/>.
 
-This package contains IPv4 to AS number translation database for GeoIP.
+%description -l pl.UTF-8
+Ten pakiet zawiera bazę danych tłumaczeń adresów IPv4 na numery AS
+dla GeoIP.
 
-License disclaimer:
-This product includes GeoLite data created by MaxMind, available from
-http://www.maxmind.com/.
+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 GeoIPASNum.dat.gz
 
+ver=$(stat -c '%y' GeoIPASNum.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 GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
+cp -a GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.084311 seconds and 4 git commands to generate.