/[packages]/cauldron/geolite2/current/SPECS/geolite2.spec
ViewVC logotype

Contents of /cauldron/geolite2/current/SPECS/geolite2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1435456 - (show annotations) (download)
Fri Aug 30 10:14:25 2019 UTC (5 years, 10 months ago) by wally
File size: 2119 byte(s)
- new version 20190827
1 %global _description \
2 GeoLite2 databases are free IP geolocation databases comparable to, but less\
3 accurate than, MaxMind's GeoIP2 databases.\
4 \
5 This product includes GeoLite2 data created by MaxMind,\
6 available from http://www.maxmind.com.
7
8 Name: geolite2
9 Version: 20190827
10 Release: %mkrel 1
11 Summary: Free IP geolocation databases
12 License: CC-BY-SA
13 Group: Sciences/Geosciences
14 URL: https://dev.maxmind.com/geoip/geoip2/geolite2/
15 Source0: https://geolite.maxmind.com/download/geoip/database/GeoLite2-City_%{version}.tar.gz
16 Source1: https://geolite.maxmind.com/download/geoip/database/GeoLite2-Country_%{version}.tar.gz
17 Source2: https://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN_%{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 %package asn
41 Summary: Free IP autonomous system number database
42 Group: Sciences/Geosciences
43 Recommends: geoipupdate
44
45 %description asn %{_description}
46
47
48 %prep
49 %setup -q -T -c -a 0 -a 1 -a 2
50
51
52 %install
53 for db in GeoLite2-City GeoLite2-Country GeoLite2-ASN; do
54 install -D -p -m 0644 ${db}_%{version}/$db.mmdb %{buildroot}%{_datadir}/GeoIP/$db.mmdb
55 done
56
57
58 %files city
59 %license GeoLite2-City_%{version}/COPYRIGHT.txt GeoLite2-City_%{version}/LICENSE.txt
60 %dir %{_datadir}/GeoIP
61 %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-City.mmdb
62
63
64 %files country
65 %license GeoLite2-Country_%{version}/COPYRIGHT.txt GeoLite2-Country_%{version}/LICENSE.txt
66 %dir %{_datadir}/GeoIP
67 %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-Country.mmdb
68
69
70 %files asn
71 %license GeoLite2-ASN_%{version}/COPYRIGHT.txt GeoLite2-ASN_%{version}/LICENSE.txt
72 %dir %{_datadir}/GeoIP
73 %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLite2-ASN.mmdb
74

  ViewVC Help
Powered by ViewVC 1.1.30