%define pkg_name Geo-IP-PurePerl %define pkg_version 1.18 %define rpm_pkg_version 1.18 %define rpm_pkg_release 1.n0i.3 Summary: Look up country by IP Address Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/T/TJ/TJMATHER/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %description This module uses a file based database. This database simply contains IP blocks as keys, and countries as values. This database is more complete and accurate than reverse DNS lookups. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_mod} %{__perl} -pi -e 's{/usr/local/share}{%{_datadir}}g' \ geoip-lookup* lib/Geo/IP/PurePerl.pm t/*.t %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m} %doc Changes COPYING geoip-lookup-* README %changelog * Sat Jun 09 2007 Marius Feraru - 1.18-1.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 1.18 * Wed Aug 17 2005 Marius FERARU 1.17-1.n0i.2 - version 1.17 * Thu Aug 04 2005 Marius Feraru 1.14-1.n0i.1 - initial packaging