OBS User unknown 2007-01-20 10:46:13 +00:00 committed by Git OBS Bridge
parent 4596a85af9
commit 033a5b6ec7
4 changed files with 59 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1e15c41ae071075cfe2cb9f38bee6768a98350a9bef6d17caa3ad7c38314b983
size 112474

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jan 20 01:36:12 CET 2007 - garloff@suse.de
- Change update-pciids to download to pci.ids.d/pci.ids.dist
and call merge-pciids if possible. [FATE 301145, bug 221276]
-------------------------------------------------------------------
Fri Oct 13 21:57:37 CEST 2006 - aj@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package pciutils (Version 2.2.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
@ -12,18 +12,19 @@
Name: pciutils
Version: 2.2.4
Release: 2
Release: 17
%define ver 2.2.4
Requires: pciutils-ids
Autoreqprov: on
Group: Hardware/Other
License: GPL
License: GNU General Public License (GPL)
Summary: PCI-utilities for Kernel version 2.2 and newer
URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{ver}.tar.gz
Patch0: %{name}-%{ver}-class.diff
Patch1: %{name}-%{ver}-noabort.diff
Patch2: %{name}-%{ver}-strip.diff
Patch3: update-pciutils-dist
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -41,7 +42,7 @@ pci.ids file.
Authors:
--------
Martin Mares <mj@suse.cz>
Martin Mares <mj@ucw.cz>
%package devel
Group: Development/Libraries/C and C++
@ -55,13 +56,14 @@ development using the PCI-utilities.
Authors:
--------
Martin Mares <mj@suse.cz>
Martin Mares <mj@ucw.cz>
%prep
%setup -q -n %{name}-%{ver}
%patch0
%patch1
%patch2
%patch3 -p1
%build
make OPT="$RPM_OPT_FLAGS -Wall" PREFIX=%{_prefix} SBINDIR=/sbin
@ -90,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/libpci.a
%changelog -n pciutils
* Sat Jan 20 2007 - garloff@suse.de
- Change update-pciids to download to pci.ids.d/pci.ids.dist
and call merge-pciids if possible. [FATE 301145, bug 221276]
* Fri Oct 13 2006 - aj@suse.de
- Fix to build (remove pci.ids.gz as well).
* Fri Oct 13 2006 - mjancar@suse.cz

43
update-pciutils-dist Normal file
View File

@ -0,0 +1,43 @@
Index: pciutils-2.2.4/update-pciids.sh
===================================================================
--- pciutils-2.2.4.orig/update-pciids.sh
+++ pciutils-2.2.4/update-pciids.sh
@@ -1,9 +1,9 @@
#!/bin/sh
set -e
SRC="http://pciids.sourceforge.net/v2.2/pci.ids"
-DEST=pci.ids
+DEST=pci.ids.d/pci.ids.dist
PCI_COMPRESSED_IDS=
GREP=grep
if [ -n "$PCI_COMPRESSED_IDS" ] ; then
@@ -53,6 +53,12 @@ if [ -f $DEST ] ; then
chmod -f --reference=$DEST.old $DEST.neww 2>/dev/null || true
fi
mv $DEST.neww $DEST
rm $DEST.new
+if [ -x /usr/bin/merge-pciids -a -x /usr/bin/python ]; then
+ merge-pciids
+else
+ echo "WARNING: merge-pciids or python missing"
+ cp -p $DEST /usr/share/pci.ids
+fi
echo "Done."
Index: pciutils-2.2.4/Makefile
===================================================================
--- pciutils-2.2.4.orig/Makefile
+++ pciutils-2.2.4/Makefile
@@ -41,9 +41,9 @@ lspci.o: lspci.c pciutils.h $(PCIINC)
setpci.o: setpci.c pciutils.h $(PCIINC)
common.o: common.c pciutils.h $(PCIINC)
update-pciids: update-pciids.sh
- sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/$(PCI_IDS)@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=$(PCI_COMPRESSED_IDS)@"
+ sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/pci.ids.d/pci.ids.dist@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=@"
chmod +x $@
%.8: %.man
M=`echo $(DATE) | sed 's/-01-/-January-/;s/-02-/-February-/;s/-03-/-March-/;s/-04-/-April-/;s/-05-/-May-/;s/-06-/-June-/;s/-07-/-July-/;s/-08-/-August-/;s/-09-/-September-/;s/-10-/-October-/;s/-11-/-November-/;s/-12-/-December-/;s/\(.*\)-\(.*\)-\(.*\)/\3 \2 \1/'` ; sed <$< >$@ "s/@TODAY@/$$M/;s/@VERSION@/pciutils-$(VERSION)/;s#@IDSDIR@#$(IDSDIR)#"