From 496068fe3f22a55327b3016ab7adca8428a307a8 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 17 2020 22:14:51 +0000 Subject: Source-git repo for imports/c8s/geolite2-20180605-1.el8 --- diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..27227f9 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,11 @@ +jobs: +- job: copr_build + metadata: + targets: &id001 [centos-stream-x86_64] + trigger: pull_request +- job: tests + metadata: + targets: *id001 + trigger: pull_request +specfile_path: SPECS/geolite2.spec +upstream_ref: c8s-source-git diff --git a/GeoLite2-City_20180605/COPYRIGHT.txt b/GeoLite2-City_20180605/COPYRIGHT.txt new file mode 100644 index 0000000..4683417 --- /dev/null +++ b/GeoLite2-City_20180605/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2018 MaxMind, Inc. diff --git a/GeoLite2-City_20180605/GeoLite2-City.mmdb b/GeoLite2-City_20180605/GeoLite2-City.mmdb new file mode 100644 index 0000000..1408dca Binary files /dev/null and b/GeoLite2-City_20180605/GeoLite2-City.mmdb differ diff --git a/GeoLite2-City_20180605/LICENSE.txt b/GeoLite2-City_20180605/LICENSE.txt new file mode 100644 index 0000000..8216b8f --- /dev/null +++ b/GeoLite2-City_20180605/LICENSE.txt @@ -0,0 +1,3 @@ +This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/. + +This database incorporates GeoNames [http://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 3.0 License. To view a copy of this license, visit http://www.creativecommons.org/licenses/by/3.0/us/. diff --git a/GeoLite2-City_20180605/README.txt b/GeoLite2-City_20180605/README.txt new file mode 100644 index 0000000..16e29ad --- /dev/null +++ b/GeoLite2-City_20180605/README.txt @@ -0,0 +1 @@ +Latitude and longitude are not precise and should not be used to identify a particular street address or household. diff --git a/GeoLite2-Country_20180605/COPYRIGHT.txt b/GeoLite2-Country_20180605/COPYRIGHT.txt new file mode 100644 index 0000000..4683417 --- /dev/null +++ b/GeoLite2-Country_20180605/COPYRIGHT.txt @@ -0,0 +1 @@ +Database and Contents Copyright (c) 2018 MaxMind, Inc. diff --git a/GeoLite2-Country_20180605/GeoLite2-Country.mmdb b/GeoLite2-Country_20180605/GeoLite2-Country.mmdb new file mode 100644 index 0000000..89505bb Binary files /dev/null and b/GeoLite2-Country_20180605/GeoLite2-Country.mmdb differ diff --git a/GeoLite2-Country_20180605/LICENSE.txt b/GeoLite2-Country_20180605/LICENSE.txt new file mode 100644 index 0000000..8216b8f --- /dev/null +++ b/GeoLite2-Country_20180605/LICENSE.txt @@ -0,0 +1,3 @@ +This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/. + +This database incorporates GeoNames [http://www.geonames.org] geographical data, which is made available under the Creative Commons Attribution 3.0 License. To view a copy of this license, visit http://www.creativecommons.org/licenses/by/3.0/us/. diff --git a/SPECS/GeoLite2-City_20180605.tar.gz b/SPECS/GeoLite2-City_20180605.tar.gz new file mode 100644 index 0000000..05be638 Binary files /dev/null and b/SPECS/GeoLite2-City_20180605.tar.gz differ diff --git a/SPECS/GeoLite2-Country_20180605.tar.gz b/SPECS/GeoLite2-Country_20180605.tar.gz new file mode 100644 index 0000000..45fbb78 Binary files /dev/null and b/SPECS/GeoLite2-Country_20180605.tar.gz differ diff --git a/SPECS/geolite2.spec b/SPECS/geolite2.spec new file mode 100644 index 0000000..b241881 --- /dev/null +++ b/SPECS/geolite2.spec @@ -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 - 20180605-1 +- Latest upstream + +* Tue Apr 24 2018 Carl George - 20180403-1 +- Initial package