| 1 |
%define tarballversion 1.4.6
|
| 2 |
Name: GeoIP
|
| 3 |
Version: 1.4.7
|
| 4 |
Release: 0.1.20090931cvs%{?dist}
|
| 5 |
Summary: C library for country/city/organization to IP address or hostname mapping
|
| 6 |
Group: Development/Libraries
|
| 7 |
License: LGPLv2+
|
| 8 |
URL: http://www.maxmind.com/app/c
|
| 9 |
Source0: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{tarballversion}.tar.gz
|
| 10 |
Source1: LICENSE.txt
|
| 11 |
Source2: fetch-geoipdata-city.pl
|
| 12 |
Source3: fetch-geoipdata.pl
|
| 13 |
Source4: README.Fedora
|
| 14 |
Patch0: geoip-1.4.6-ipv6.patch
|
| 15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 16 |
Obsoletes: geoip < %{version}-%{release}
|
| 17 |
Provides: geoip = %{version}-%{release}
|
| 18 |
BuildRequires: zlib-devel
|
| 19 |
|
| 20 |
%description
|
| 21 |
GeoIP is a C library that enables the user to find the country that any IP
|
| 22 |
address or hostname originates from. It uses a file based database that is
|
| 23 |
accurate as of March 2003. This database simply contains IP blocks as keys, and
|
| 24 |
countries as values. This database should be more complete and accurate than
|
| 25 |
using reverse DNS lookups.
|
| 26 |
|
| 27 |
%package devel
|
| 28 |
Summary: Development headers and libraries for GeoIP
|
| 29 |
Group: Development/Libraries
|
| 30 |
Requires: %{name} = %{version}-%{release}
|
| 31 |
Provides: geoip-devel = %{version}-%{release}
|
| 32 |
Obsoletes: geoip-devel < %{version}-%{release}
|
| 33 |
|
| 34 |
%description devel
|
| 35 |
Development headers and static libraries for building GeoIP-based applications
|
| 36 |
|
| 37 |
%prep
|
| 38 |
%setup -q -n %{name}-%{tarballversion}
|
| 39 |
%patch0 -p1
|
| 40 |
install -D -m644 %{SOURCE1} LICENSE.txt
|
| 41 |
install -D -m644 %{SOURCE2} fetch-geoipdata-city.pl
|
| 42 |
install -D -m644 %{SOURCE3} fetch-geoipdata.pl
|
| 43 |
install -D -m644 %{SOURCE4} README.fedora
|
| 44 |
|
| 45 |
%build
|
| 46 |
%configure --disable-static --disable-dependency-tracking
|
| 47 |
make %{?_smp_mflags}
|
| 48 |
|
| 49 |
%install
|
| 50 |
rm -rf %{buildroot}
|
| 51 |
make DESTDIR=%{buildroot} install
|
| 52 |
|
| 53 |
# nix the stuff we don't need like .la files.
|
| 54 |
rm -f %{buildroot}/%{_libdir}/*.la
|
| 55 |
|
| 56 |
%clean
|
| 57 |
rm -rf %{buildroot}
|
| 58 |
|
| 59 |
%post -p /sbin/ldconfig
|
| 60 |
|
| 61 |
%postun -p /sbin/ldconfig
|
| 62 |
|
| 63 |
%files
|
| 64 |
%defattr(-,root,root,-)
|
| 65 |
%doc AUTHORS COPYING ChangeLog README TODO INSTALL LICENSE* fetch-*
|
| 66 |
%{_libdir}/libGeoIP.so.*
|
| 67 |
%{_libdir}/libGeoIPUpdate.so.*
|
| 68 |
%{_bindir}/geoiplookup6
|
| 69 |
%{_bindir}/geoiplookup
|
| 70 |
%{_bindir}/geoipupdate
|
| 71 |
%config(noreplace) %{_sysconfdir}/GeoIP.conf.default
|
| 72 |
%config(noreplace) %{_sysconfdir}/GeoIP.conf
|
| 73 |
%{_datadir}/GeoIP
|
| 74 |
%{_mandir}/man1/geoiplookup.1*
|
| 75 |
%{_mandir}/man1/geoiplookup6.1*
|
| 76 |
%{_mandir}/man1/geoipupdate.1*
|
| 77 |
|
| 78 |
%files devel
|
| 79 |
%defattr(-,root,root,-)
|
| 80 |
%{_includedir}/GeoIP.h
|
| 81 |
%{_includedir}/GeoIPCity.h
|
| 82 |
%{_includedir}/GeoIPUpdate.h
|
| 83 |
%{_libdir}/libGeoIP.so
|
| 84 |
%{_libdir}/libGeoIPUpdate.so
|
| 85 |
|
| 86 |
%changelog
|
| 87 |
* Mon Aug 31 2009 Matt Domsch <mdomsch@fedoraproject.org> - 1.4.7.0.1.20090931
|
| 88 |
- apply CVS HEAD 20090931 which includes IPv6 functions
|
| 89 |
|
| 90 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-2
|
| 91 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 92 |
|
| 93 |
* Sun Mar 08 2009 Michael Fleming <mfleming+rpm@enlartenment.com> - 1.4.6-1
|
| 94 |
- Add geoiplookup6 man page
|
| 95 |
- Update to 1.4.6
|
| 96 |
|
| 97 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-3
|
| 98 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 99 |
|
| 100 |
* Sat Nov 29 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.5-2
|
| 101 |
- Update to 1.4.5
|
| 102 |
- Fix database URL locations in Perl helper scripts
|
| 103 |
|
| 104 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.4.4-2
|
| 105 |
- Autorebuild for GCC 4.3
|
| 106 |
|
| 107 |
* Mon Jan 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.4-1
|
| 108 |
- New upstream release.
|
| 109 |
|
| 110 |
* Wed Sep 5 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.3-1
|
| 111 |
- New upstream release.
|
| 112 |
- Fix GeoIPCity fetcher script
|
| 113 |
- Update License tag
|
| 114 |
|
| 115 |
* Mon Feb 12 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.2-1
|
| 116 |
- New upstream release.
|
| 117 |
|
| 118 |
* Mon Jan 8 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-2
|
| 119 |
- License is actually LGPL now.
|
| 120 |
|
| 121 |
* Sun Jan 7 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.1-1
|
| 122 |
- New upstream release
|
| 123 |
- Add fetch-geoipdata* scripts to pull free databases automatically if
|
| 124 |
desired (bz #198137)
|
| 125 |
- README.fedora added to briefly explain above.
|
| 126 |
|
| 127 |
* Mon Nov 27 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-4
|
| 128 |
- Fix %%install scripts to satisfy newer mock builds
|
| 129 |
|
| 130 |
* Sun Sep 3 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.4.0-3
|
| 131 |
- Upstream upgrade
|
| 132 |
- Added LICENSE.txt file to %%doc, covering GeoIP country/city data license
|
| 133 |
(bz #198137)
|
| 134 |
|
| 135 |
* Mon May 15 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.17-1
|
| 136 |
- New upstream release (minor fixes)
|
| 137 |
|
| 138 |
* Mon May 1 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.16-1
|
| 139 |
- New upstream release
|
| 140 |
- Add INSTALL document to package.
|
| 141 |
|
| 142 |
* Sat Feb 18 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-3
|
| 143 |
- Fix Obsoletes/Provides for old "geoip"-convention packages
|
| 144 |
- Move .so symlinks to -devel where they should be
|
| 145 |
|
| 146 |
* Fri Feb 10 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-2
|
| 147 |
- Remamed to match upstream tarball name
|
| 148 |
- Removed static libraries
|
| 149 |
- Added symlinks to packages
|
| 150 |
- Mark config file noreplace
|
| 151 |
|
| 152 |
* Sun Feb 5 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.3.14-1
|
| 153 |
- Initial review package for Extras
|