/[smecontribs]/rpms/GeoIP-GeoLite-data/contribs10/GeoIP-GeoLite-data.spec
ViewVC logotype

Annotation of /rpms/GeoIP-GeoLite-data/contribs10/GeoIP-GeoLite-data.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Sun Mar 14 19:36:19 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: GeoIP-GeoLite-data-2018_06-7_el7_sme, HEAD
Changes since 1.2: +6 -3 lines
* Sun Mar 14 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2018.06-7.sme
- Rebuilt for SME10
- change Conflicts to Obsoletes to allow update

1 jpp 1.1 Name: GeoIP-GeoLite-data
2     # The geolite databases were traditionally updated on the first Tuesday of each month,
3     # hence we use a versioning scheme of YYYY.MM for the Fedora package.
4     #
5     # No further releases of IPv4 GeoLite Legacy databases will be made from April 2018.
6     Version: 2018.06
7 jpp 1.3 Release: 7%{?dist}
8 jpp 1.1 Summary: Free GeoLite IP geolocation country database
9     # License specified at http://dev.maxmind.com/geoip/legacy/geolite/#License
10     License: CC-BY-SA
11     URL: http://dev.maxmind.com/geoip/legacy/geolite/
12     Source0: http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
13     Source1: http://geolite.maxmind.com/download/geoip/database/GeoIPv6.dat.gz
14     Source2: http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
15     Source3: http://geolite.maxmind.com/download/geoip/database/GeoLiteCityv6-beta/GeoLiteCityv6.dat.gz
16     Source4: http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
17     Source5: http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNumv6.dat.gz
18     BuildArch: noarch
19     # For compatibility with monolithic GeoIP packages in Fedora 21 and older
20     # releases, we ensure that all databases are installed together; going
21     # forward, only the IPv4 country database is installed by default and the user
22     # can choose whether or not to install the databases from the extra package
23     %if 0%{?fedora} < 22 && 0%{?rhel} < 8
24     Requires: GeoIP-GeoLite-data-extra = %{version}-%{release}
25     %endif
26     # This data has previously been available in differently-named packages
27     Obsoletes: GeoIP-data < 1.6.4-10
28     Provides: GeoIP-data = %{version}
29     Obsoletes: geoip-geolite < %{version}
30     Provides: geoip-geolite = %{version}
31     # The data was unbundled from GeoIP at 1.6.4-3
32 jpp 1.3 #Conflicts: GeoIP < 1.6.4-3
33     Obsoletes: GeoIP < 1.6.4-3
34    
35 jpp 1.1
36     %description
37     The GeoLite databases are free IP geolocation databases. This package contains
38     a database that maps IPv4 addresses to countries.
39    
40     This product includes GeoLite data created by MaxMind, available from
41     http://www.maxmind.com/
42    
43     %package extra
44     Summary: Free GeoLite IP geolocation databases
45     License: CC-BY-SA
46     Requires: %{name} = %{version}-%{release}
47    
48     %description extra
49     The GeoLite databases are free IP geolocation databases. This package contains
50     databases that map IPv6 addresses to countries, plus IPv4 and IPv6 addresses
51     to cities and autonomous system numbers.
52    
53     This product includes GeoLite data created by MaxMind, available from
54     http://www.maxmind.com/
55    
56     %prep
57     %setup -q -T -c
58    
59     install -p -m 644 %{SOURCE0} GeoLiteCountry.dat.gz; gunzip GeoLiteCountry.dat
60     install -p -m 644 %{SOURCE1} GeoIPv6.dat.gz; gunzip GeoIPv6.dat
61     install -p -m 644 %{SOURCE2} GeoLiteCity.dat.gz; gunzip GeoLiteCity.dat
62     install -p -m 644 %{SOURCE3} GeoLiteCityv6.dat.gz; gunzip GeoLiteCityv6.dat
63     install -p -m 644 %{SOURCE4} GeoLiteASNum.dat.gz; gunzip GeoLiteASNum.dat
64     install -p -m 644 %{SOURCE5} GeoIPASNumv6.dat.gz; gunzip GeoIPASNumv6.dat
65    
66     %build
67     # This section intentionally left empty
68    
69     %install
70     mkdir -p %{buildroot}%{_datadir}/GeoIP/
71     for db in \
72     GeoLiteCountry.dat \
73     GeoIPv6.dat \
74     GeoLiteCity.dat \
75     GeoLiteCityv6.dat \
76     GeoLiteASNum.dat \
77     GeoIPASNumv6.dat
78     do
79     install -p -m 644 $db %{buildroot}%{_datadir}/GeoIP/
80     done
81    
82     # Add compat symlinks for GeoIPASNum.dat and GeoLiteASNumv6.dat
83     # ([upstream] database names used in the old geoip-geolite package)
84     ln -sf GeoLiteASNum.dat %{buildroot}%{_datadir}/GeoIP/GeoIPASNum.dat
85     ln -sf GeoIPASNumv6.dat %{buildroot}%{_datadir}/GeoIP/GeoLiteASNumv6.dat
86    
87     # Symlinks for City databases to be where upstream expects them
88     # (geoiplookup -v ...)
89     ln -sf GeoLiteCity.dat %{buildroot}%{_datadir}/GeoIP/GeoIPCity.dat
90     ln -sf GeoLiteCityv6.dat %{buildroot}%{_datadir}/GeoIP/GeoIPCityv6.dat
91    
92     %preun
93     # If the package is being uninstalled (rather than upgraded), we remove
94     # the GeoIP.dat symlink, provided that it points to GeoLiteCountry.dat;
95     # rpm will then be able to remove the %%{_datadir}/GeoIP directory
96     if [ $1 = 0 ]; then
97     if [ -h %{_datadir}/GeoIP/GeoIP.dat ]; then
98     geoipdat=`readlink %{_datadir}/GeoIP/GeoIP.dat`
99     if [ "$geoipdat" = "GeoLiteCountry.dat" ]; then
100     rm -f %{_datadir}/GeoIP/GeoIP.dat
101     fi
102     fi
103     fi
104     exit 0
105    
106     %posttrans
107     # Create the default GeoIP.dat as a symlink to GeoLiteCountry.dat
108     #
109     # This has to be done in %%posttrans rather than %%post because an old
110     # package's GeoIP.dat may still be present during %%post in an upgrade
111     #
112     # Don't do this if there is any existing GeoIP.dat, as we don't want to
113     # override what the user has put there
114     #
115     # Also, if there's an existing GeoIP.dat.rpmsave, we're probably doing
116     # an upgrade from an old version of GeoIP that packaged GeoIP.dat as
117     # %%config(noreplace), so rename GeoIP.dat.rpmsave back to GeoIP.dat
118     # instead of creating a new symlink
119     if [ ! -e %{_datadir}/GeoIP/GeoIP.dat ]; then
120     if [ -e %{_datadir}/GeoIP/GeoIP.dat.rpmsave ]; then
121     mv %{_datadir}/GeoIP/GeoIP.dat.rpmsave \
122     %{_datadir}/GeoIP/GeoIP.dat
123     else
124     ln -sf GeoLiteCountry.dat %{_datadir}/GeoIP/GeoIP.dat
125     fi
126     fi
127     exit 0
128    
129     %files
130     %dir %{_datadir}/GeoIP/
131     # The databases are %%verify(not md5 size mtime) so that they can be updated
132     # via cron scripts and rpm will not moan about the files having changed
133     %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLiteCountry.dat
134    
135     %files extra
136     # The databases are %%verify(not md5 size mtime) so that they can be updated
137     # via cron scripts and rpm will not moan about the files having changed
138     %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoIPv6.dat
139     %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLiteCity.dat
140     %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLiteCityv6.dat
141     %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoLiteASNum.dat
142     %verify(not md5 size mtime) %{_datadir}/GeoIP/GeoIPASNumv6.dat
143     # The compat symlinks are just regular files as they should never need to be
144     # changed
145     %{_datadir}/GeoIP/GeoIPASNum.dat
146     %{_datadir}/GeoIP/GeoIPCity.dat
147     %{_datadir}/GeoIP/GeoIPCityv6.dat
148     %{_datadir}/GeoIP/GeoLiteASNumv6.dat
149    
150     %changelog
151 jpp 1.3 * Sun Mar 14 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2018.06-7.sme
152 jpp 1.2 - Rebuilt for SME10
153 jpp 1.3 - change Conflicts to Obsoletes to allow update
154 jpp 1.2
155 jpp 1.1 * Thu Nov 28 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 2018.06-5
156     - Rebuilt for EPEL8
157    
158     * Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.06-4
159     - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
160    
161     * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2018.06-3
162     - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
163    
164     * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2018.06-2
165     - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
166    
167     * Tue Jun 19 2018 Paul Howarth <paul@city-fan.org> - 2018.06-1
168     - IPv6 databases are still seeing updates in June 2018
169     - IPv4 databases are unchanged from previous release
170    
171     * Wed Apr 4 2018 Paul Howarth <paul@city-fan.org> - 2018.04-1
172     - Final update of GeoLite Legacy databases from Maxmind
173    
174     * Wed Mar 21 2018 Paul Howarth <paul@city-fan.org> - 2018.03-1
175     - Update to March 2018 databases
176    
177     * Fri Feb 2 2018 Paul Howarth <paul@city-fan.org> - 2018.02-1
178     - Update to February 2018 databases
179    
180     * Mon Jan 8 2018 Paul Howarth <paul@city-fan.org> - 2018.01-1
181     - Update to January 2018 databases
182    
183     * Thu Dec 21 2017 Paul Howarth <paul@city-fan.org> - 2017.12-1
184     - Update to December 2017 databases
185    
186     * Mon Oct 9 2017 Paul Howarth <paul@city-fan.org> - 2017.10-1
187     - Update to October 2017 databases
188    
189     * Mon Sep 11 2017 Paul Howarth <paul@city-fan.org> - 2017.09-1
190     - Update to September 2017 databases
191    
192     * Wed Aug 9 2017 Paul Howarth <paul@city-fan.org> - 2017.08-1
193     - Update to August 2017 databases
194    
195     * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2017.07-2
196     - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
197    
198     * Sun Jul 23 2017 Paul Howarth <paul@city-fan.org> - 2017.07-1
199     - Update to July 2017 databases
200    
201     * Tue Jun 13 2017 Paul Howarth <paul@city-fan.org> - 2017.06-1
202     - Update to June 2017 databases
203    
204     * Tue May 9 2017 Paul Howarth <paul@city-fan.org> - 2017.05-1
205     - Update to May 2017 databases
206    
207     * Wed Apr 5 2017 Paul Howarth <paul@city-fan.org> - 2017.04-1
208     - Update to April 2017 databases
209     - Drop EL-5 support as it's now EOL
210    
211     * Fri Mar 10 2017 Paul Howarth <paul@city-fan.org> - 2017.03-1
212     - Update to March 2017 databases
213    
214     * Thu Feb 9 2017 Paul Howarth <paul@city-fan.org> - 2017.02-1
215     - Update to February 2017 databases
216    
217     * Tue Jan 17 2017 Paul Howarth <paul@city-fan.org> - 2017.01-1
218     - Update to January 2017 databases
219    
220     * Tue Dec 6 2016 Paul Howarth <paul@city-fan.org> - 2016.12-1
221     - Update to December 2016 databases
222    
223     * Fri Nov 25 2016 Paul Howarth <paul@city-fan.org> - 2016.11-1
224     - Update to November 2016 databases
225    
226     * Thu Oct 13 2016 Paul Howarth <paul@city-fan.org> - 2016.10-1
227     - Update to October 2016 databases
228    
229     * Tue Sep 6 2016 Paul Howarth <paul@city-fan.org> - 2016.09-1
230     - Update to September 2016 databases
231    
232     * Fri Aug 5 2016 Paul Howarth <paul@city-fan.org> - 2016.08-1
233     - Update to August 2016 databases
234    
235     * Mon Jul 11 2016 Paul Howarth <paul@city-fan.org> - 2016.07-1
236     - Update to July 2016 databases
237    
238     * Tue Jun 21 2016 Paul Howarth <paul@city-fan.org> - 2016.06-1
239     - Update to June 2016 databases
240    
241     * Mon May 9 2016 Paul Howarth <paul@city-fan.org> - 2016.05-1
242     - Update to May 2016 databases
243    
244     * Wed Apr 6 2016 Paul Howarth <paul@city-fan.org> - 2016.04-1
245     - Update to April 2016 databases
246    
247     * Tue Mar 8 2016 Paul Howarth <paul@city-fan.org> - 2016.03-1
248     - Update to March 2016 databases
249    
250     * Tue Feb 23 2016 Paul Howarth <paul@city-fan.org> - 2016.02-1
251     - Update to February 2016 databases
252    
253     * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2016.01-2
254     - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
255    
256     * Fri Jan 22 2016 Paul Howarth <paul@city-fan.org> - 2016.01-1
257     - Update to January 2016 databases
258    
259     * Fri Dec 11 2015 Paul Howarth <paul@city-fan.org> - 2015.12-1
260     - Update to December 2015 databases
261    
262     * Mon Nov 9 2015 Paul Howarth <paul@city-fan.org> - 2015.11-1
263     - Update to November 2015 databases
264    
265     * Wed Sep 9 2015 Paul Howarth <paul@city-fan.org> - 2015.09-1
266     - Update to September 2015 databases
267    
268     * Tue Aug 18 2015 Paul Howarth <paul@city-fan.org> - 2015.08-1
269     - Update to August 2015 databases
270    
271     * Wed Jul 8 2015 Paul Howarth <paul@city-fan.org> - 2015.07-1
272     - Update to July 2015 databases
273    
274     * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2015.06-2
275     - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
276    
277     * Sun Jun 14 2015 Paul Howarth <paul@city-fan.org> - 2015.06-1
278     - Update to June 2015 databases
279    
280     * Tue May 12 2015 Paul Howarth <paul@city-fan.org> - 2015.05-1
281     - Update to May 2015 databases
282    
283     * Mon Apr 27 2015 Paul Howarth <paul@city-fan.org> - 2015.04-2
284     - Add symlinks for City databases to be where upstream expects them
285     (thanks to nucleo for the suggestion in #1194798)
286    
287     * Sun Apr 12 2015 Paul Howarth <paul@city-fan.org> - 2015.04-1
288     - Update to April 2015 databases
289     - Add %%preun script to remove GeoIP.dat symlink if package is uninstalled
290    
291     * Wed Apr 1 2015 Paul Howarth <paul@city-fan.org> - 2015.03-3
292     - Incorporate review feedback (#1194798)
293     - Don't package GeoIP.dat symlink; create it in %%posttrans if it doesn't
294     exist
295     - Update IPASNum databases to current upstream
296     - Wrap comments at 80 characters
297     - Comment use of EPEL-5 idioms
298     - Comment where upstream declares licensing
299    
300     * Thu Mar 5 2015 Paul Howarth <paul@city-fan.org> - 2015.03-1
301     - Update to March 2015 databases
302    
303     * Fri Feb 20 2015 Paul Howarth <paul@city-fan.org> - 2015.02-1
304     - Databases unbundled from GeoIP, like the old geoip-geolite package

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed