#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir Readonly
# Source0-md5: 0acef3a995ac9ecf575f66a726d638f4
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: perl-devel >= 5.6.1
-%if %{?_without_tests:0}%{!?_without_tests:1}
+%if %{with tests}
BuildRequires: perl-Test-Simple
BuildRequires: perl-Test-Harness
%endif
%build
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
+
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?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