Name: pciutils Version: 2.1.99.test3 Release: 1.1 Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/alpha/%{name}-2.1.99-test3.tar.bz2 Patch0: pciutils-strip.patch Patch1: pciutils-pciids.patch Patch2: pciutils-2.1.10-scan.patch Patch3: pciutils-havepread.patch License: GPL Buildroot: %{_tmppath}/%{name}-%{version}-root ExclusiveOS: Linux Requires: kernel >= 2.2 hwdata Summary: PCI bus related utilities. Group: Applications/System %ifarch i386 BuildRequires: dietlibc %endif %description The pciutils package contains various utilities for inspecting and setting devices connected to the PCI bus. The utilities provided require kernel version 2.1.82 or newer (which support the /proc/bus/pci interface). %package devel Summary: Linux PCI development library. Group: Development/Libraries %description devel This package contains a library for inspecting and setting devices connected to the PCI bus. %prep %setup -q -n pciutils-2.1.99-test3 %patch0 -p1 -b .strip %patch1 -p1 -b .pciids %patch2 -p1 -b .scan %patch3 -p1 -b .pread %build %ifarch i386 make OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE=1" CC="diet gcc" PREFIX="/usr" mv lib/libpci.a lib/libpci_loader_a make clean %endif make OPT="$RPM_OPT_FLAGS -D_GNU_SOURCE=1" PREFIX="/usr" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8,%{_libdir},%{_includedir}/pci} install -s lspci setpci $RPM_BUILD_ROOT/sbin install lspci.8 setpci.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 install lib/config.h $RPM_BUILD_ROOT%{_includedir}/pci %ifarch i386 install lib/libpci_loader_a $RPM_BUILD_ROOT%{_libdir}/libpci_loader.a %endif %files %defattr(0644, root, root, 0755) %{_mandir}/man8/* %attr(0755, root, root) /sbin/* %doc README ChangeLog pciutils.lsm %files devel %defattr(0644, root, root, 0755) %{_libdir}/libpci.a %ifarch i386 %{_libdir}/libpci_loader.a %endif %{_includedir}/pci %clean rm -rf $RPM_BUILD_ROOT %changelog * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Mon Dec 8 2003 Bill Nottingham 2.1.11-4 - fix paths for pci.ids, etc. (#111665) * Tue Nov 25 2003 Bill Nottingham 2.1.11-3 - remove a few calls to ->error() in the sysfs code * Fri Nov 21 2003 Jeremy Katz 2.1.11-2 - build a diet libpci_loader.a on i386 - always assume pread exists, it does with diet and all vaguely recent glibc * Fri Nov 21 2003 Bill Nottingham 2.1.11-1 - update to 2.1.11 - add patch for sysfs & pci domains support () * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Feb 12 2003 Bill Nottingham - don't segfault when there's no pci bus (#84146) * Wed Jan 22 2003 Tim Powers - rebuilt * Thu Dec 05 2002 Elliot Lee 2.1.10-5 - Add patch4 for ppc64. The basic rule seems to be that on any platform where it is possible to be running a 64-bit kernel, we need to always print out 64-bit addresses. * Mon Nov 4 2002 Bill Nottingham 2.1.10-4 - fix dir perms on /usr/include/pci * Tue Oct 15 2002 Bill Nottingham 2.1.10-3 - use %%{_libdir} - own /usr/include/pci - build library with -fPIC * Thu Jul 8 2002 Bill Nottingham 2.1.10-2 - don't build with -fomit-frame-pointer * Mon Jun 24 2002 Bill Nottingham 2.1.10-1 - update to 2.1.10 * Fri Jun 21 2002 Tim Powers - automated rebuild * Mon Jun 17 2002 Bill Nottingham 2.1.9-4 - don't forcibly strip binaries * Thu May 23 2002 Tim Powers - automated rebuild * Fri Feb 22 2002 Bill Nottingham - rebuild * Wed Jan 30 2002 Bill Nottingham - require hwdata now that pci.ids is there * Wed Jan 09 2002 Tim Powers - automated rebuild * Sun Dec 30 2001 Florian La Roche - man page is now owned by root * Wed Oct 17 2001 Bill Nottingham - dump all the patches, ship pci.ids direct out of sourceforge CVS * Wed Sep 26 2001 Bill Nottingham - broadcom bcm5820 id (#53592) * Fri Aug 10 2001 Bill Nottingham - more ids * Tue Jul 17 2001 Bill Nottingham - add newline in printf in PCI-X patch (#49277) * Mon Jul 9 2001 Bill Nottingham - update broadcom patch - add new ids from 2.4.6 * Mon May 28 2001 Bill Nottingham - add a couple of e1000 ids * Thu Mar 22 2001 Bill Nottingham - another megaraid id * Wed Mar 21 2001 Bill Nottingham - another megaraid id * Wed Mar 14 2001 Preston Brown - LSI SCSI PCI id * Wed Feb 21 2001 Nalin Dahyabhai - fix formatting problems * Wed Feb 21 2001 Preston Brown - add IBM ServeRAID entries * Tue Feb 20 2001 Preston Brown - i860 entries. * Mon Feb 19 2001 Helge Deller - added various pci ids * Fri Feb 2 2001 Bill Nottingham - fix mishap in fixing mishap * Thu Feb 1 2001 Bill Nottingham - fix apparent mishap in pci.ids update from kernel (#25520) * Tue Jan 23 2001 Bill Nottingham - pci.ids updates * Tue Dec 12 2000 Bill Nottingham - big pile of pci.ids updates * Tue Jul 25 2000 Nalin Dahyabhai - clean up patches to not generate badly-formatted files * Tue Jul 25 2000 Preston Brown - Vortex fixes laroche originally applied on kudzu moved here. * Fri Jul 14 2000 Preston Brown - pci ids for i815, new ati hardware * Wed Jul 12 2000 Prospector - automatic rebuild * Tue Jul 11 2000 Bill Nottingham - yet more IDs - PCI-X support from Matt Domsch * Fri Jul 7 2000 Bill Nottingham - some more QLogic ids * Mon Jun 26 2000 Bill Nottingham - more IDs from Dell * Sat Jun 10 2000 Bill Nottingham - update to 2.1.8 * Fri Apr 21 2000 Bill Nottingham - update to 2.1.7 * Mon Apr 17 2000 Bill Nottingham - update to 2.1.6 * Fri Mar 3 2000 Bill Nottingham - add a couple of ids * Mon Feb 14 2000 Bill Nottingham - update to 2.1.5 * Thu Feb 3 2000 Bill Nottingham - handle compressed man pages * Mon Jan 24 2000 Bill Nottingham - update to 2.1.4 * Thu Jan 20 2000 Bill Nottingham - update to 2.1.3 * Fri Dec 24 1999 Bill Nottingham - update to 2.1.2 * Tue Jun 29 1999 Bill Nottingham - add -devel package * Thu May 20 1999 Bill Nottingham - update to 2.0 * Mon Apr 19 1999 Jakub Jelinek - update to 1.99.5 - fix sparc64 operation * Sun Mar 21 1999 Cristian Gafton - auto rebuild in the new build environment (release 2) * Thu Feb 4 1999 Bill Nottingham - initial build