Michael Fleming 05ac8dd
Name:  perl-Geo-IP
Michael Fleming dfcc570
Version: 1.38
4474d3e
Release: 3%{?dist}
Michael Fleming 05ac8dd
Summary: Efficient Perl bindings for the GeoIP location database       
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
Group: Development/Libraries
Michael Fleming 05ac8dd
License: GPL+ or Artistic
Michael Fleming 05ac8dd
URL: http://search.cpan.org/dist/Geo-IP/            
Michael Fleming 7270113
Source0: http://search.cpan.org/CPAN/authors/id/B/BO/BORISZ/Geo-IP-%{version}.tar.gz   
Michael Fleming 05ac8dd
Patch0: Geo-IP-1.28-yahoo-namelookuptest.diff
Michael Fleming 05ac8dd
Patch1:	Geo-IP-1.28-example.diff
Michael Fleming 05ac8dd
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Michael Fleming 05ac8dd
BuildRequires: GeoIP-devel perl(ExtUtils::MakeMaker)
Michael Fleming 05ac8dd
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%description
Michael Fleming 05ac8dd
This package contains Perl bindings for the GeoIP IP/hostname to
Michael Fleming 05ac8dd
country/location/organization database.
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
This package requires Maxmind's GeoIP libraries but is often faster than other,
Michael Fleming 05ac8dd
similar modules.  
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%prep
Michael Fleming 05ac8dd
%setup -q -n Geo-IP-%{version}
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%patch0 -p0 -b .namelookup
Michael Fleming 05ac8dd
%patch1 -p0
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%build
Michael Fleming 05ac8dd
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
Michael Fleming 05ac8dd
make %{?_smp_mflags}
Michael Fleming 05ac8dd
# Avoid uneeded dependencies in the docs.
Michael Fleming 05ac8dd
find example/ -type f | xargs chmod -x
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%check
Michael Fleming 05ac8dd
make test
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%install
Michael Fleming 05ac8dd
rm -rf %{buildroot}
Michael Fleming 05ac8dd
make pure_install PERL_INSTALL_ROOT=%{buildroot}
Michael Fleming 05ac8dd
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
Michael Fleming 05ac8dd
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
Michael Fleming 05ac8dd
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
Michael Fleming 05ac8dd
chmod -R u+w %{buildroot}/*
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%clean
Michael Fleming 05ac8dd
rm -rf %{buildroot}
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%files
Michael Fleming 05ac8dd
%defattr(-,root,root,-)
Michael Fleming 05ac8dd
%doc Changes INSTALL example
Michael Fleming 05ac8dd
%{perl_vendorarch}/Geo
Michael Fleming 05ac8dd
%{perl_vendorarch}/auto/Geo
Michael Fleming 05ac8dd
%{_mandir}/man3/Geo::IP*.3*
Michael Fleming 05ac8dd
%{_mandir}/man3/Geo::Mirror.3*
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
%changelog
4474d3e
* Fri Dec  4 2009 Stepan Kasal <skasal@redhat.com> - 1.38-3
4474d3e
- rebuild against perl 5.10.1
4474d3e
eb9a7da
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.38-2
eb9a7da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
eb9a7da
Michael Fleming dfcc570
* Mon Jun 15 2009 Michael Fleming <mfleming+rpm@thatfleminggent.com> 1.38-1
Michael Fleming dfcc570
- New upstream update (fixes some segfaults and .au timezone breakage)
Michael Fleming dfcc570
4d60a76
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36-2
4d60a76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
4d60a76
Michael Fleming 46e26bb
* Thu Aug 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.36-1
Michael Fleming 46e26bb
- New upstream update
Michael Fleming 46e26bb
Michael Fleming 7270113
* Thu Aug 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.34-1
Michael Fleming 7270113
- New upstream update
Michael Fleming 7270113
- Source0 updated (new upstream maintainer)
Michael Fleming 7270113
Michael Fleming 9a0b5f9
* Sun Apr 13 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.31-1
Michael Fleming 9a0b5f9
- New upstream update
Michael Fleming 9a0b5f9
be8d80f
* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.30-3
Michael Fleming 9a0b5f9
- Rebuild for new perl
be8d80f
8ad70d3
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.30-2
8ad70d3
- Autorebuild for GCC 4.3
8ad70d3
Michael Fleming e8af2a3
* Mon Jan 28 2008 Michael Fleming <mfleming+rpm@enlartenment.com> 1.30-1
Michael Fleming e8af2a3
- Update to 1.30. This pulls in much of the PurePerl module for those
Michael Fleming e8af2a3
  using it (via third party repositories)
Michael Fleming e8af2a3
Michael Fleming 05ac8dd
* Mon Sep 3 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.28-4
Michael Fleming 05ac8dd
- Fix %%patch invocation to help avoid a bogus interpreter issue
Michael Fleming 05ac8dd
- First build for Extras
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Sun Aug 26 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.28-3
Michael Fleming 05ac8dd
- Actually apply the patch :-)
Michael Fleming 05ac8dd
- Apply consistency in macro usage
Michael Fleming 05ac8dd
- Remove explicit GeoIP dependency as it should be pulled in automagically
Michael Fleming 05ac8dd
- Patch to example/netspeed to avoid bogus interpreter
Michael Fleming 05ac8dd
- Update License to match current Fedora guidelines.
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Fri Jul 20 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.28-2
Michael Fleming 05ac8dd
- Patch out mysterious and ephemeral test failure
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Sun Jul 8 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.28-1
Michael Fleming 05ac8dd
- Update to 1.28
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Sun Jun 17 2007 Michael Fleming <mfleming+rpm@enlartenment.com> 1.27-4.mf
Michael Fleming 05ac8dd
- New URLs
Michael Fleming 05ac8dd
- Fix MakeMaker build requirement
Michael Fleming 05ac8dd
- Include test suite check
Michael Fleming 05ac8dd
- Add examples directory in documentation
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Sat Nov 4 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.27-3.mf
Michael Fleming 05ac8dd
- Fix version tag to go with my conventions
Michael Fleming 05ac8dd
- Bump for FC6
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Sun Feb 19 2006 Michael Fleming <mfleming+rpm@enlartenment.com> 1.27-2
Michael Fleming 05ac8dd
- Spin a version for Extras, removing the braindamage from my previous
Michael Fleming 05ac8dd
  releases.
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Fri Sep 9 2005 mfleming@enlartenment.com - 1.27-1.fc4.mf
Michael Fleming 05ac8dd
- 1.27
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Wed Aug 3 2005 mfleming@enlartenment.com - 1.26-2.fc4.mf
Michael Fleming 05ac8dd
- Rebuilt against new geoip version
Michael Fleming 05ac8dd
Michael Fleming 05ac8dd
* Sun Jun 12 2005 mfleming@enlartenment.com - 1.26-1.fc4.mf
Michael Fleming 05ac8dd
- Initial release
Michael Fleming 05ac8dd