- added update-pciids shell script and manpage (bz #178582)

This commit is contained in:
Harald Hoyer 2006-02-23 11:40:50 +00:00
parent a9d6632a1c
commit 39dee94c1e
3 changed files with 30 additions and 3 deletions

View File

@ -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

View File

@ -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)#"

View File

@ -1,11 +1,12 @@
Name: pciutils Name: pciutils
Version: 2.2.1 Version: 2.2.1
Release: 1.2 Release: 2
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
Patch0: pciutils-strip.patch Patch0: pciutils-strip.patch
Patch2: pciutils-2.1.10-scan.patch Patch2: pciutils-2.1.10-scan.patch
Patch3: pciutils-havepread.patch Patch3: pciutils-havepread.patch
Patch5: pciutils-devicetype.patch Patch5: pciutils-devicetype.patch
Patch6: pciutils-2.2.1-idpath.patch
Patch7: pciutils-2.1.99-gcc4.patch Patch7: pciutils-2.1.99-gcc4.patch
License: GPL License: GPL
URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
@ -35,6 +36,7 @@ devices connected to the PCI bus.
%patch2 -p1 -b .scan %patch2 -p1 -b .scan
%patch3 -p1 -b .pread %patch3 -p1 -b .pread
%patch5 -p1 -b .devicetype %patch5 -p1 -b .devicetype
%patch6 -p1 -b .idpath
%patch7 -p1 -b .glibcmacros %patch7 -p1 -b .glibcmacros
%build %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 rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8,%{_libdir},%{_includedir}/pci} install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8,%{_libdir},%{_includedir}/pci}
install lspci setpci $RPM_BUILD_ROOT/sbin install lspci setpci update-pciids $RPM_BUILD_ROOT/sbin
install lspci.8 setpci.8 $RPM_BUILD_ROOT%{_mandir}/man8 install lspci.8 setpci.8 update-pciids.8 $RPM_BUILD_ROOT%{_mandir}/man8
install lib/libpci.a $RPM_BUILD_ROOT%{_libdir} install lib/libpci.a $RPM_BUILD_ROOT%{_libdir}
install lib/pci.h $RPM_BUILD_ROOT%{_includedir}/pci install lib/pci.h $RPM_BUILD_ROOT%{_includedir}/pci
install lib/header.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 rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Thu Feb 23 2006 Harald Hoyer <harald@redhat.com> 2.2.1-2
- added update-pciids shell script and manpage (bz #178582)
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.1-1.2 * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.2.1-1.2
- bump again for double-long bug on ppc(64) - bump again for double-long bug on ppc(64)