diff --git a/hyper-v.spec b/hyper-v.spec index 1ee5855..aaf93ab 100644 --- a/hyper-v.spec +++ b/hyper-v.spec @@ -113,6 +113,7 @@ gcc \ -include %include_uapi_linux_hyperv.h \ -o %hv_fcopy_daemon +%ifarch %ix86 x86_64 gcc \ $RPM_OPT_FLAGS \ -Wno-unused-variable \ @@ -124,6 +125,7 @@ gcc \ %hv_fcopy_uio_daemon.c \ -include %include_uapi_linux_hyperv.h \ -o %hv_fcopy_uio_daemon +%endif %install # It is not a callable app anyway, so move it out of the way @@ -133,7 +135,9 @@ mkdir -p %buildroot%_sbindir install -m755 %hv_kvp_daemon %buildroot${bindir} install -m755 %hv_vss_daemon %buildroot${bindir} install -m755 %hv_fcopy_daemon %buildroot${bindir} +%ifarch %ix86 x86_64 install -m755 %hv_fcopy_uio_daemon %buildroot${bindir} +%endif cp -avL %{S:0} %buildroot%_sbindir/lsvmbus chmod 0755 %buildroot%_sbindir/lsvmbus cp -avL %{S:20} %buildroot${bindir}/hv_get_dhcp_info