From 39dee94c1e40db35cd43a1d0d44a48ea18603f0b Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 23 Feb 2006 11:40:50 +0000 Subject: [PATCH] - added update-pciids shell script and manpage (bz #178582) --- pciutils-2.2.1-idpath.patch | 11 +++++++++++ pciutils-update-pciids.patch | 11 +++++++++++ pciutils.spec | 11 ++++++++--- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 pciutils-2.2.1-idpath.patch create mode 100644 pciutils-update-pciids.patch diff --git a/pciutils-2.2.1-idpath.patch b/pciutils-2.2.1-idpath.patch new file mode 100644 index 0000000..62b57f0 --- /dev/null +++ b/pciutils-2.2.1-idpath.patch @@ -0,0 +1,11 @@ +--- pciutils-2.2.1/Makefile.idpath 2006-02-23 12:24:12.000000000 +0100 ++++ pciutils-2.2.1/Makefile 2006-02-23 12:24:18.000000000 +0100 +@@ -10,7 +10,7 @@ + PREFIX=/usr/local + SBINDIR=$(PREFIX)/sbin + SHAREDIR=$(PREFIX)/share +-IDSDIR=$(SHAREDIR) ++IDSDIR=$(SHAREDIR)/hwdata + MANDIR:=$(shell if [ -d $(PREFIX)/share/man ] ; then echo $(PREFIX)/share/man ; else echo $(PREFIX)/man ; fi) + INSTALL=install + DIRINSTALL=install -d diff --git a/pciutils-update-pciids.patch b/pciutils-update-pciids.patch new file mode 100644 index 0000000..f434f7e --- /dev/null +++ b/pciutils-update-pciids.patch @@ -0,0 +1,11 @@ +--- pciutils-2.1.99-test8/Makefile.update-pciids 2006-02-23 12:07:05.000000000 +0100 ++++ pciutils-2.1.99-test8/Makefile 2006-02-23 12:07:34.000000000 +0100 +@@ -50,7 +50,7 @@ + common.o: common.c pciutils.h $(PCIINC) + + update-pciids: update-pciids.sh +- sed <$< >$@ "s@^DEST=.*@DEST=$(SHAREDIR)/pci.ids@" ++ sed <$< >$@ "s@^DEST=.*@DEST=$(SHAREDIR)/hwdata/pci.ids@" + + %.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#@SHAREDIR@#$(SHAREDIR)#" diff --git a/pciutils.spec b/pciutils.spec index 2e085df..3221013 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,11 +1,12 @@ Name: pciutils Version: 2.2.1 -Release: 1.2 +Release: 2 Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz Patch0: pciutils-strip.patch Patch2: pciutils-2.1.10-scan.patch Patch3: pciutils-havepread.patch Patch5: pciutils-devicetype.patch +Patch6: pciutils-2.2.1-idpath.patch Patch7: pciutils-2.1.99-gcc4.patch License: GPL URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml @@ -35,6 +36,7 @@ devices connected to the PCI bus. %patch2 -p1 -b .scan %patch3 -p1 -b .pread %patch5 -p1 -b .devicetype +%patch6 -p1 -b .idpath %patch7 -p1 -b .glibcmacros %build @@ -45,8 +47,8 @@ make OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE=1" PREFIX="/usr" IDSDIR="/usr/share/hwdat rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8,%{_libdir},%{_includedir}/pci} -install lspci setpci $RPM_BUILD_ROOT/sbin -install lspci.8 setpci.8 $RPM_BUILD_ROOT%{_mandir}/man8 +install lspci setpci update-pciids $RPM_BUILD_ROOT/sbin +install lspci.8 setpci.8 update-pciids.8 $RPM_BUILD_ROOT%{_mandir}/man8 install lib/libpci.a $RPM_BUILD_ROOT%{_libdir} install lib/pci.h $RPM_BUILD_ROOT%{_includedir}/pci install lib/header.h $RPM_BUILD_ROOT%{_includedir}/pci @@ -68,6 +70,9 @@ install lib/types.h $RPM_BUILD_ROOT%{_includedir}/pci rm -rf $RPM_BUILD_ROOT %changelog +* Thu Feb 23 2006 Harald Hoyer 2.2.1-2 +- added update-pciids shell script and manpage (bz #178582) + * Fri Feb 10 2006 Jesse Keating - 2.2.1-1.2 - bump again for double-long bug on ppc(64)