1 |
wally |
1314858 |
%global _docdir_fmt %{name} |
2 |
|
|
%global _description \ |
3 |
|
|
GeoLite2 databases are free IP geolocation databases comparable to, but less\ |
4 |
wally |
1314942 |
accurate than, MaxMind's GeoIP2 databases.\ |
5 |
|
|
\ |
6 |
|
|
This product includes GeoLite2 data created by MaxMind,\ |
7 |
|
|
available from http://www.maxmind.com. |
8 |
wally |
1314858 |
|
9 |
|
|
Name: geolite2 |
10 |
wally |
1394682 |
Version: 20190416 |
11 |
|
|
Release: %mkrel 1 |
12 |
wally |
1314858 |
Summary: Free IP geolocation databases |
13 |
|
|
License: CC-BY-SA |
14 |
wally |
1314942 |
Group: Sciences/Geosciences |
15 |
wally |
1314858 |
URL: https://dev.maxmind.com/geoip/geoip2/geolite2/ |
16 |
|
|
Source0: https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_%{version}.tar.gz |
17 |
|
|
Source1: https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_%{version}.tar.gz |
18 |
wally |
1394682 |
Source2: https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_%{version}.tar.gz |
19 |
wally |
1314858 |
BuildArch: noarch |
20 |
|
|
|
21 |
|
|
|
22 |
|
|
%description %{_description} |
23 |
|
|
|
24 |
|
|
|
25 |
|
|
%package city |
26 |
|
|
Summary: Free IP geolocation city database |
27 |
wally |
1314942 |
Group: Sciences/Geosciences |
28 |
wally |
1315010 |
Recommends: geoipupdate |
29 |
wally |
1314858 |
|
30 |
|
|
%description city %{_description} |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
%package country |
34 |
|
|
Summary: Free IP geolocation country database |
35 |
wally |
1314942 |
Group: Sciences/Geosciences |
36 |
wally |
1315010 |
Recommends: geoipupdate |
37 |
wally |
1314858 |
|
38 |
|
|
%description country %{_description} |
39 |
|
|
|
40 |
|
|
|
41 |
wally |
1394682 |
%package asn |
42 |
|
|
Summary: Free IP autonomous system number database |
43 |
|
|
Group: Sciences/Geosciences |
44 |
|
|
Recommends: geoipupdate |
45 |
|
|
|
46 |
|
|
%description asn %{_description} |
47 |
|
|
|
48 |
|
|
|
49 |
wally |
1314858 |
%prep |
50 |
wally |
1394682 |
%setup -q -T -c -a 0 -a 1 -a 2 |
51 |
wally |
1314858 |
|
52 |
|
|
|
53 |
|
|
%install |
54 |
wally |
1394682 |
for db in GeoLite2-City GeoLite2-Country GeoLite2-ASN; do |
55 |
wally |
1314858 |
install -D -p -m 0644 ${db}_%{version}/$db.mmdb %{buildroot}%{_datadir}/GeoIP/$db.mmdb |
56 |
|
|
done |
57 |
|
|
|
58 |
|
|
|
59 |
|
|
%files city |
60 |
|
|
%license GeoLite2-City_%{version}/COPYRIGHT.txt GeoLite2-City_%{version}/LICENSE.txt |
61 |
|
|
%dir %{_datadir}/GeoIP |
62 |
|
|
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-City.mmdb |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
%files country |
66 |
|
|
%license GeoLite2-Country_%{version}/COPYRIGHT.txt GeoLite2-Country_%{version}/LICENSE.txt |
67 |
|
|
%dir %{_datadir}/GeoIP |
68 |
|
|
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-Country.mmdb |
69 |
wally |
1394682 |
|
70 |
|
|
|
71 |
|
|
%files asn |
72 |
|
|
%license GeoLite2-ASN_%{version}/COPYRIGHT.txt GeoLite2-ASN_%{version}/LICENSE.txt |
73 |
|
|
%dir %{_datadir}/GeoIP |
74 |
|
|
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-ASN.mmdb |
75 |
|
|
|