Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37776751
en ru br
ALT Linux repositórios
S:1.6.12-alt1
5.0: 1.4.5-alt2
4.1: 1.4.4-alt1
4.0: 1.4.2-alt1
3.0: 1.3.8-alt1

Group :: Sistema/Bibliotecas
RPM: libGeoIP

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define origname GeoIP
%def_disable static

Name: lib%{origname}
Version: 1.4.2
Release: alt1

Summary: GeoIP is a C library find what country an IP address or hostname originates from.
License: LGPL
Group: System/Libraries

URL: http://www.maxmind.com/app/c
Source: http://www.maxmind.com/download/geoip/api/c/%origname-%version.tar.gz

%{?_enable_static:BuildPreReq: glibc-devel-static}

# Automatically added by buildreq on Tue Feb 03 2004

BuildRequires: zlib-devel

%description
%origname 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. Commercial databases and automatic update
services are available from http://www.maxmind.com/

This module can be used to automatically select the geographically closest
mirror, to analyze your web server logs to determine the countries of your
visitors, for credit card fraud detection, and for software export controls.

%package devel
Summary: GeoIP headers, libraries
Group: Development/C
Requires: %name = %version

%description devel
%origname is a C library that enables the user to find the country that
any IP address or hostname originates from.

This package contain the devel files for %origname.

%if_enabled static
%package devel-static
Summary: GeoIP static libraries
Group: Development/C
Requires: %name = %version

%description devel-static
%origname is a C library that enables the user to find the country that any IP
address or hostname originates from.

This package contain static libraries for %origname.
%endif

%package tools
Summary: GeoIP tools
Group: System/Libraries
Requires: %name = %version

%description tools
%origname is a C library that enables the user to find the country that
any IP address or hostname originates from.

This package contain few tools for %origname such as lookup, export,
autoupdate.

%prep
%setup -q -n %origname-%version

%build
%configure %{subst_enable static}
%make_build
make check

%install
%make_install DESTDIR=$RPM_BUILD_ROOT install

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%doc AUTHORS ChangeLog TODO
%config(noreplace) %_sysconfdir/GeoIP.conf
%exclude %_sysconfdir/GeoIP.conf.default
%_libdir/*.so.*
%_datadir/%origname

%files devel
%_includedir/*
%_libdir/*.so

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%files tools
%_bindir/*
%_man1dir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009