Geo-db-LiteCountry/Geo-db-LiteCountry.spec

70 lines
2.5 KiB
RPMSpec
Raw Normal View History

Name: Geo-db-LiteCountry
Version: 20181126
Release: 1mamba
Summary: GeoLite LiteCountry - Country database for GeoIP
Group: Applications/Databases
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.maxmind.com/app/geolitecountry
Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP-%{version}.dat.gz
Source1: http://www.maxmind.com/download/geoip/database/LICENSE.txt
Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIPv6-%{version}.dat.gz
Source3: Geo-db-LiteCountry-autoupdate
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} .
cp %{SOURCE2} .
gunzip GeoIP-%{version}.dat.gz
gunzip GeoIPv6-%{version}.dat.gz
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d %{buildroot}%{_datadir}/GeoIP
install GeoIP-%{version}.dat %{buildroot}%{_datadir}/GeoIP/GeoIP.dat
install GeoIPv6-%{version}.dat %{buildroot}%{_datadir}/GeoIP/GeoIPv6.dat
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(644,root,root,755)
%dir %{_datadir}/GeoIP
%{_datadir}/GeoIP/*.dat
%doc *.txt
%changelog
* Mon Nov 26 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 20181126-1mamba
- update to 20181126
* 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