# $Id: perl-IP-Country.spec 4290 2006-04-10 20:06:39Z dries $ # Authority: dag # Upstream: Nigel Wetters Gourlay %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define real_name IP-Country Summary: Classes for fast lookup of country codes from IP addresses for Perl Name: perl-IP-Country Version: 2.21 Release: 1 License: distributable Group: Applications/CPAN URL: http://search.cpan.org/dist/IP-Country/ #Packager: Dag Wieers #Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://search.cpan.org/CPAN/authors/id/N/NW/NWETTERS/IP-Country-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root #BuildArch: noarch BuildRequires: perl BuildRequires: perl-Geography-Countries Requires: perl perl-Geography-Countries %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 -n %{real_name}-%{version} %build CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" %{__make} %{?_smp_mflags} %install %{__rm} -rf %{buildroot} %makeinstall ### Clean up buildroot %{__rm} -rf %{buildroot}%{perl_archlib} %{buildroot}%{perl_vendorarch} %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc CHANGES MANIFEST README %doc %{_mandir}/man1/ip2cc.1* %doc %{_mandir}/man3/*.3* %{_bindir}/ip2cc %{perl_vendorlib}/IP/ %changelog * Mon May 29 2006 Dag Wieers - 2.21-1 - 4290+/dries - Updated to release 2.21. * Sat Jun 18 2005 Dries Verachtert - 2.20-1 - Updated to release 2.20. * Sat Nov 06 2004 Dag Wieers - 2.18-1 - Updated to release 2.18. * Fri Jan 02 2004 Dag Wieers - 2.17-0 - Updated to release 2.17. * Mon Jul 14 2003 Dag Wieers - 2.14-0 - Updated to release 2.14. * Sat Feb 01 2003 Dag Wieers - 2.08-0 - Initial package. (using DAR)