+#
+# 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)
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
%files
%defattr(644,root,root,755)
-%{perl_sitelib}/%{pdir}/*.pm
+%{perl_vendorlib}/%{pdir}/*.pm
%{_mandir}/man3/*