]> git.pld-linux.org Git - packages/perl-Net-Whois.git/blobdiff - perl-Net-Whois.spec
- release 9
[packages/perl-Net-Whois.git] / perl-Net-Whois.spec
index 23ff2b26987251170bc251f07c4058836931585f..3afdd20ba7079cbf37fc0cb7c45b1345b11ebed2 100644 (file)
@@ -1,36 +1,46 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make test" (uses network!)
+#
 %include       /usr/lib/rpm/macros.perl
-%define        pdir    Net
-%define        pnam    Whois
+%define                pdir    Net
+%define                pnam    Whois
 Summary:       Net::Whois perl module
-Summary(pl):   Modu³ perla Net::Whois
+Summary(pl.UTF-8):     Moduł perla Net::Whois
 Name:          perl-Net-Whois
 Version:       1.9
-Release:       6
-License:       GPL
+Release:       9
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: rpm-perlprov >= 3.0.3-16
-BuildRequires: perl >= 5.6
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: c461a0f8991d9df848f66c4189971af7
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: perl-devel >= 1:5.8.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Net::Whois - Get and parse "whois" data from InterNIC.
 
-%description -l pl
-Net::Whois - wsparcie dla us³ugi "whois".
+%description -l pl.UTF-8
+Net::Whois - wsparcie dla usługi "whois".
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
 
+%{?with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -38,5 +48,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%{perl_sitelib}/Net/Whois.pm
+%{perl_vendorlib}/Net/Whois.pm
 %{_mandir}/man3/*
This page took 0.076227 seconds and 4 git commands to generate.