#
# Conditional build:
-# _with_tests - perform "make test"
+%bcond_with tests # perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir XML
BuildRequires: perl-XML-Parser >= 2.19
BuildRequires: rpm-perlprov >= 4.1-13
BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: perl-libxml-perl
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep 'perl(UNIVERSAL)'
INSTALLDIRS=vendor
%{__make}
-%{?_with_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT