%define packname Geo-IP Name: perl-Geo-IP Summary: GeoIP Perl module from Maxmind Version: 1.27 Release: 10.1.rcn License: GPL Group: Applications/Internet URL: http://www.maxmind.com/download/geoip/api/perl/ Source0: http://www.maxmind.com/download/geoip/api/perl/%{packname}-%{version}.tar.gz Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl BuildRequires: GeoIP-devel Requires: perl Requires: GeoIP %description GeoIP Perl module from Maxmind %prep %setup -q -n %{packname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" %{__make} %{?_smp_mflags} %check %{__make} test %install %{__rm} -fr %{buildroot} %{__make} pure_install PERL_INSTALL_ROOT=%{buildroot} /usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';' /usr/bin/find %{buildroot} -type d -depth -exec /bin/rmdir {} 2>/dev/null ';' %{__chmod} -R u+w %{buildroot}/* %clean %{__rm} -fr %{buildroot} %files %defattr(-, root, root, -) %doc Changes MANIFEST README %{perl_vendorarch}/Geo/IP.pm %{perl_vendorarch}/Geo/IP/Record.pm %{perl_vendorarch}/Geo/IP/Record.pod %{perl_vendorarch}/Geo/Mirror.pm %{perl_vendorarch}/auto/Geo/IP/IP.so %{_mandir}/man3/Geo::IP.3pm.gz %{_mandir}/man3/Geo::IP::Record.3pm.gz %{_mandir}/man3/Geo::Mirror.3pm.gz %changelog * Thu Aug 17 2006 Raoul 1.27-10.1 - Initial spec file