From d8a28aa2fed9ef783781abfa03467e58e3970ccd Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 13 Dec 2005 22:27:24 +0000 Subject: [PATCH] update to 2.2.1, adjust patches --- .cvsignore | 2 +- pciutils-strip.patch | 13 ++----------- pciutils.spec | 21 ++++++--------------- sources | 2 +- 4 files changed, 10 insertions(+), 28 deletions(-) diff --git a/.cvsignore b/.cvsignore index 7b92391..61340ac 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -pciutils-2.1.99-test8.tar.gz +pciutils-2.2.1.tar.gz diff --git a/pciutils-strip.patch b/pciutils-strip.patch index 9754bcd..19ca22e 100644 --- a/pciutils-strip.patch +++ b/pciutils-strip.patch @@ -1,14 +1,5 @@ --- pciutils-2.1.99-test3/Makefile.strip 2004-02-25 01:46:14.315787866 -0500 +++ pciutils-2.1.99-test3/Makefile 2004-02-25 01:47:45.478046260 -0500 -@@ -1,7 +1,7 @@ - # Makefile for The PCI Utilities - # (c) 1998--2003 Martin Mares - --OPT=-O2 -fomit-frame-pointer -+OPT=-O2 - CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Winline - - VERSION=2.1.99-test3 @@ -32,7 +32,7 @@ all: $(PCILIB) lspci setpci lspci.8 setpci.8 update-pciids update-pciids.8 pci.ids @@ -23,9 +14,9 @@ @@ -65,7 +65,7 @@ install: all # -c is ignored on Linux, but required on FreeBSD - $(DIRINSTALL) -m 755 $(SBINDIR) $(SHAREDIR) $(MANDIR)/man8 + $(DIRINSTALL) -m 755 $(SBINDIR) $(IDSDIR) $(MANDIR)/man8 - $(INSTALL) -c -m 755 -s lspci setpci $(SBINDIR) + $(INSTALL) -c -m 755 lspci setpci $(SBINDIR) $(INSTALL) -c -m 755 update-pciids $(SBINDIR) - $(INSTALL) -c -m 644 pci.ids $(SHAREDIR) + $(INSTALL) -c -m 644 pci.ids $(IDSDIR) $(INSTALL) -c -m 644 lspci.8 setpci.8 update-pciids.8 $(MANDIR)/man8 diff --git a/pciutils.spec b/pciutils.spec index 814ce5a..8422ea6 100644 --- a/pciutils.spec +++ b/pciutils.spec @@ -1,18 +1,12 @@ -%define testversion test8 - Name: pciutils -Version: 2.1.99.%{testversion} -Release: 10.1 -Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/alpha/%{name}-2.1.99-%{testversion}.tar.gz +Version: 2.2.1 +Release: 1 +Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz Patch0: pciutils-strip.patch -Patch1: pciutils-pciids.patch Patch2: pciutils-2.1.10-scan.patch Patch3: pciutils-havepread.patch -Patch4: pciutils-typo.patch Patch5: pciutils-devicetype.patch -Patch6: pciutils-domain.patch Patch7: pciutils-2.1.99-gcc4.patch -Patch8: pciutils-x86_64.patch License: GPL URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml Buildroot: %{_tmppath}/%{name}-%{version}-root @@ -36,19 +30,16 @@ This package contains a library for inspecting and setting devices connected to the PCI bus. %prep -%setup -q -n pciutils-2.1.99-%{testversion} +%setup -q -n pciutils-%{version} %patch0 -p1 -b .strip -%patch1 -p1 -b .pciids %patch2 -p1 -b .scan %patch3 -p1 -b .pread -%patch4 -p1 -b .typo %patch5 -p1 -b .devicetype -%patch6 -p1 -b .domain %patch7 -p1 -b .glibcmacros -%patch8 -p1 -b .x86_64 %build -make OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE=1" PREFIX="/usr" +make OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE=1" PREFIX="/usr" IDSDIR="/usr/share/hwdata" + %install rm -rf $RPM_BUILD_ROOT diff --git a/sources b/sources index 553af24..37f1632 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d7ee9453cb67c32bf99f74bcbdd5d132 pciutils-2.1.99-test8.tar.gz +c18e2a5f04e9abae5a42439de294f086 pciutils-2.2.1.tar.gz