From 719f3a88e3fa50c02be597b43de0a662c26e08f0 Mon Sep 17 00:00:00 2001 From: ankry Date: Tue, 20 Apr 2004 10:08:06 +0000 Subject: [PATCH] - new bconds Changed files: perl-DBD-CSV.spec -> 1.40 --- perl-DBD-CSV.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/perl-DBD-CSV.spec b/perl-DBD-CSV.spec index 86f9f2f..5239d74 100644 --- a/perl-DBD-CSV.spec +++ b/perl-DBD-CSV.spec @@ -1,6 +1,7 @@ # # 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 DBD %define pnam CSV @@ -15,7 +16,7 @@ Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version # Source0-md5: 9a98138aee1c94747d86494ceb343c2b BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 -%if %{?_without_tests:0}%{!?_without_tests:1} +%if %{with tests} BuildRequires: perl-DBI BuildRequires: perl-SQL-Statement BuildRequires: perl-Text-CSV_XS @@ -45,7 +46,7 @@ najcz %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} -%{!?_without_tests:%{__make} test} +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -- 2.44.0