SPECS: GeoIP-db-Country.spec (NEW) - initial

blues blues at pld-linux.org
Mon Aug 6 16:01:19 CEST 2007


Author: blues                        Date: Mon Aug  6 14:01:19 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   GeoIP-db-Country.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/GeoIP-db-Country.spec
diff -u /dev/null SPECS/GeoIP-db-Country.spec:1.1
--- /dev/null	Mon Aug  6 16:01:19 2007
+++ SPECS/GeoIP-db-Country.spec	Mon Aug  6 16:01:14 2007
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+Summary:	GeoLite Country - Country database for GeoIP
+Name:		GeoIP-db-Country
+# Updated every month:
+Version:	2007.08.01
+Release:	1
+License:	OPEN DATA LICENSE (see LICENSE.txt)
+Group:		Applications/Databases
+Source0:	http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz
+# Source0-md5:	ce03b15a08e26c88ec2fd8f5c08f8e4b
+Source1:	http://www.maxmind.com/download/geoip/database/LICENSE.txt
+# Source1-md5:	8c0bc6e8ebe6ec3bc1580021edb4bba1
+URL:		http://www.maxmind.com/app/geolitecountry
+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.
+
+GeoLite Country is similar to the GeoIP Country database, but is not as
+accurate. Should you require greater accuracy, GeoIP Country is a drop-in
+replacement for GeoLite Country.
+
+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 GeoIP.dat.gz
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/GeoIP
+
+install GeoIP.dat $RPM_BUILD_ROOT%{_datadir}/GeoIP
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt
+%{_datadir}/GeoIP/*.dat
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/08/06 14:01:14  blues
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list