From 995bc9e64b6890de5f92630c7a77a53eb77195a4 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Mon, 30 Jun 2003 15:08:42 +0000 Subject: [PATCH] - finished (tests off - they use network and require some hostnames present) Changed files: perl-Geo-IP.spec -> 1.2 --- perl-Geo-IP.spec | 52 +++++++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 18 deletions(-) diff --git a/perl-Geo-IP.spec b/perl-Geo-IP.spec index 21a4ad7..34a5e9c 100644 --- a/perl-Geo-IP.spec +++ b/perl-Geo-IP.spec @@ -1,44 +1,55 @@ # # Conditional build: -# _without_tests - do not perform "make test" +# _with_tests - perform "make test" (requires working DNS - but may fail anyway, +# because of some NXDOMAIN) # -# ToDo: -# - make the package build even with tests -# - summary / descriptions %include /usr/lib/rpm/macros.perl %define pdir Geo %define pnam IP -Summary: - -Summary(pl): - +Summary: Geo::IP - look up country by IP Address +Summary(pl): Geo::IP - odszukanie kraju po adresie IP Name: perl-%{pdir}-%{pnam} Version: 1.15 Release: 0.1 License: GPL Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz +BuildRequires: GeoIP-devel BuildRequires: perl-devel >= 5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 -BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description +This module uses a file based database. This database simply contains +IP blocks as keys, and countries as values. This database should be +more complete and accurate than reverse DNS lookups. + +This module can be used to automatically select the geographically +closest mirror, to analyze your web server logs to determine the +countries of your visitors, for credit card fraud detection, and for +software export controls. %description -l pl +Ten modu³ u¿ywa bazy danych w postaci pliku. W bazie tej adresy IP s± +kluczami, a pañstwa warto¶ciami. Powinna ona byæ dok³adniejsza ni¿ +sprawdzanie odwrotnego DNS. + +Ta biblioteka mo¿e byæ u¿ywana do automatycznego wyboru najbli¿szego +geograficznie mirrora, analizy logów serwera WWW w celu okre¶lenia +kraju, z którego pochodz± odwiedzaj±cy, do wykrywania oszustw +dotycz±cych kart kredytowych oraz kontroli eksportu oprogramowania. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build -# Don't use pipes here: they generally don't work. Apply a patch. %{__perl} Makefile.PL \ - INSTALLDIRS=vendor \ - LIBS="-L/usr/lib" \ - INC='-I/usr/include' -%{__make} -# if module isn't noarch, use: -# %{__make} OPTIMIZE="%{rpmcflags}" + INSTALLDIRS=vendor + +%{__make} \ + OPTIMIZE="%{rpmcflags}" -%{!?_without_tests:%{__make} test} +%{?_with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT @@ -52,7 +63,12 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README -# use macros: -#%%{perl_vendorlib}/... -%{perl_vendorarch}/* +%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/* -- 2.44.0