#
# 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 Mail
%define pnam Box-Parser-C
Summary: Mail::Box::Parser::C - reading messages from file using C (XS)
Summary(pl): Mail::Box::Parser::C - czytanie wiadomo¶ci z pliku z u¿yciem C (XS)
Name: perl-Mail-Box-Parser-C
-Version: 2.034
+Version: 3.003
Release: 1
License: ?
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5: fdd05fe338ae164b997e272d604575d9
+# Source0-md5: ce5b56053c94f77baa78bb431a6323c3
BuildRequires: perl-devel >= 5.6
BuildRequires: rpm-perlprov >= 4.1-13
-%if %{!?_without_tests:1}0
+%if %{with tests}
BuildRequires: perl-Mail-Box >= 2.032
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
INSTALLDIRS=vendor
%{__make}
-%{!?_without_tests:%{__make} test}
+%{?with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT