Latest upstream 20190806 and add ASN subpackage

This commit is contained in:
Carl George 2019-08-13 14:44:30 -05:00
parent 67d4a78976
commit e4bb07de6e
3 changed files with 29 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
GeoLite2-ASN_*.tar.gz
GeoLite2-City_*.tar.gz
GeoLite2-Country_*.tar.gz

View File

@ -3,20 +3,29 @@ 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: 20190618
Release: 2%{?dist}
Version: 20190806
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
Source0: https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_%{version}.tar.gz
Source1: https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_%{version}.tar.gz
Source2: https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_%{version}.tar.gz
BuildArch: noarch
%description %{common_description}
%package asn
Summary: Free IP geolocation ASN database
%description asn %{common_description}
%package city
Summary: Free IP geolocation city database
@ -32,15 +41,21 @@ Summary: Free IP geolocation country database
%prep
%setup -q -T -c -a 0 -a 1
%setup -q -T -c -a 0 -a 1 -a 2
%install
for db in GeoLite2-{City,Country}; do
for db in GeoLite2-{ASN,City,Country}; do
install -D -p -m 0644 ${db}_%{version}/$db.mmdb %{buildroot}%{_datadir}/GeoIP/$db.mmdb
done
%files asn
%license GeoLite2-ASN_%{version}/COPYRIGHT.txt GeoLite2-ASN_%{version}/LICENSE.txt
%dir %{_datadir}/GeoIP
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-ASN.mmdb
%files city
%license GeoLite2-City_%{version}/COPYRIGHT.txt GeoLite2-City_%{version}/LICENSE.txt
%dir %{_datadir}/GeoIP
@ -54,6 +69,10 @@ done
%changelog
* Tue Aug 13 2019 Carl George <carl@george.computer> - 20190806-1
- Latest upstream
- Add ASN subpackage
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20190618-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1,2 +1,3 @@
SHA512 (GeoLite2-City_20190618.tar.gz) = d590cfefcdeddee5f619df8d3443641b4216cc3b1cafe9d73775f73a96425d78da5a91e93bc14207e85c475964bc51f8ef524e55c24b454183a130180219fb7c
SHA512 (GeoLite2-Country_20190618.tar.gz) = e32ca2d325e2debc32809ccd2a82eca1bfe76b83bafdb942e75332908967fca1e9c8d937f25d751c9a35f9153b93024e00ebdf7ba75b902843d58b5429cc88e1
SHA512 (GeoLite2-ASN_20190806.tar.gz) = 067632b8d2dd657e03fae3becb98651738fca8566a9ec98afbfe4c7bba73b6756bd4a40b51a37d18e65d0b343f42fa91a4f45e73f290e017bb0533627d92fc1e
SHA512 (GeoLite2-City_20190806.tar.gz) = 38574097f7a9bd89e1051c981c1f256252d3cbcddfb13b7adacc55f9f4abe11a8270b2f9a578998329ac6df1d06298dd28587e38394fe5f1eedc5eb0749c3390
SHA512 (GeoLite2-Country_20190806.tar.gz) = e81e2769e7ec627e6ebe639317097914dc3b27c56b22a375fa11d4ac3fdb8e4baca3a058e147da40fef6f9b65c5627539098f3663d2c838a07a32e786af83650