From e6f3e4f6f9ac484f39e3a9486aa61d6c41cfe7e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pawe=C5=82=20Go=C5=82aszewski?= Date: Mon, 6 Aug 2007 14:36:07 +0000 Subject: [PATCH] - IPv4-to-AS database Changed files: GeoIP-db-IPASNum.spec -> 1.1 --- GeoIP-db-IPASNum.spec | 49 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 GeoIP-db-IPASNum.spec diff --git a/GeoIP-db-IPASNum.spec b/GeoIP-db-IPASNum.spec new file mode 100644 index 0000000..49de8d7 --- /dev/null +++ b/GeoIP-db-IPASNum.spec @@ -0,0 +1,49 @@ +Summary: GeoLite IPASNum - IP to AS number translation database for GeoIP +Name: GeoIP-db-IPASNum +# Updated every month: +Version: 2007.05.15 +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: ce03b15a08e26c88ec2fd8f5c08f8e4b +Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt +# Source1-md5: 8c0bc6e8ebe6ec3bc1580021edb4bba1 +URL: http://www.maxmind.com/app/asnum +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. + +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/. + +%prep +%setup -q -c -T +cp %{SOURCE0} . +cp %{SOURCE1} . + +gunzip GeoIPASNum.dat.gz + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP + +install GeoIPASNum.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc *.txt +%{_datadir}/GeoIP/*.dat -- 2.44.0