%define module Geo-IP %define version 1.21 %define release 2mdk Summary: Look up country by IP Address Name: perl-%{module} Version: %{version} Release: %{release} Url: http://search.cpan.org/~tjmather/Geo-IP-1.21/ License: GPL or Artistic Group: Development/Perl Source0: %{module}-%{version}.tar.bz2 BuildRequires: perl-devel BuildRequires: libgeoip-devel BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot %description This module 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 reverse DNS lookups. This module can be used to automatically select the geographically closest mirror, to analyze your web server logs to determine the countries of your visiters, for credit card fraud detection, and for software export controls. %prep %setup -q -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README MANIFEST Changes %{perl_vendorlib}/i386-linux-thread-multi/Geo %{perl_vendorlib}/i386-linux-thread-multi/auto/Geo/ %{_mandir}/*/* %changelog * Mon Nov 10 2003 Götz Waschk <waschk@linux-mandrake.com> 1.21-2mdk - fix buildrequires * Mon Sep 22 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.21-1mdk - needed by w3perl