From aa1623f19431edc7be21ae443a78ddf78f39ab67 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 24 Jul 2018 20:57:09 +0100 Subject: [PATCH] Limit VDDK plugin to i386 and x86-64. These are the only architectures for which VMware provides this library. --- nbdkit.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nbdkit.spec b/nbdkit.spec index 91b94a9..6feef62 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -385,6 +385,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} This package lets you write Tcl plugins for %{name}. +%ifarch %{ix86} x86_64 %package plugin-vddk Summary: VMware VDDK plugin for %{name} License: BSD @@ -395,6 +396,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description plugin-vddk This package is a plugin for %{name} which connects to VMware VDDK for accessing VMware disks and servers. +%endif %package plugin-xz @@ -554,6 +556,13 @@ popd # Delete libtool crap. find $RPM_BUILD_ROOT -name '*.la' -delete +# Delete the VDDK plugin on !x86 architectures since it is not +# applicable there. +%ifnarch %{ix86} x86_64 +rm $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/nbdkit-vddk-plugin.so +rm $RPM_BUILD_ROOT%{_mandir}/man1/nbdkit-vddk-plugin.1* +%endif + %check # Workaround for broken libvirt (RHBZ#1138604). @@ -730,11 +739,13 @@ popd %{_mandir}/man3/nbdkit-tcl-plugin.3* +%ifarch %{ix86} x86_64 %files plugin-vddk %doc README %license LICENSE %{_libdir}/%{name}/plugins/nbdkit-vddk-plugin.so %{_mandir}/man1/nbdkit-vddk-plugin.1* +%endif %files plugin-xz @@ -794,7 +805,7 @@ popd %changelog * Tue Jul 24 2018 Richard W.M. Jones - 1.5.1-2 -- Enable VDDK plugin. +- Enable VDDK plugin on x86-64 only. * Fri Jul 20 2018 Richard W.M. Jones - 1.5.1-1 - New upstream version 1.5.1.