#
# Conditional build:
-# _without_tests - do not perform "make test"
+%bcond_without tests # don't perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir AI
# Source0-md5: eaed56886a22506b8ed5f6dab88e7060
BuildRequires: perl-devel >= 5.6
BuildRequires: rpm-perlprov >= 4.1-13
-%if %{?_without_tests:0}%{!?_without_tests:1}
-BuildRequires: perl-GraphViz
-%endif
+%{?with_test:BuildRequires: perl-GraphViz}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT