Initial import (#1571404)

This commit is contained in:
Carl George 2018-04-24 21:33:29 -05:00
parent b3dee141cf
commit 88d630e91e
4 changed files with 61 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/GeoLite2-City_20180403.tar.gz
/GeoLite2-Country_20180403.tar.gz

View File

@ -1,3 +0,0 @@
# geolite2
The geolite2 package

57
geolite2.spec Normal file
View File

@ -0,0 +1,57 @@
%global _docdir_fmt %{name}
%global _description \
GeoLite2 databases are free IP geolocation databases comparable to, but less\
accurate than, MaxMind's GeoIP2 databases. This product includes GeoLite2 data\
created by MaxMind, available from http://www.maxmind.com.
Name: geolite2
Version: 20180403
Release: 1%{?dist}
Summary: Free IP geolocation databases
License: CC-BY-SA
URL: https://dev.maxmind.com/geoip/geoip2/geolite2/
Source0: https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_%{version}.tar.gz
Source1: https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_%{version}.tar.gz
BuildArch: noarch
%description %{_description}
%package city
Summary: Free IP geolocation city database
%description city %{_description}
%package country
Summary: Free IP geolocation country database
%description country %{_description}
%prep
%setup -q -T -c -a 0 -a 1
%install
for db in GeoLite2-City GeoLite2-Country; do
install -D -p -m 0644 ${db}_%{version}/$db.mmdb %{buildroot}%{_datadir}/GeoIP/$db.mmdb
done
%files city
%license GeoLite2-City_%{version}/COPYRIGHT.txt GeoLite2-City_%{version}/LICENSE.txt
%dir %{_datadir}/GeoIP
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-City.mmdb
%files country
%license GeoLite2-Country_%{version}/COPYRIGHT.txt GeoLite2-Country_%{version}/LICENSE.txt
%dir %{_datadir}/GeoIP
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-Country.mmdb
%changelog
* Tue Apr 24 2018 Carl George <carl@george.computer> - 20180403-1
- Initial package

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (GeoLite2-City_20180403.tar.gz) = d7b294337912d1e441a2c11cbc838a20b4dcc5c3c72e5bb723b4e932987e211a510825607e9f5a53caec1f4b9c1627db2eba720f4e194f654b294741d3c3eccb
SHA512 (GeoLite2-Country_20180403.tar.gz) = 3566b98c243f9e8bf38c1c813ba41aa76b453c81694fd4fe767c961dddc201becda94f3321c8b2ddc80ecff499d9f87269cf38b359f6a09ebdce26238fe20b7f