1 |
%global _docdir_fmt %{name} |
2 |
%global _description \ |
3 |
GeoLite2 databases are free IP geolocation databases comparable to, but less\ |
4 |
accurate than, MaxMind's GeoIP2 databases.\ |
5 |
\ |
6 |
This product includes GeoLite2 data created by MaxMind,\ |
7 |
available from http://www.maxmind.com. |
8 |
|
9 |
Name: geolite2 |
10 |
Version: 20180925 |
11 |
Release: %mkrel 2 |
12 |
Summary: Free IP geolocation databases |
13 |
License: CC-BY-SA |
14 |
Group: Sciences/Geosciences |
15 |
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 |
BuildArch: noarch |
19 |
|
20 |
|
21 |
%description %{_description} |
22 |
|
23 |
|
24 |
%package city |
25 |
Summary: Free IP geolocation city database |
26 |
Group: Sciences/Geosciences |
27 |
Recommends: geoipupdate |
28 |
|
29 |
%description city %{_description} |
30 |
|
31 |
|
32 |
%package country |
33 |
Summary: Free IP geolocation country database |
34 |
Group: Sciences/Geosciences |
35 |
Recommends: geoipupdate |
36 |
|
37 |
%description country %{_description} |
38 |
|
39 |
|
40 |
%prep |
41 |
%setup -q -T -c -a 0 -a 1 |
42 |
|
43 |
|
44 |
%install |
45 |
for db in GeoLite2-City GeoLite2-Country; do |
46 |
install -D -p -m 0644 ${db}_%{version}/$db.mmdb %{buildroot}%{_datadir}/GeoIP/$db.mmdb |
47 |
done |
48 |
|
49 |
|
50 |
%files city |
51 |
%license GeoLite2-City_%{version}/COPYRIGHT.txt GeoLite2-City_%{version}/LICENSE.txt |
52 |
%dir %{_datadir}/GeoIP |
53 |
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-City.mmdb |
54 |
|
55 |
|
56 |
%files country |
57 |
%license GeoLite2-Country_%{version}/COPYRIGHT.txt GeoLite2-Country_%{version}/LICENSE.txt |
58 |
%dir %{_datadir}/GeoIP |
59 |
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-Country.mmdb |