1 # This is overridden when we call rpmbuild in the Makefile so you
2 # don't need to set it here (unless you are not using the Makefile).
3 #global vddkdir /some/path
5 # The minimum version of nbdkit that we can build/install with.
6 %global minimum_version 1.1.2
9 Name: nbdkit-plugin-vddk
10 # NB: The Version field is parsed out of this file by Makefile, so it
11 # can only be a simple number. Also it must correspond to an nbdkit
12 # released version (ideally the latest version).
16 Summary: VDDK plugin for nbdkit
19 Source0: nbdkit-%{version}.tar.gz
21 BuildRequires: nbdkit-devel >= %{minimum_version}
23 Requires: nbdkit >= %{minimum_version}
25 # Make sure the final package doesn't actually depend on the
27 %global __requires_exclude .*libvixDiskLib\\.so.*
31 This package contains the VDDK plugin for nbdkit.
32 NB: it does not contain VDDK itself. You have to download that
37 %setup -q -n nbdkit-%{version}
47 --without-libguestfs \
48 --with-vddk=%{vddkdir}
52 # Note we're only building the plugin, and we want to build it
53 # against the installed nbdkit.
60 mkdir -p $RPM_BUILD_ROOT%{_libdir}/nbdkit/plugins
61 mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
66 # Kill libtool files with fire.
67 find $RPM_BUILD_ROOT -name '*.la' -delete
71 %{_libdir}/nbdkit/plugins/nbdkit-vddk-plugin.so
72 %{_mandir}/man1/nbdkit-vddk-plugin.1*