]> git.pld-linux.org Git - packages/perl-Geo-IP.git/blame - perl-Geo-IP.spec
rebuild with perl 5.32
[packages/perl-Geo-IP.git] / perl-Geo-IP.spec
CommitLineData
64447d6b
AG
1#
2# Conditional build:
48b1c251 3%bcond_with tests # perform "make test"
4 # (requires working DNS - but may fail anyway, because of some NXDOMAIN)
64447d6b 5#
cdf599a1 6%define pdir Geo
7%define pnam IP
995bc9e6 8Summary: Geo::IP - look up country by IP Address
cf20d888 9Summary(pl.UTF-8): Geo::IP - odszukanie kraju po adresie IP
42d302f5 10Name: perl-Geo-IP
e223e4f6 11Version: 1.51
2c601073 12Release: 4
4999d693 13# same as perl
14License: GPL v1+ or Artistic
64447d6b 15Group: Development/Languages/Perl
749832b6 16Source0: http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz
e223e4f6 17# Source0-md5: da22ae4cc1362f5460d6b0972e5e330b
749832b6 18URL: http://search.cpan.org/dist/Geo-IP/
995bc9e6 19BuildRequires: GeoIP-devel
94f28686 20BuildRequires: perl-devel >= 1:5.8.0
64447d6b 21BuildRequires: rpm-perlprov >= 4.1-13
64447d6b
AG
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
995bc9e6
JB
25This module uses a file based database. This database simply contains
26IP blocks as keys, and countries as values. This database should be
27more complete and accurate than reverse DNS lookups.
28
29This module can be used to automatically select the geographically
30closest mirror, to analyze your web server logs to determine the
31countries of your visitors, for credit card fraud detection, and for
32software export controls.
64447d6b 33
fd4af655
JR
34%description -l pl.UTF-8
35Ten moduł używa bazy danych w postaci pliku. W bazie tej adresy IP są
36kluczami, a państwa wartościami. Powinna ona być dokładniejsza niż
995bc9e6
JB
37sprawdzanie odwrotnego DNS.
38
fd4af655
JR
39Ta biblioteka może być używana do automatycznego wyboru najbliższego
40geograficznie mirrora, analizy logów serwera WWW w celu określenia
41kraju, z którego pochodzą odwiedzający, do wykrywania oszustw
42dotyczących kart kredytowych oraz kontroli eksportu oprogramowania.
64447d6b
AG
43
44%prep
45%setup -q -n %{pdir}-%{pnam}-%{version}
46
47%build
64447d6b 48%{__perl} Makefile.PL \
995bc9e6
JB
49 INSTALLDIRS=vendor
50
51%{__make} \
abf7e99d 52 CC="%{__cc}" \
995bc9e6 53 OPTIMIZE="%{rpmcflags}"
64447d6b 54
48b1c251 55%{?with_tests:%{__make} test}
64447d6b
AG
56
57%install
58rm -rf $RPM_BUILD_ROOT
64447d6b
AG
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
f0b27c9c
ER
62%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Geo/IP/Record.pod
63
64447d6b
AG
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
32a0ffb9 69%doc Changes
995bc9e6
JB
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
995bc9e6 76%attr(755,root,root) %{perl_vendorarch}/auto/Geo/IP/IP.so
f0b27c9c 77%{_mandir}/man3/Geo::*.3pm*
This page took 0.609702 seconds and 4 git commands to generate.