62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
|
Name: Geo-db-LiteCountry
|
||
|
Version: 20080803
|
||
|
Release: 2mamba
|
||
|
Summary: GeoLite LiteCountry - Country database for GeoIP
|
||
|
Group: Applications/Databases
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
||
|
URL: http://www.maxmind.com/app/geolitecountry
|
||
|
Source0: http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz
|
||
|
Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt
|
||
|
License: OPEN DATA LICENSE
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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 slightly less accurate.
|
||
|
Should you require greater accuracy, GeoIP Country is a drop-in replacement for GeoLite Country.
|
||
|
We also offer a free geolocation database on a city level.
|
||
|
|
||
|
Under the license agreement, all advertising materials and documentation mentioning features
|
||
|
or use of this database must display the following acknowledgment:
|
||
|
"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
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
install -d %{buildroot}%{_datadir}/GeoIP
|
||
|
|
||
|
install GeoIP.dat %{buildroot}%{_datadir}/GeoIP
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%files
|
||
|
%defattr(644,root,root,755)
|
||
|
%dir %{_datadir}/GeoIP
|
||
|
%{_datadir}/GeoIP/*.dat
|
||
|
%doc *.txt
|
||
|
|
||
|
%changelog
|
||
|
* Thu Aug 22 2013 Automatic Build System <autodist@mambasoft.it> 20080803-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Thu Aug 21 2008 gil <puntogil@libero.it> 20080801CSV-1mamba
|
||
|
- package created by autospec
|