From: ankry Date: Tue, 20 Apr 2004 09:46:27 +0000 (+0000) Subject: - bcond fixes/porting X-Git-Tag: auto/ac/perl-CGI-Session-3_95-1~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=61b40e384cf9ce09cafba29bbbb55f2cf98b39a4;p=packages%2Fperl-CGI-Session.git - bcond fixes/porting Changed files: perl-CGI-Session.spec -> 1.17 --- diff --git a/perl-CGI-Session.spec b/perl-CGI-Session.spec index 5a58b3b..266a095 100644 --- a/perl-CGI-Session.spec +++ b/perl-CGI-Session.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 CGI @@ -17,7 +17,7 @@ Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version # Source0-md5: fe9e46496c7c711c54ca13209ded500b BuildRequires: perl-devel >= 5.6 BuildRequires: rpm-perlprov >= 4.1-13 -%if 0%{!?_without_tests:1} +%if %{with tests} BuildRequires: perl-Digest-MD5 BuildRequires: perl-DB_File BuildRequires: perl-FreezeThaw @@ -42,7 +42,7 @@ zarz INSTALLDIRS=vendor %{__make} -%{!?_without_tests:%{__make} test} +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT