+#
+# Conditional build:
+%bcond_without tests # don't perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir Scalar
%define pnam List-Utils
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 2b1ccf73ba7f290021587b3a681a9e69
+BuildRequires: perl-devel >= 5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
-BuildRequires: perl-devel >= 5.005
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%build
%{__perl} Makefile.PL -xs \
INSTALLDIRS=vendor
-%{__make} OPTIMIZE="%{rpmcflags}"
-#%%{__make} test
+%{__make} \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?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