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