/[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 1314943 - (show annotations) (download)
Tue Oct 2 12:32:07 2018 UTC (6 years, 9 months ago) by wally
File size: 1632 byte(s)
- new version 20180925
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

  ViewVC Help
Powered by ViewVC 1.1.30