]> git.pld-linux.org Git - packages/perl-Class-WhiteHole.git/blobdiff - perl-Class-WhiteHole.spec
- bconds added
[packages/perl-Class-WhiteHole.git] / perl-Class-WhiteHole.spec
index c41c4c9f26ab45de45ce706ae414f45bc246fd7f..eea5fbbecfaf0b570f171087e51f2818bc6747a7 100644 (file)
@@ -1,16 +1,22 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
 %define        pdir    Class
 %define        pnam    WhiteHole
 Summary:       %{pdir}::%{pnam} - prevent from inheriting AUTOLOAD
 Summary(pl):   %{pdir}::%{pnam} - ochrona przed dziedziczeniem AUTOLOAD
 Name:          perl-Class-WhiteHole
-Version:       0.03
+Version:       0.04
 Release:       1
-License:       GPL/Artistic
+# 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: perl >= 5
-BuildRequires: rpm-perlprov >= 3.0.3-16
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 43b986ad7d5d186a9a43d2d69a2ef327
+BuildRequires: perl-devel >= 5
+BuildRequires: rpm-perlprov >= 4.1-13
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -34,14 +40,15 @@ Czasami chcesz unikn
 odziedzicz po Class::WhiteHole.  Ka¿de wywo³anie nieistniej±cej metody
 spowoduje zwyczajn± informacjê o b³êdzie perla.
 
-
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
 %{__make}
-#%{__make} test
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -52,5 +59,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{perl_sitelib}/%{pdir}/*.pm
+%{perl_vendorlib}/%{pdir}/*.pm
 %{_mandir}/man3/*
This page took 0.071557 seconds and 4 git commands to generate.