Replace loop by a single invocation with multiple arguments

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-02-06 11:27:12 +01:00
parent b15359d1d4
commit ceb56aabcb

View File

@ -396,13 +396,10 @@ echo ".so man8/hwclock.8" > %{buildroot}%{_mandir}/man8/clock.8
# unsupported on SPARCs
%ifarch %{sparc}
for I in /sbin/sfdisk \
%{_mandir}/man8/sfdisk.8* \
/sbin/cfdisk \
%{_mandir}/man8/cfdisk.8*; do
rm -f %{buildroot}$I
done
rm -f %{buildroot}/sbin/sfdisk \
%{buildroot}%{_mandir}/man8/sfdisk.8* \
%{buildroot}/sbin/cfdisk \
%{buildroot}%{_mandir}/man8/cfdisk.8*
%endif
# we install getopt-*.{bash,tcsh} by doc directive