Fix libpmem dependency for non-x86 archs
This commit is contained in:
parent
c9457794b4
commit
bd43ff548d
11
ndctl.spec
11
ndctl.spec
@ -1,6 +1,6 @@
|
||||
Name: ndctl
|
||||
Version: 58.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Manage "libnvdimm" subsystem devices (Non-volatile Memory)
|
||||
License: GPLv2
|
||||
Group: System Environment/Base
|
||||
@ -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 "58.1" > 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
|
||||
@ -146,6 +152,9 @@ make check
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-2
|
||||
- gate libpmem dependency on x86_64
|
||||
|
||||
* Fri Sep 08 2017 Dan Williams <dan.j.williams@intel.com> - 58.1-1
|
||||
- add libpmem dependency
|
||||
- release v58.1
|
||||
|
Loading…
Reference in New Issue
Block a user