Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37045677
en ru br
Репозитории ALT
S:1.6.12-alt1
5.1: 1.4.6-alt1
4.1: 1.4.4-alt1
4.0: 1.4.2-alt1
3.0: 1.3.8-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libGeoIP

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define origname geoip-api-c
%define _name GeoIP

# due to hasher network isolation

%def_disable check

Name: lib%_name
Version: 1.6.12
Release: alt1

Summary: GeoIP is a C library find what country an IP address or hostname originates from
License: LGPLv2.1+
Group: System/Libraries
URL: https://github.com/maxmind/%origname

Source: %url/releases/download/v%version/%_name-%version.tar.gz

# Automatically added by buildreq on Sun Apr 17 2011

BuildRequires: zlib-devel

# Both library and lookup tools unusable without database. But user can choose

# to get this file directly from MaxMind site, without installing our packaged
# GeoIP database. Hence this is file rather than package requirement.
Requires: /usr/share/GeoIP/GeoIP.dat

%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-%release

%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.

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

%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 -n %_name-%version

%build
%autoreconf
%configure --disable-static \
--disable-data-files
%make_build

%check
%make check

%install
%makeinstall_std

%files
%_libdir/%name.so.*

%files devel
%doc ChangeLog
%_includedir/*.h
%_libdir/%name.so
%_pkgconfigdir/geoip.pc

%files tools
%_bindir/geoiplookup*
%_man1dir/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin