Search
j0ke.net Open Build Service
>
Projects
>
devel
:
libs
>
GeoIP
> GeoIP.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File GeoIP.spec of Package GeoIP (Revision 6)
Currently displaying revision
6
,
show latest
# # spec file for package GeoIP (Version 1.4.5) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: GeoIP Version: 1.4.5 Release: 1 # License: LGPL v2.1 or later Group: Development/Libraries/C and C++ # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: zlib-devel # Url: http://www.maxmind.com/ Source: http://www.maxmind.com/download/geoip/api/c/%{name}-%{version}.tar.gz Source1: LICENSE.txt # Summary: Library to find the country that any IP address originates from %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. 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. MaxMind offers a service where you can have your database updated automically each month. Authors: -------- T.J. Mather <tjmather@maxmind.com> %package -n libGeoIP1 Group: Development/Libraries/C and C++ # Summary: Shared libraries of the GeoIP C API %description -n libGeoIP1 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. 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. MaxMind offers a service where you can have your database updated automically each month. This package holds the shared libraries for GeoIP. Authors: -------- T.J. Mather <tjmather@maxmind.com> %package -n libGeoIP-devel Group: Development/Libraries/C and C++ Requires: libGeoIP1 = %{version} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel < %{version} # Summary: Development Files for GeoIP %description -n libGeoIP-devel 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. 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. MaxMind offers a service where you can have your database updated automically each month. This package holds the development files for GeoIP. Authors: -------- T.J. Mather <tjmather@maxmind.com> %debug_package %prep %setup %build %configure --disable-static --with-pic %{__make} %{?jobs:-j%jobs} %install %makeinstall # we don't need that, we use %config(noreplace) instead %{__rm} %{buildroot}%{_sysconfdir}/GeoIP.conf.default %{__cp} %{SOURCE1} . # no need for that %{__rm} %{buildroot}%{_libdir}/*.la %clean %{__rm} -rf %{buildroot} %post -n libGeoIP1 -p /sbin/ldconfig %postun -n libGeoIP1 -p /sbin/ldconfig %files %defattr(-, root, root, -) %doc AUTHORS ChangeLog COPYING README TODO LICENSE.txt %config(noreplace) %{_sysconfdir}/GeoIP.conf %{_bindir}/geoiplookup %{_bindir}/geoipupdate %dir %{_datadir}/GeoIP %{_datadir}/GeoIP/GeoIP.dat %{_mandir}/man1/geoiplookup.1* %{_mandir}/man1/geoipupdate.1* %files -n libGeoIP1 %defattr(-, root, root, -) %{_libdir}/libGeoIP.so.1 %{_libdir}/libGeoIP.so.1.4.5 %{_libdir}/libGeoIPUpdate.so.0 %{_libdir}/libGeoIPUpdate.so.0.0.0 %files -n libGeoIP-devel %defattr(-, root, root, -) %{_includedir}/GeoIP.h %{_includedir}/GeoIPCity.h %{_includedir}/GeoIPUpdate.h %{_libdir}/libGeoIP.so %{_libdir}/libGeoIPUpdate.so %changelog * Mon Oct 20 2008 Carsten Schoene <cs@linux-administrator.com> - update to release 1.4.5