From: Adam Gołębiowski Date: Sun, 25 Apr 2004 20:23:42 +0000 (+0000) Subject: - new style bconds X-Git-Tag: AC-STABLE~3 X-Git-Url: https://git.pld-linux.org/?p=packages%2Fperl-Readonly.git;a=commitdiff_plain;h=55d662646dfbdc7482c807471788d65776fceba2 - new style bconds Changed files: perl-Readonly.spec -> 1.16 --- 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