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
This commit is contained in:
Petr Písař 2023-11-23 08:28:24 +01:00
parent 0aae81327c
commit 7b26d93b45

View File

@ -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)"