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