]> git.pld-linux.org Git - packages/perl-Geo-IP.git/commitdiff
- finished (tests off - they use network and require some hostnames present)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 30 Jun 2003 15:08:42 +0000 (15:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Geo-IP.spec -> 1.2

perl-Geo-IP.spec

index 21a4ad77899808dacaa9e01e2787114bfa1aea55..34a5e9c75262a68c6872031f8a3f556410ae4352 100644 (file)
@@ -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/*
This page took 0.03535 seconds and 4 git commands to generate.