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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1315010 - (hide annotations) (download)
Tue Oct 2 13:21:06 2018 UTC (6 years, 9 months ago) by wally
File size: 1688 byte(s)
- recommend geoipupdate for updates via crontab
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 1314943 Version: 20180925
11 wally 1315010 Release: %mkrel 2
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     BuildArch: noarch
19    
20    
21     %description %{_description}
22    
23    
24     %package city
25     Summary: Free IP geolocation city database
26 wally 1314942 Group: Sciences/Geosciences
27 wally 1315010 Recommends: geoipupdate
28 wally 1314858
29     %description city %{_description}
30    
31    
32     %package country
33     Summary: Free IP geolocation country database
34 wally 1314942 Group: Sciences/Geosciences
35 wally 1315010 Recommends: geoipupdate
36 wally 1314858
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

  ViewVC Help
Powered by ViewVC 1.1.30