diff mbox

[02/11] ndctl: use pkgconfig() in ndctl.spec

Message ID 20150905013127.28464.22041.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State Accepted
Commit ce92642b4356
Headers show

Commit Message

Dan Williams Sept. 5, 2015, 1:31 a.m. UTC
Different distributions name their provider for libudev, libuuid, and
libkmod with different names.  Let pkgconfig figure this out.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 contrib/ndctl.spec.in |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/contrib/ndctl.spec.in b/contrib/ndctl.spec.in
index b4cabb5f5312..cfe111525da4 100644
--- a/contrib/ndctl.spec.in
+++ b/contrib/ndctl.spec.in
@@ -17,9 +17,9 @@  Source0:        https://github.com/pmem/ndctl/archive/%{name}-%{version}.tar.gz
 BuildRequires: libtool
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: systemd-devel
-BuildRequires: libuuid-devel
-BuildRequires: kmod-devel
+BuildRequires: pkgconfig(libudev)
+BuildRequires: pkgconfig(uuid)
+BuildRequires: pkgconfig(libkmod)
 
 %description
 Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"