3 %bcond_with tests # perform "make test"
4 # (requires working DNS - but may fail anyway, because of some NXDOMAIN)
8 Summary: Geo::IP - look up country by IP Address
9 Summary(pl.UTF-8): Geo::IP - odszukanie kraju po adresie IP
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: da22ae4cc1362f5460d6b0972e5e330b
18 URL: http://search.cpan.org/dist/Geo-IP/
19 BuildRequires: GeoIP-devel
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module uses a file based database. This database simply contains
26 IP blocks as keys, and countries as values. This database should be
27 more complete and accurate than reverse DNS lookups.
29 This module can be used to automatically select the geographically
30 closest mirror, to analyze your web server logs to determine the
31 countries of your visitors, for credit card fraud detection, and for
32 software export controls.
34 %description -l pl.UTF-8
35 Ten moduł używa bazy danych w postaci pliku. W bazie tej adresy IP są
36 kluczami, a państwa wartościami. Powinna ona być dokładniejsza niż
37 sprawdzanie odwrotnego DNS.
39 Ta biblioteka może być używana do automatycznego wyboru najbliższego
40 geograficznie mirrora, analizy logów serwera WWW w celu określenia
41 kraju, z którego pochodzą odwiedzający, do wykrywania oszustw
42 dotyczących kart kredytowych oraz kontroli eksportu oprogramowania.
45 %setup -q -n %{pdir}-%{pnam}-%{version}
48 %{__perl} Makefile.PL \
53 OPTIMIZE="%{rpmcflags}"
55 %{?with_tests:%{__make} test}
58 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
62 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/IP/Record.pod
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %dir %{perl_vendorarch}/Geo
71 %{perl_vendorarch}/Geo/*.pm
72 %dir %{perl_vendorarch}/Geo/IP
73 %{perl_vendorarch}/Geo/IP/*.pm
74 %dir %{perl_vendorarch}/auto/Geo
75 %dir %{perl_vendorarch}/auto/Geo/IP
76 %attr(755,root,root) %{perl_vendorarch}/auto/Geo/IP/IP.so
77 %{_mandir}/man3/Geo::*.3pm*