rpms/pciutils/F-10 pciutils-3.0.2-arm.patch, NONE, 1.1 pciutils.spec, 1.65, 1.66

Michal Hlavinka mhlavink at fedoraproject.org
Wed Apr 29 15:33:30 UTC 2009


Author: mhlavink

Update of /cvs/extras/rpms/pciutils/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31376

Modified Files:
	pciutils.spec 
Added Files:
	pciutils-3.0.2-arm.patch 
Log Message:
add support for ARM


pciutils-3.0.2-arm.patch:

--- NEW FILE pciutils-3.0.2-arm.patch ---
diff -up pciutils-3.0.2/lib/configure.arm pciutils-3.0.2/lib/configure
--- pciutils-3.0.2/lib/configure.arm	2009-04-29 16:58:54.097763684 +0200
+++ pciutils-3.0.2/lib/configure	2009-04-29 17:16:50.442420669 +0200
@@ -26,7 +26,7 @@ if [ -z "$HOST" ] ; then
 		proc=`/usr/sbin/lsdev -C -c processor -S available -F name | head -1`
 		cpu=`/usr/sbin/lsattr -F value -l $proc -a type | sed 's/_.*//'`
 	else
-		cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/'`
+		cpu=`uname -m | sed 's/^i.86$/i386/;s/^sun4u$/sparc64/;s/^i86pc$/i386/;s/^arm.*$/arm/'`
 	fi
 	if [ "$sys" = "GNU/kFreeBSD" -o "$sys" = "DragonFly" ]
 	then
@@ -73,6 +73,8 @@ cat >$c <<EOF
 #define PCI_ARCH_SPARC
 #elif defined(__sh__)
 #define PCI_ARCH_SH
+#elif defined(__arm__)
+#define PCI_ARCH_ARM
 #else
 #error Unknown Arch
 #endif


Index: pciutils.spec
===================================================================
RCS file: /cvs/extras/rpms/pciutils/F-10/pciutils.spec,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -p -r1.65 -r1.66
--- pciutils.spec	26 Feb 2009 16:30:06 -0000	1.65
+++ pciutils.spec	29 Apr 2009 15:33:28 -0000	1.66
@@ -1,6 +1,6 @@
 Name:		pciutils
 Version:	3.0.2
-Release: 	3%{?dist}
+Release: 	4%{?dist}
 Source:		ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/%{name}-%{version}.tar.gz
 Patch1: 	pciutils-2.2.4-buf.patch
 Patch2:		pciutils-2.1.10-scan.patch
@@ -11,6 +11,7 @@ Patch8: 	pciutils-3.0.2-multilib.patch
 Patch9: 	pciutils-dir-d.patch
 Patch10:	pciutils-2.2.10-sparc-support.patch
 Patch11:	pciutils-3.0.1-superh-support.patch
+Patch12:	pciutils-3.0.2-arm.patch
 License:	GPLv2+
 URL:		http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
 BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -54,6 +55,7 @@ devices connected to the PCI bus.
 %patch9 -p1 -b .dird
 %patch10 -p1 -b .sparc
 %patch11 -p1 -b .superh
+%patch12 -p1 -b .arm
 
 sed -i -e 's/^SRC=.*/SRC="http:\/\/pciids.sourceforge.net\/pci.ids"/' update-pciids.sh
 
@@ -114,6 +116,9 @@ install -p lib/libpci.pc $RPM_BUILD_ROOT
 rm -rf $RPM_BUILD_ROOT
 
 %changelog
+* Wed Apr 29 2009 Michal Hlavinka <mhlavink at redhat.com> - 3.0.2-4
+- add support for ARM
+
 * Thu Feb 26 2009 Michal Hlavinka <mhlavink at redhat.com> 3.0.2-3
 - fix: lspci segfaults when pci.ids cannot be found (#487516)
 




More information about the fedora-extras-commits mailing list