#
# 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 Locale
# Source0-md5: 88487388e3e24d5eb88b2ce253dbd0dc
BuildRequires: perl-devel >= 5.6
BuildRequires: rpm-perlprov >= 4.1-13
-%if %{?_without_tests:0}%{!?_without_tests:1}
+%if %{with tests}
BuildRequires: perl-Locale-Maketext
BuildRequires: perl-Regexp-Common
BuildRequires: perl-Test-Simple
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT