[packages/pldcpan] - no single-line bcond for make test call, so it's easier to enhance
qboosh
qboosh at pld-linux.org
Sat Jun 13 21:06:17 CEST 2026
commit fc8a50c8f8f4141d18e30069858628fa3ece13c4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jun 13 21:06:38 2026 +0200
- no single-line bcond for make test call, so it's easier to enhance
pldcpan.pl | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/pldcpan.pl b/pldcpan.pl
index 92420a0..8474080 100755
--- a/pldcpan.pl
+++ b/pldcpan.pl
@@ -878,7 +878,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
installdirs=vendor
./Build
-%{?with_tests:./Build test}
+%if %{with tests}
+./Build test
+%endif
[%- ELSIF uses_makemaker %]
%{__perl} Makefile.PL \
INSTALLDIRS=vendor
@@ -886,7 +888,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"[% END %]
-%{?with_tests:%{__make} test}
+%if %{with tests}
+%{__make} test
+%endif
[%- ELSE %]
%{__perl} -MExtUtils::MakeMaker -wle 'WriteMakefile(NAME=>"[% parts_joined %]")' \
INSTALLDIRS=vendor
@@ -894,7 +898,9 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
CC="%{__cc}" \
OPTIMIZE="%{rpmcflags}"[% END %]
-%{?with_tests:%{__make} test}
+%if %{with tests}
+%{__make} test
+%endif
[%- END %]
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pldcpan.git/commitdiff/fc8a50c8f8f4141d18e30069858628fa3ece13c4
More information about the pld-cvs-commit
mailing list