#
# 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 Image
%define pnam Xbm
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 3a6cde06d6de70ee98fb1849ba18b385
BuildRequires: perl-devel >= 5.6
-%if %{?_without_tests:0}%{!?_without_tests:1}
+%if %{with tests}
BuildRequires: perl-Image-Base >= 1.06
%endif
BuildRequires: rpm-perlprov >= 4.1-13
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT