/[smecontribs]/rpms/GeoIP/contribs10/GeoIP.spec
ViewVC logotype

Contents of /rpms/GeoIP/contribs10/GeoIP.spec

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


Revision 1.2 - (show annotations) (download)
Sun Mar 14 04:15:05 2021 UTC (3 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: GeoIP-1_6_12-8_el7_sme
Changes since 1.1: +4 -1 lines
* Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.12-8.sme
- Rebuilt for SME10

1 # Tests require network access so fail in koji; build using --with tests to run them yourself
2 %bcond_with tests
3
4 Name: GeoIP
5 Version: 1.6.12
6 Release: 8%{?dist}
7 Summary: Library for country/city/organization to IP address or hostname mapping
8 License: LGPLv2+
9 URL: http://www.maxmind.com/app/c
10 Source0: https://github.com/maxmind/geoip-api-c/releases/download/v%{version}/GeoIP-%{version}.tar.gz
11 BuildRequires: coreutils
12 BuildRequires: gcc
13 BuildRequires: make
14 BuildRequires: sed
15 BuildRequires: zlib-devel
16 Requires: GeoIP-data
17
18 # For compatibility with original release of GeoIP in old distributions
19 %if 0%{?fedora} < 22 && 0%{?rhel} < 8
20 Requires: geoipupdate
21 %endif
22
23 # Old name of GeoIP library package
24 Obsoletes: geoip < %{version}-%{release}
25 Provides: geoip = %{version}-%{release}
26
27 %description
28 GeoIP is a C library that enables the user to find the country that any IP
29 address or hostname originates from.
30
31 It uses file based databases that can optionally be updated on a weekly basis
32 by installing the geoipupdate-cron (IPv4) and/or geoipupdate-cron6 (IPv6)
33 packages.
34
35 %package devel
36 Summary: Development headers and libraries for GeoIP
37 Requires: %{name} = %{version}-%{release}
38 Provides: geoip-devel = %{version}-%{release}
39 Obsoletes: geoip-devel < %{version}-%{release}
40
41 %description devel
42 Development headers and static libraries for building GeoIP-based applications.
43
44 %prep
45 %setup -q
46
47 %build
48 %configure --disable-static --disable-dependency-tracking
49
50 # Kill bogus rpaths
51 sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
52 -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
53
54 make %{?_smp_mflags}
55
56 %install
57 make DESTDIR=%{buildroot} INSTALL="install -p" install
58
59 # nix the stuff we don't need like .la files.
60 rm -f %{buildroot}%{_libdir}/*.la
61
62 %check
63 # Tests require network access so fail in koji; build using --with tests to run them yourself
64 %{?with_tests:LD_LIBRARY_PATH=%{buildroot}%{_libdir} make check}
65
66 %ldconfig_scriptlets
67
68 %files
69 %if 0%{?_licensedir:1}
70 %license COPYING
71 %else
72 %doc COPYING
73 %endif
74 %doc AUTHORS ChangeLog NEWS.md README.md
75 %{_bindir}/geoiplookup
76 %{_bindir}/geoiplookup6
77 %{_libdir}/libGeoIP.so.1
78 %{_libdir}/libGeoIP.so.1.*
79 %{_mandir}/man1/geoiplookup.1*
80 %{_mandir}/man1/geoiplookup6.1*
81
82 %files devel
83 %{_includedir}/GeoIP.h
84 %{_includedir}/GeoIPCity.h
85 %{_libdir}/libGeoIP.so
86 %{_libdir}/pkgconfig/geoip.pc
87
88 %changelog
89 * Sat Mar 13 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.6.12-8.sme
90 - Rebuilt for SME10
91
92 * Thu Nov 28 2019 Thomas Andrejak <thomas.andrejak@gmail.com> - 1.6.12-7
93 - Rebuilt for EPEL8
94
95 * Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.12-6
96 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
97
98 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.12-5
99 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
100
101 * Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.12-4
102 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
103
104 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.12-3
105 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
106
107 * Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.12-2
108 - Switch to %%ldconfig_scriptlets
109
110 * Thu Jan 18 2018 Paul Howarth <paul@city-fan.org> - 1.6.12-1
111 - Update to 1.6.12
112 - Populate metro and area code when performing lookups in IPv6 City
113 databases; previously this was only done when using IPv4 City
114 databases
115
116 * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.11-3
117 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
118
119 * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.11-2
120 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
121
122 * Tue May 16 2017 Paul Howarth <paul@city-fan.org> - 1.6.11-1
123 - Update to 1.6.11
124 - Fix use of a NULL pointer when opening a corrupt database with 'GeoIP_open'
125 (GH#87)
126 - Drop EL-5 support
127 - Drop redundant BuildRoot: and Group: tags
128 - Drop EL5-only dependency on GeoIP-GeoLite-data
129 - Drop explicit pkgconfig dependency in devel package
130 - Drop buildroot cleaning in %%install section
131 - Drop explicit %%clean section
132
133 * Thu Mar 30 2017 Paul Howarth <paul@city-fan.org> - 1.6.10-1
134 - Update to 1.6.10
135 - GeoIP_database_info now returns the full version string rather than
136 incorrectly truncating it (GH#79)
137 - This API is now distributed with a small test copy of GeoIP.dat rather than
138 a full copy
139 - Fix issue where Visual Studio 2015 was optimizing out initialization code
140 (GH#81)
141 - Fix test/benchmark on Windows (GH#75)
142
143 * Sun Feb 26 2017 Paul Howarth <paul@city-fan.org> - 1.6.9-4
144 - Fix GeoIP_database_info truncation issue (#1426853, GH#79, GH#80)
145
146 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-3
147 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
148
149 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-2
150 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
151
152 * Tue Jan 12 2016 Paul Howarth <paul@city-fan.org> - 1.6.9-1
153 - Update to 1.6.9
154 - Allow compilation on older systems by relaxing the autoconf and automake
155 minimum versions
156 - Avoid potential problems in multi-threaded environments by consistently
157 using pread() rather than read()
158 - Fix various small issues reported by clang's static analyser
159 - Fix a regression introduced in version 1.6.8, which caused
160 GeoIP_database_info to erroneously return NULL
161
162 * Sun Nov 1 2015 Paul Howarth <paul@city-fan.org> - 1.6.7-1
163 - Update to 1.6.7
164 - Fixed a MSVC parser stack overflow when parsing 'regionName.c' and
165 'timeZone.c' (GH#54)
166 - Updated region codes and timezones
167 - When using 'GEOIP_MEMORY_CACHE' with an invalid database file, the search
168 tree traversal could attempt to read memory outside of the memory allocated
169 for the memory cache, resulting in a segmentation fault; a check was added
170 to ensure that the traversal code does not try to read beyond the end of
171 the file, whether in memory, memory mapped, or on disk
172 - Previously the return values from file reads were ignored; we now check
173 these values to ensure that there were no errors
174
175 * Thu Jul 30 2015 Paul Howarth <paul@city-fan.org> - 1.6.6-1
176 - Update to 1.6.6
177 - Replaced usage of deprecated fileno, read, and lseek on Visual Studio 2005+
178 with their ISO C++ conformant replacements (GH#55)
179 - A warning about using a double as a float was fixed (GH#56)
180 - Fixed segfault when doing a lookup on an empty database (GH#62)
181 - Fixed a memcheck error from valgrind in the '_check_mtime' function (GH#60)
182 - Fixed '_check_mtime' to check the return value of 'gettimeofday' rather
183 than just assuming it worked
184
185 * Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-3
186 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
187
188 * Thu Apr 23 2015 Paul Howarth <paul@city-fan.org> - 1.6.5-2
189 - Work around problems with old GeoIP-data package in CentOS 5 Extras
190 repo (http://bugs.centos.org/view.php?id=8488) by requiring
191 GeoIP-GeoLite-data rather than the virtual GeoIP-data for EL-5 builds only
192
193 * Mon Mar 2 2015 Paul Howarth <paul@city-fan.org> - 1.6.5-1
194 - Update to 1.6.5
195 - Fixed a segmentation fault in geoiplookup when the utility was passed an
196 invalid database (#1180874)
197 - Additional validation was added for the size used in the creation of the
198 index cache (#832913)
199 - Changed the code to only look up country codes by using functions that
200 ensure that we do not try to look past the end of an array (GitHub #53)
201
202 * Fri Feb 20 2015 Paul Howarth <paul@city-fan.org> - 1.6.4-4
203 - Databases now unbundled to the GeoIP-GeoLite-data package
204 - Drop long-unused perl helper scripts
205 - Add explicit pkgconfig dependency for EL-5 build
206 - Drop timestamp hack for configure, no longer needed
207
208 * Tue Feb 10 2015 Paul Howarth <paul@city-fan.org> - 1.6.4-3
209 - Sub-package the data; going forward, this would be better as a separate
210 package, since it has separate upstream releases than the library
211
212 * Fri Feb 6 2015 Paul Howarth <paul@city-fan.org> - 1.6.4-2
213 - Only require geoipupdate prior to F-22, for back-compatibility
214 - Use %%license where possible
215 - GeoIP-devel provides geoip-devel as well as obsoleting it
216 - Update bundled databases
217
218 * Thu Jan 29 2015 Philip Prindeville <philipp@fedoraproject.org> - 1.6.4-1
219 - Require geoipupdate per Paul
220
221 * Tue Jan 20 2015 Philip Prindeville <philipp@fedoraproject.org> - 1.6.4-0
222 - Version bump to 1.6.4 per bz #1158667 (okay, that bug was for 1.6.3)
223 - Remove geoipupdate as it will be moving into its own package
224
225 * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-6
226 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
227
228 * Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-5
229 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
230
231 * Tue Feb 25 2014 Paul Howarth <paul@city-fan.org> - 1.5.1-4
232 - Add %%check, so we can run tests by building using --with tests
233 - Update databases from upstream
234
235 * Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-3
236 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
237
238 * Tue Jun 18 2013 Paul Howarth <paul@city-fan.org> - 1.5.1-2
239 - Properly provide all of the GeoLite databases and their IPv6 equivalents, as
240 per the geoip-geolite package that we're obsoleting/providing
241 - Provide compatibility symlinks for database files that historically had
242 different names in GeoIP and geoip-geolite
243 - Don't distribute unbundled LICENSE files, as per packaging guidelines
244 - Update license tag to reflect distribution of CC-BY-SA database content
245 - No longer try to update the databases in %%post
246 - Maintain timestamps where possible
247 - Set up GeoIP.dat symlink in package and don't touch it again
248 - Add update6 package to update the IPv6 databases; have to use wget for this
249 rather than geoipupdate as the databases are still in beta
250
251 * Wed Jun 12 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.1-1
252 - Bump to version 1.5.1
253 - Fix exit codes for various situations (MaxMind support #129155)
254 - Use versioned obsoletes/provides for geoip-geolite
255 - Update UTF8 patch
256 - Change symlink from GeoIP-initial.dat to GeoLiteCountry.dat if we had a
257 successful download and now have the latter file.
258
259 * Mon Jun 10 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.0-7
260 - Annotate conflict with geoip-geolite package (#968074)
261
262 * Mon Jun 10 2013 Paul Howarth <paul@city-fan.org> - 1.5.0-6
263 - Update sub-package requires main package for geoipupdate script
264
265 * Sat Jun 8 2013 Paul Howarth <paul@city-fan.org> - 1.5.0-5
266 - Make GeoIP.dat -> GeoIP-initial.dat symlink in %%install, not %%post,
267 and don't %%ghost it
268 - Run geoipupdate silently in %%post and cron job
269 - Create empty database files for %%ghost to work with old rpm versions
270 - Don't try to use noarch subpackages on old rpm versions
271 - Update %%description to mention database updates
272 - Drop outdated README.Fedora
273
274 * Sat Jun 08 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.0-4
275 - Revert ability to replace 3rd-party package
276
277 * Fri Jun 07 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.0-3
278 - Add attributes for %%ghost files
279
280 * Fri Jun 07 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.0-2
281 - Make update subpackage be noarch.
282
283 * Fri Jun 07 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.0-1
284 - Version bump to 1.5.0
285 - Have GeoIP.dat be a symlink to the real data, and install the canned
286 GeoIP.dat as GeoIP-initial.dat
287 - Change config as per Boris' instructions to use 'lite' databases which are
288 regularly updated.
289 - Add pkgconfig (.pc) file into devel subpackage
290 - Add cron support for refreshing the lite databases and make a separate
291 subpackage.
292
293 * Sun Mar 24 2013 Paul Howarth <paul@city-fan.org> - 1.4.8-6
294 - Fix config.guess and config.sub to add aarch64 support (#925403)
295
296 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-5
297 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
298
299 * Mon Oct 22 2012 Paul Howarth <paul@city-fan.org> - 1.4.8-4
300 - libGeoIPUpdate and geoipupdate (which is linked against it) are GPL-licensed
301 rather than LGPL-licensed (#840896)
302 - Don't package generic INSTALL file (#661625)
303 - Kill bogus rpaths on x86_64
304 - Hardcode library sonames in %%files list to avoid nasty surprises in the
305 future
306 - Drop %%defattr, redundant since rpm 4.4
307 - Recode docs as UTF-8
308 - Don't use macros for commands
309 - Use tabs
310
311 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-3.1
312 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
313
314 * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2.1
315 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
316
317 * Tue Sep 6 2011 Michael Fleming <mfleming+rpm@thatfleminggent.com> - 1.4.8-1.1
318 - Remove -ipv6 patch
319 - Bump to 1.4.8 release
320
321 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.7-0.2.20090931cvs
322 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
323
324 * Mon Aug 31 2009 Matt Domsch <mdomsch@fedoraproject.org> - 1.4.7.0.1.20090931
325 - apply CVS HEAD 20090931 which includes IPv6 functions
326
327 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2
328 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
329
330 * Sun Mar 08 2009 Michael Fleming <mfleming+rpm@enlartenment.com> - 1.4.6-1
331 - Add geoiplookup6 man page
332 - Update to 1.4.6
333
334 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-3
335 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
336
337 * Sat Nov 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.5-2
338 - Update to 1.4.5
339 - Fix database URL locations in Perl helper scripts
340
341 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-2
342 - Autorebuild for GCC 4.3
343
344 * Mon Jan 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.4-1
345 - New upstream release.
346
347 * Wed Sep 5 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.3-1
348 - New upstream release.
349 - Fix GeoIPCity fetcher script
350 - Update License tag
351
352 * Mon Feb 12 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.2-1
353 - New upstream release.
354
355 * Mon Jan 8 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-2
356 - License is actually LGPL now.
357
358 * Sun Jan 7 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-1
359 - New upstream release
360 - Add fetch-geoipdata* scripts to pull free databases automatically if
361 desired (bz #198137)
362 - README.fedora added to briefly explain above.
363
364 * Mon Nov 27 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-4
365 - Fix %%install scripts to satisfy newer mock builds
366
367 * Sun Sep 3 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-3
368 - Upstream upgrade
369 - Added LICENSE.txt file to %%doc, covering GeoIP country/city data license
370 (bz #198137)
371
372 * Mon May 15 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.17-1
373 - New upstream release (minor fixes)
374
375 * Mon May 1 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.16-1
376 - New upstream release
377 - Add INSTALL document to package.
378
379 * Sat Feb 18 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-3
380 - Fix Obsoletes/Provides for old "geoip"-convention packages
381 - Move .so symlinks to -devel where they should be
382
383 * Fri Feb 10 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-2
384 - Remamed to match upstream tarball name
385 - Removed static libraries
386 - Added symlinks to packages
387 - Mark config file noreplace
388
389 * Sun Feb 5 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-1
390 - Initial review package for Extras

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