diff --git a/.cvsignore b/.cvsignore index e69de29..7be15d9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +GeoIP-1.3.14.tar.gz diff --git a/GeoIP.spec b/GeoIP.spec new file mode 100644 index 0000000..2c9680e --- /dev/null +++ b/GeoIP.spec @@ -0,0 +1,85 @@ +Name: GeoIP +Version: 1.3.14 +Release: 3%{?dist} +Summary: C library for country/city/organization to IP address or hostname mapping +Group: Development/Libraries +License: GPL +URL: http://www.maxmind.com/app/c +Source0: http://www.maxmind.com/download/geoip/api/c/GeoIP-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Obsoletes: geoip < %{version}-%{release} +Provides: geoip = %{version}-%{release} +BuildRequires: zlib-devel + +%description +GeoIP is a C library that enables the user to find the country that any IP +address or hostname originates from. It uses a file based database that is +accurate as of March 2003. This database simply contains IP blocks as keys, and +countries as values. This database should be more complete and accurate than +using reverse DNS lookups. + +%package devel +Summary: Development headers and libraries for GeoIP +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +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 +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +%makeinstall + +# nix the stuff we don't need like .la files. +rm -f %{buildroot}/%{_libdir}/*.la + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS COPYING ChangeLog README TODO +%{_libdir}/libGeoIP.so.* +%{_libdir}/libGeoIPUpdate.so.* +%{_bindir}/geoiplookup +%{_bindir}/geoipupdate +%config(noreplace) %{_sysconfdir}/GeoIP.conf.default +%config(noreplace) %{_sysconfdir}/GeoIP.conf +%{_datadir}/GeoIP +%{_mandir}/man1/geoiplookup.1* +%{_mandir}/man1/geoipupdate.1* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/GeoIP.h +%{_includedir}/GeoIPCity.h +%{_includedir}/GeoIPUpdate.h +%{_libdir}/libGeoIP.so +%{_libdir}/libGeoIPUpdate.so + +%changelog +* Sat Feb 18 2006 Michael Fleming 1.3.14-3 +- Fix Obsoletes/Provides for old "geoip"-convention packages +- Move .so symlinks to -devel where they should be + +* Fri Feb 10 2006 Michael Fleming 1.3.14-2 +- Remamed to match upstream tarball name +- Removed static libraries +- Added symlinks to packages +- Mark config file noreplace + +* Sun Feb 5 2006 Michael Fleming 1.3.14-1 +- Initial review package for Extras diff --git a/sources b/sources index e69de29..2cca525 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a1f6fb744d85e96a457808f9c32fd334 GeoIP-1.3.14.tar.gz