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:
parent
0aae81327c
commit
7b26d93b45
@ -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)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user