@@ -20,7 +20,9 @@ BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(bash-completion)
+%ifarch x86_64
BuildRequires: pkgconfig(libpmem)
+%endif
%description
Utility library for managing the "libnvdimm" subsystem. The "libnvdimm"
@@ -91,7 +93,11 @@ control API for these devices.
%build
echo "VERSION" > version
./autogen.sh
+%ifarch x86_64
%configure --disable-static --enable-local --disable-silent-rules --with-libpmem
+%else
+%configure --disable-static --enable-local --disable-silent-rules
+%endif
make %{?_smp_mflags}
%install
Similar to the kernel requires CONFIG_ARCH_HAS_PMEM_API for pmem support, userspace requires libpmem which to date is only packaged for x86_64. Cc: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- ndctl.spec.in | 6 ++++++ 1 file changed, 6 insertions(+)