%define pdir Geo
%define pnam IP
Summary: Geo::IP - look up country by IP Address
-Summary(pl.UTF-8): Geo::IP - odszukanie kraju po adresie IP
+Summary(pl.UTF-8): Geo::IP - odszukanie kraju po adresie IP
Name: perl-Geo-IP
-Version: 1.27
-Release: 1
+Version: 1.51
+Release: 3
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: 10ec3c74808ffbca871eca4db77209bd
+# Source0-md5: da22ae4cc1362f5460d6b0972e5e330b
URL: http://search.cpan.org/dist/Geo-IP/
BuildRequires: GeoIP-devel
BuildRequires: perl-devel >= 1:5.8.0
INSTALLDIRS=vendor
%{__make} \
+ CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"
%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
-
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/IP/Record.pod
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc Changes README
+%doc Changes
%dir %{perl_vendorarch}/Geo
%{perl_vendorarch}/Geo/*.pm
%dir %{perl_vendorarch}/Geo/IP
%{perl_vendorarch}/Geo/IP/*.pm
%dir %{perl_vendorarch}/auto/Geo
%dir %{perl_vendorarch}/auto/Geo/IP
-%{perl_vendorarch}/auto/Geo/IP/IP.bs
%attr(755,root,root) %{perl_vendorarch}/auto/Geo/IP/IP.so
-%{_mandir}/man3/*
+%{_mandir}/man3/Geo::*.3pm*