Auto sync2gitlab import of geolite2-20180605-1.el8.src.rpm

This commit is contained in:
James Antill 2022-05-26 07:37:40 -04:00
parent 95a895cf6a
commit 314578aeca
4 changed files with 64 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/GeoLite2-City_20180605.tar.gz
/GeoLite2-Country_20180605.tar.gz

1
EMPTY
View File

@ -1 +0,0 @@

60
geolite2.spec Normal file
View File

@ -0,0 +1,60 @@
%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: 20180605
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
* Mon Jun 11 2018 Carl George <carl@george.computer> - 20180605-1
- Latest upstream
* 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_20180605.tar.gz) = e8d7a6d7a734ed49dbf09dcec7b8d4733ce4b3cf237f10f0d3e3a9d41cd3abd9f900f7eb909e56df4e92083c2e6da7032b2f3e4c4d197f63ea645314661dfca7
SHA512 (GeoLite2-Country_20180605.tar.gz) = f01486d8eb56274facdde681c0a18b4abc043e928e45c39a524456906cd7b575c18a157b59a62f86e71568cd5a4eca791f7c1662a54e135bf855e3af7e943dd7