]> git.openfabrics.org - ~shefty/libibverbs.git/commitdiff
Make libsysfs dependency more robust in spec file
authorRoland Dreier <rolandd@cisco.com>
Mon, 10 Apr 2006 04:57:58 +0000 (04:57 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:36:00 +0000 (11:36 -0800)
Depend on %{_includedir}/sysfs/libsysfs.h instead of sysfs-devel to be
friendlier to building on SuSE distros.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
libibverbs.spec.in

index 70eb576b231d81b55b8482ff680b177c64e215cc..fb3b95733ed3b4a323efb280a34b171f96c8fe8b 100644 (file)
@@ -13,7 +13,7 @@ Url: http://openib.org/
 Source: http://openib.org/downloads/libibverbs-1.0.3.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires: sysfsutils-devel
+BuildRequires: %{_includedir}/sysfs/libsysfs.h
 
 %description
 libibverbs is a library that allows userspace processes to use
@@ -27,7 +27,7 @@ also be installed.
 %package devel
 Summary: Development files for the libibverbs library
 Group: System Environment/Libraries
-Requires: %{name} = %{version}-%{release} sysfsutils-devel
+Requires: %{name} = %{version}-%{release} %{_includedir}/sysfs/libsysfs.h
 
 %description devel
 Static libraries and header files for the libibverbs verbs library.