[packages/pciutils] - handle udev/hwdb support (unlike in usbutils, pci.ids are still used and hwdb is used as fallback

qboosh qboosh at pld-linux.org
Thu Nov 13 17:26:07 CET 2014


commit 13ddb37566db16f848b0d4d65501cfb4c1aa8ebd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Nov 13 17:26:28 2014 +0100

    - handle udev/hwdb support (unlike in usbutils, pci.ids are still used and hwdb is used as fallback before online lookup)

 pciutils.spec | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/pciutils.spec b/pciutils.spec
index 455b196..88793b1 100644
--- a/pciutils.spec
+++ b/pciutils.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	udev	# device names resolving fallback using HWDB
+#
 Summary:	Linux PCI utilities
 Summary(cs.UTF-8):	Linuxové utility pro PCI
 Summary(da.UTF-8):	PCI-bus-relaterede værktøjer
@@ -31,6 +35,7 @@ Patch3:		%{name}-pci_init-error.patch
 Patch4:		hwdata.patch
 URL:		http://mj.ucw.cz/pciutils.html
 BuildRequires:	kmod-devel
+%{?with_udev:BuildRequires:	udev-devel}
 BuildRequires:	zlib-devel
 Requires:	hwdata >= 0.243-2
 Conflicts:	xorg-lib-libpciaccess < 0.13.1-2
@@ -264,7 +269,7 @@ Statyczna wersja biblioteki PCI.
 ln -sf lib pci
 
 %build
-%define	config	ZLIB=yes DNS=yes SHARED=yes PCI_IDS=
+%define	config	ZLIB=yes DNS=yes SHARED=yes LIBKMOD=yes %{?with_udev:HWDB=yes}%{!?with_udev:HWDB=no} PCI_IDS=
 
 %{__make} lib/libpci.a \
 	%{config} SHARED=no \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pciutils.git/commitdiff/13ddb37566db16f848b0d4d65501cfb4c1aa8ebd



More information about the pld-cvs-commit mailing list