add sparc support

This commit is contained in:
Tom Callaway 2008-05-27 00:07:16 +00:00
parent 7ed5abbc8e
commit f256c181f9
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff -up pciutils-2.2.10/lib/configure.BAD pciutils-2.2.10/lib/configure
--- pciutils-2.2.10/lib/configure.BAD 2008-05-26 18:28:51.000000000 -0500
+++ pciutils-2.2.10/lib/configure 2008-05-26 18:30:13.000000000 -0500
@@ -57,6 +57,10 @@ cat >$c <<EOF
#define PCI_ARCH_S390
#elif defined(__alpha__)
#define PCI_ARCH_ALPHA
+#elif defined(__sparc__) && defined (__arch64__)
+#define PCI_ARCH_SPARC64
+#elif defined(__sparc__)
+#define PCI_ARCH_SPARC
#else
#error Unknown Arch
#endif

View File

@ -1,6 +1,6 @@
Name: pciutils Name: pciutils
Version: 2.2.10 Version: 2.2.10
Release: 1%{?dist} Release: 2%{?dist}
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
Patch1: pciutils-2.2.4-buf.patch Patch1: pciutils-2.2.4-buf.patch
@ -10,6 +10,7 @@ Patch6: pciutils-2.2.1-idpath.patch
Patch7: pciutils-2.1.99-gcc4.patch Patch7: pciutils-2.1.99-gcc4.patch
Patch8: pciutils-2.2.10-multilib.patch Patch8: pciutils-2.2.10-multilib.patch
Patch9: pciutils-dir-d.patch Patch9: pciutils-dir-d.patch
Patch10: pciutils-2.2.10-sparc-support.patch
License: GPLv2+ License: GPLv2+
URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -44,6 +45,7 @@ devices connected to the PCI bus.
%patch7 -p1 -b .glibcmacros %patch7 -p1 -b .glibcmacros
%patch8 -p1 -b .multilib %patch8 -p1 -b .multilib
%patch9 -p1 -b .dird %patch9 -p1 -b .dird
%patch10 -p1 -b .sparc
sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh
%build %build
@ -79,6 +81,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Mon May 26 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.2.10-2
- add sparc support
* Wed Feb 20 2008 Harald Hoyer <harald@redhat.com> 2.2.10-1 * Wed Feb 20 2008 Harald Hoyer <harald@redhat.com> 2.2.10-1
- version 2.2.10 - version 2.2.10