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 1 |
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 |
|
28 |
%description city %{_description} |
29 |
|
30 |
|
31 |
%package country |
32 |
Summary: Free IP geolocation country database |
33 |
Group: Sciences/Geosciences |
34 |
|
35 |
%description country %{_description} |
36 |
|
37 |
|
38 |
%prep |
39 |
%setup -q -T -c -a 0 -a 1 |
40 |
|
41 |
|
42 |
%install |
43 |
for db in GeoLite2-City GeoLite2-Country; do |
44 |
install -D -p -m 0644 ${db}_%{version}/$db.mmdb %{buildroot}%{_datadir}/GeoIP/$db.mmdb |
45 |
done |
46 |
|
47 |
|
48 |
%files city |
49 |
%license GeoLite2-City_%{version}/COPYRIGHT.txt GeoLite2-City_%{version}/LICENSE.txt |
50 |
%dir %{_datadir}/GeoIP |
51 |
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-City.mmdb |
52 |
|
53 |
|
54 |
%files country |
55 |
%license GeoLite2-Country_%{version}/COPYRIGHT.txt GeoLite2-Country_%{version}/LICENSE.txt |
56 |
%dir %{_datadir}/GeoIP |
57 |
%verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-Country.mmdb |