#
# 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 POE
# Source0-md5: 9d13ce4eb4d3c1ce308478952b68e1e5
BuildRequires: perl-devel >= 5.6
BuildRequires: rpm-perlprov >= 4.1-13
-%if %{!?_without_tests:1}0
+%if %{with tests}
BuildRequires: perl(Time::ParseDate)
BuildRequires: perl-POE >= 0.24
BuildRequires: perl-Test-Simple
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT