From 55d662646dfbdc7482c807471788d65776fceba2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Sun, 25 Apr 2004 20:23:42 +0000 Subject: [PATCH] - new style bconds Changed files: perl-Readonly.spec -> 1.16 --- perl-Readonly.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/perl-Readonly.spec b/perl-Readonly.spec index e271629..b29c2e1 100644 --- a/perl-Readonly.spec +++ b/perl-Readonly.spec @@ -1,6 +1,6 @@ # # 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 Readonly @@ -15,7 +15,7 @@ Source0: http://www.cpan.org/authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz # Source0-md5: 0acef3a995ac9ecf575f66a726d638f4 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: perl-devel >= 5.6.1 -%if %{?_without_tests:0}%{!?_without_tests:1} +%if %{with tests} BuildRequires: perl-Test-Simple BuildRequires: perl-Test-Harness %endif @@ -41,14 +41,16 @@ wy %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor + %{__make} -%{!?_without_tests:%{__make} test} +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT -- 2.44.0