Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37522226
en ru br
ALT Linux repos
S:2.28-alt1
5.0: 2.25-alt1
4.1: 2.24-alt1
4.0: 2.23-alt1

Group :: Development/Perl
RPM: perl-IP-Country

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define module_name IP-Country

Name: perl-%module_name
Version: 2.23
Release: alt1

Summary: Classes for fast lookup of country codes from IP addresses for Perl
Group: Development/Perl
License: distributable

URL: http://search.cpan.org/dist/%module_name
Source: http://www.cpan.org/modules/by-module/IP/%module_name-%version.tar.gz

BuildArch: noarch

# Automatically added by buildreq on Tue Jun 13 2006 (-bi)

BuildRequires: perl-devel perl-Geography-Countries perl-Geo-IP-PurePerl

%description
Finding the home country of a client using only the IP address can be difficult.
Looking up the domain name associated with that address can provide some help,
but many IP address are not reverse mapped to any useful domain, and the
most common domain (.com) offers no help when looking for country.

This module comes bundled with a database of countries where various IP addresses
have been assigned. Although the country of assignment will probably be the
country associated with a large ISP rather than the client herself, this is
probably good enough for most log analysis applications, and under test has proved
to be as accurate as reverse-DNS and WHOIS lookup.

%prep
%setup -q -n %module_name-%version

%build
%perl_vendor_build

%install
%perl_vendor_install

# Clean up buildroot

%__rm -rf %buildroot%perl_vendor_privlib/*-linux

%files
%_bindir/*
%_man1dir/*
%perl_vendor_privlib/*
%perl_vendor_man3dir/*
%doc CHANGES

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin