add sparc support
This commit is contained in:
parent
7ed5abbc8e
commit
f256c181f9
14
pciutils-2.2.10-sparc-support.patch
Normal file
14
pciutils-2.2.10-sparc-support.patch
Normal 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
|
@ -1,6 +1,6 @@
|
||||
Name: pciutils
|
||||
Version: 2.2.10
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source: ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
|
||||
Patch0: pciutils-strip.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
|
||||
Patch8: pciutils-2.2.10-multilib.patch
|
||||
Patch9: pciutils-dir-d.patch
|
||||
Patch10: pciutils-2.2.10-sparc-support.patch
|
||||
License: GPLv2+
|
||||
URL: http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -44,6 +45,7 @@ devices connected to the PCI bus.
|
||||
%patch7 -p1 -b .glibcmacros
|
||||
%patch8 -p1 -b .multilib
|
||||
%patch9 -p1 -b .dird
|
||||
%patch10 -p1 -b .sparc
|
||||
sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh
|
||||
|
||||
%build
|
||||
@ -79,6 +81,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%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
|
||||
- version 2.2.10
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user