Add symlink to pnp_wait.exe from the virt tools directory

For background on this change see:
https://bugzilla.redhat.com/show_bug.cgi?id=1788823
This commit is contained in:
Richard W.M. Jones 2022-03-09 11:50:49 +00:00
parent f7fec29fc3
commit 1dc352f4e4

View File

@ -230,11 +230,13 @@ make V=1 %{?_smp_mflags}
# Delete libtool crap.
find $RPM_BUILD_ROOT -name '*.la' -delete
# Virt-tools data directory. This contains a symlink to rhsrvany.exe
# which is satisfied by the dependency on mingw32-srvany.
# Virt-tools data directory. This contains symlinks to rhsrvany.exe
# and pnp_wait.exe which are satisfied by the dependency on
# mingw32-srvany.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/virt-tools
pushd $RPM_BUILD_ROOT%{_datadir}/virt-tools
ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/rhsrvany.exe
ln -sf /usr/i686-w64-mingw32/sys-root/mingw/bin/pnp_wait.exe
popd
# Find locale files.