Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
projects
:
http
>
GeoIP
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
[-]
[+]
Added
GeoIP.spec
@@ -0,0 +1,335 @@ +# Tests require network access so fail in koji; build using --with tests to run them yourself +%bcond_with tests + +# Noarch subpackages available from Fedora 10, RHEL 6 +%global noarch_subpkgs 0%{?fedora} > 9 || 0%{?rhel} > 5 + +Name: GeoIP +Version: 1.6.9 +Release: 2%{?dist} +Summary: Library for country/city/organization to IP address or hostname mapping +Group: Development/Libraries +License: LGPLv2+ +URL: http://www.maxmind.com/app/c +Source0: https://github.com/maxmind/geoip-api-c/releases/download/v%{version}/GeoIP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: coreutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: sed +BuildRequires: zlib-devel + +Obsoletes: geoip < %{version}-%{release} +Provides: geoip = %{version}-%{release} + +%description +GeoIP is a C library that enables the user to find the country that any IP +address or hostname originates from. + +It uses file based databases that can optionally be updated on a weekly basis +by installing the geoipupdate-cron (IPv4) and/or geoipupdate-cron6 (IPv6) +packages. + +%package devel +Summary: Development headers and libraries for GeoIP +Group: Development/Libraries +Requires: pkgconfig +Provides: geoip-devel = %{version}-%{release} +Obsoletes: geoip-devel < %{version}-%{release} + +%description devel +Development headers and static libraries for building GeoIP-based applications. + +%prep +%setup -q + +%build +%configure --disable-static --disable-dependency-tracking + +# Kill bogus rpaths +sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} INSTALL="install -p" install + +# nix the stuff we don't need like .la files. +rm -f %{buildroot}%{_libdir}/*.la + +%check +# Tests require network access so fail in koji; build using --with tests to run them yourself +%{?with_tests:LD_LIBRARY_PATH=%{buildroot}%{_libdir} make check} + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%if 0%{?_licensedir:1} +%license COPYING +%else +%doc COPYING +%endif +%doc AUTHORS ChangeLog NEWS.md README.md +%{_bindir}/geoiplookup +%{_bindir}/geoiplookup6 +%{_libdir}/libGeoIP.so.1 +%{_libdir}/libGeoIP.so.1.* +%{_mandir}/man1/geoiplookup.1* +%{_mandir}/man1/geoiplookup6.1* + +%files devel +%{_includedir}/GeoIP.h +%{_includedir}/GeoIPCity.h +%{_libdir}/libGeoIP.so +%{_libdir}/pkgconfig/geoip.pc + +%changelog +* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Jan 12 2016 Paul Howarth <paul@city-fan.org> - 1.6.9-1 +- Update to 1.6.9 + - Allow compilation on older systems by relaxing the autoconf and automake + minimum versions + - Avoid potential problems in multi-threaded environments by consistently + using pread() rather than read() + - Fix various small issues reported by clang's static analyser + - Fix a regression introduced in version 1.6.8, which caused + GeoIP_database_info to erroneously return NULL + +* Sun Nov 1 2015 Paul Howarth <paul@city-fan.org> - 1.6.7-1 +- Update to 1.6.7 + - Fixed a MSVC parser stack overflow when parsing 'regionName.c' and + 'timeZone.c' (GH#54) + - Updated region codes and timezones + - When using 'GEOIP_MEMORY_CACHE' with an invalid database file, the search + tree traversal could attempt to read memory outside of the memory allocated + for the memory cache, resulting in a segmentation fault; a check was added + to ensure that the traversal code does not try to read beyond the end of + the file, whether in memory, memory mapped, or on disk + - Previously the return values from file reads were ignored; we now check + these values to ensure that there were no errors + +* Thu Jul 30 2015 Paul Howarth <paul@city-fan.org> - 1.6.6-1 +- Update to 1.6.6 + - Replaced usage of deprecated fileno, read, and lseek on Visual Studio 2005+ + with their ISO C++ conformant replacements (GH#55) + - A warning about using a double as a float was fixed (GH#56) + - Fixed segfault when doing a lookup on an empty database (GH#62) + - Fixed a memcheck error from valgrind in the '_check_mtime' function (GH#60) + - Fixed '_check_mtime' to check the return value of 'gettimeofday' rather + than just assuming it worked + +* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Apr 23 2015 Paul Howarth <paul@city-fan.org> - 1.6.5-2 +- Work around problems with old GeoIP-data package in CentOS 5 Extras + repo (http://bugs.centos.org/view.php?id=8488) by requiring + GeoIP-GeoLite-data rather than the virtual GeoIP-data for EL-5 builds only + +* Mon Mar 2 2015 Paul Howarth <paul@city-fan.org> - 1.6.5-1 +- Update to 1.6.5 + - Fixed a segmentation fault in geoiplookup when the utility was passed an + invalid database (#1180874) + - Additional validation was added for the size used in the creation of the + index cache (#832913) + - Changed the code to only look up country codes by using functions that + ensure that we do not try to look past the end of an array (GitHub #53) + +* Fri Feb 20 2015 Paul Howarth <paul@city-fan.org> - 1.6.4-4 +- Databases now unbundled to the GeoIP-GeoLite-data package +- Drop long-unused perl helper scripts +- Add explicit pkgconfig dependency for EL-5 build +- Drop timestamp hack for configure, no longer needed + +* Tue Feb 10 2015 Paul Howarth <paul@city-fan.org> - 1.6.4-3 +- Sub-package the data; going forward, this would be better as a separate + package, since it has separate upstream releases than the library + +* Fri Feb 6 2015 Paul Howarth <paul@city-fan.org> - 1.6.4-2 +- Only require geoipupdate prior to F-22, for back-compatibility +- Use %%license where possible +- GeoIP-devel provides geoip-devel as well as obsoleting it +- Update bundled databases + +* Thu Jan 29 2015 Philip Prindeville <philipp@fedoraproject.org> - 1.6.4-1 +- Require geoipupdate per Paul + +* Tue Jan 20 2015 Philip Prindeville <philipp@fedoraproject.org> - 1.6.4-0 +- Version bump to 1.6.4 per bz #1158667 (okay, that bug was for 1.6.3) +- Remove geoipupdate as it will be moving into its own package + +* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Feb 25 2014 Paul Howarth <paul@city-fan.org> - 1.5.1-4 +- Add %%check, so we can run tests by building using --with tests +- Update databases from upstream + +* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Tue Jun 18 2013 Paul Howarth <paul@city-fan.org> - 1.5.1-2 +- Properly provide all of the GeoLite databases and their IPv6 equivalents, as + per the geoip-geolite package that we're obsoleting/providing +- Provide compatibility symlinks for database files that historically had + different names in GeoIP and geoip-geolite +- Don't distribute unbundled LICENSE files, as per packaging guidelines +- Update license tag to reflect distribution of CC-BY-SA database content +- No longer try to update the databases in %%post +- Maintain timestamps where possible +- Set up GeoIP.dat symlink in package and don't touch it again +- Add update6 package to update the IPv6 databases; have to use wget for this + rather than geoipupdate as the databases are still in beta + +* Wed Jun 12 2013 Philip Prindeville <philipp@fedoraproject.org> - 1.5.1-1 +- Bump to version 1.5.1 +- Fix exit codes for various situations (MaxMind support #129155) +- Use versioned obsoletes/provides for geoip-geolite