From 7b26d93b45f1bf1db45f8c7f493ed6843ce2337a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Thu, 23 Nov 2023 08:28:24 +0100 Subject: [PATCH] Fix removing POD tests on a perl bootstrap Install phase failed with: rm: cannot remove '/home/test/rpmbuild/BUILDROOT/perl-IPC-SysV-2.09-502.fc40.x86_64/usr/libexec/perl-IPC-SysV/t/pod*': No such file or directory --- perl-IPC-SysV.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-IPC-SysV.spec b/perl-IPC-SysV.spec index 0eba593..8aa4166 100644 --- a/perl-IPC-SysV.spec +++ b/perl-IPC-SysV.spec @@ -81,7 +81,9 @@ find %{buildroot} -type f -name '*.bs' -size 0 -delete # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} +%if %{with perl_IPC_SysV_enables_optional_test} && !%{defined perl_bootstrap} rm %{buildroot}%{_libexecdir}/%{name}/t/pod* +%endif cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"