Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
5.5.30
:
extensions
>
GeoIP
> GeoIP.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File GeoIP.spec of Package GeoIP
# # spec file for package GeoIP # # 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 %define pkgname GeoIP %define updatepkgname geoipupdate %define updatepkgver 2.2.1 Name: GeoIP Version: 1.6.5 Release: 10 # License: LGPL v2.1 or later Group: Development/Libraries/C and C++ # BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: zlib-devel curl-devel BuildRequires: autoconf automake # Url: http://www.maxmind.com/ Source: http://www.maxmind.com/download/geoip/api/c/%{pkgname}-%{version}.tar.bz2 Source1: LICENSE.txt Source2: GeoIP.dat.gz Source3: %{updatepkgname}-%{updatepkgver}.tar.bz2 # 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> %if 1%{?rhel} == 7 %debug_package %endif %prep - %setup -n %{pkgname}-%{version} -b 3 zcat %{S:2} > data/GeoIP.dat %build if [ ! -f configure ] ; then if [ -x bootstrap ] ; then ./bootstrap fi fi %configure --disable-static --with-pic %{__make} %{?jobs:-j%jobs} cd ../%{updatepkgname}-%{updatepkgver} if [ ! -f configure ] ; then if [ -x bootstrap ] ; then ./bootstrap fi fi %configure --disable-static --with-pic %{__make} %{?jobs:-j%jobs} %install %makeinstall # we don't need that, we use %config(noreplace) instead %{__rm} -f %{buildroot}%{_sysconfdir}/GeoIP.conf.default %{__cp} %{SOURCE1} . # no need for that %{__rm} -f %{buildroot}%{_libdir}/*.la cd ../%{updatepkgname}-%{updatepkgver} %makeinstall %{__rm} -f %{buildroot}%{_sysconfdir}/GeoIP.conf.default %__install -D -m0644 ../%{pkgname}-%{version}/data/GeoIP.dat %{buildroot}%{_datadir}/GeoIP/GeoIP.dat %clean %{__rm} -rf %{buildroot} %post -n libGeoIP1 -p /sbin/ldconfig %postun -n libGeoIP1 -p /sbin/ldconfig %files %defattr(-, root, root, -) %doc AUTHORS ChangeLog COPYING LICENSE.txt %config(noreplace) %{_sysconfdir}/GeoIP.conf %{_bindir}/geoiplookup %{_bindir}/geoiplookup6 %{_bindir}/geoipupdate %dir %{_datadir}/GeoIP %{_datadir}/GeoIP/GeoIP.dat %{_mandir}/man1/geoiplookup.1* %{_mandir}/man1/geoipupdate.1* %{_mandir}/man1/geoiplookup6.1* %{_mandir}/man5/GeoIP.conf.5* %files -n libGeoIP1 %defattr(-, root, root, -) %{_libdir}/libGeoIP.so.1 %{_libdir}/libGeoIP.so.1.* ##%{_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 %{_libdir}/pkgconfig/geoip.pc %changelog * Mon Oct 20 2008 Carsten Schoene <cs@linux-administrator.com> - update to release 1.4.5