[packages/pciutils] - added hwdata_check bcond
qboosh
qboosh at pld-linux.org
Sat Mar 23 08:40:12 CET 2013
commit 9bba442836c5da9fadde041bec5e264f07c78eb2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 23 08:40:08 2013 +0100
- added hwdata_check bcond
pciutils.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/pciutils.spec b/pciutils.spec
index 129c014..acb46a7 100644
--- a/pciutils.spec
+++ b/pciutils.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without hwdata_check # don't check hwdata pci.ids freshness
+#
Summary: Linux PCI utilities
Summary(cs.UTF-8): Linuxové utility pro PCI
Summary(da.UTF-8): PCI-bus-relaterede værktøjer
@@ -30,7 +34,7 @@ Patch2: %{name}-nowhich.patch
Patch3: %{name}-pci_init-error.patch
Patch4: hwdata.patch
URL: http://mj.ucw.cz/pciutils.html
-BuildRequires: hwdata >= 0.243-2
+%{?with_hwdata_check:BuildRequires: hwdata >= 0.243-2}
BuildRequires: zlib-devel
Requires: hwdata >= 0.243-2
Conflicts: xorg-lib-libpciaccess < 0.13.1-2
@@ -259,11 +263,13 @@ Statyczna wersja biblioteki PCI.
%patch3 -p1
%patch4 -p1
+%if %{with hwdata_check}
# paranoid check whether pci.ids in _sourcedir isn't too old
if [ pci.ids -nt %{hwdatadir}/pci.ids.gz ]; then
: pci.ids needs to be updated
exit 1
fi
+%endif
%{__rm} pci.ids
ln -sf lib pci
@@ -279,7 +285,7 @@ ln -sf lib pci
INCDIR=%{_includedir} \
LIBDIR=%{_libdir}
-rm -f lib/*.o lib/config.h lib/config.mk lib/libpci.pc
+%{__rm} lib/*.o lib/config.h lib/config.mk lib/libpci.pc
%{__make} \
%{config} \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/pciutils.git/commitdiff/9bba442836c5da9fadde041bec5e264f07c78eb2
More information about the pld-cvs-commit
mailing list