Limit VDDK plugin to i386 and x86-64.

These are the only architectures for which VMware provides
this library.
This commit is contained in:
Richard W.M. Jones 2018-07-24 20:57:09 +01:00
parent b160c01694
commit aa1623f194

View File

@ -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 <rjones@redhat.com> - 1.5.1-2
- Enable VDDK plugin.
- Enable VDDK plugin on x86-64 only.
* Fri Jul 20 2018 Richard W.M. Jones <rjones@redhat.com> - 1.5.1-1
- New upstream version 1.5.1.