]>
Commit | Line | Data |
---|---|---|
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 | 8 | Summary: Geo::IP - look up country by IP Address |
cf20d888 | 9 | Summary(pl.UTF-8): Geo::IP - odszukanie kraju po adresie IP |
42d302f5 | 10 | Name: perl-Geo-IP |
e223e4f6 | 11 | Version: 1.51 |
2c601073 | 12 | Release: 4 |
4999d693 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
64447d6b | 15 | Group: Development/Languages/Perl |
749832b6 | 16 | Source0: http://www.cpan.org/modules/by-module/Geo/%{pdir}-%{pnam}-%{version}.tar.gz |
e223e4f6 | 17 | # Source0-md5: da22ae4cc1362f5460d6b0972e5e330b |
749832b6 | 18 | URL: http://search.cpan.org/dist/Geo-IP/ |
995bc9e6 | 19 | BuildRequires: GeoIP-devel |
94f28686 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
64447d6b | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
64447d6b AG |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
995bc9e6 JB |
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. | |
28 | ||
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. | |
64447d6b | 33 | |
fd4af655 JR |
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ż | |
995bc9e6 JB |
37 | sprawdzanie odwrotnego DNS. |
38 | ||
fd4af655 JR |
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. | |
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 | |
58 | rm -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 |
65 | rm -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* |