+#
+# 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
-Release: 2
-License: GPL/Artistic
+Version: 0.04
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: c14e55c571adbf1cd181aae61d99ab9e
+# Source0-md5: 43b986ad7d5d186a9a43d2d69a2ef327
BuildRequires: perl-devel >= 5
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
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}
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
%{__make}
-#%%{__make} test
+
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT