diff -ruN rpmbuild.old/SOURCES/pegasus-arm.patch rpmbuild/SOURCES/pegasus-arm.patch
--- rpmbuild.old/SOURCES/pegasus-arm.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/pegasus-arm.patch	2014-02-16 21:43:59.000000000 +0000
@@ -0,0 +1,56 @@
+diff -ruN pegasus.bak/src/SDK/samples/mak/platform_LINUX_XSCALE_GNU.mak pegasus/src/SDK/samples/mak/platform_LINUX_XSCALE_GNU.mak
+--- pegasus.bak/src/SDK/samples/mak/platform_LINUX_XSCALE_GNU.mak	1970-01-01 01:00:00.000000000 +0100
++++ pegasus/src/SDK/samples/mak/platform_LINUX_XSCALE_GNU.mak	2011-11-07 00:37:17.517609000 +0000
+@@ -0,0 +1,30 @@
++#//%LICENSE////////////////////////////////////////////////////////////////
++#//
++#// Licensed to The Open Group (TOG) under one or more contributor license
++#// agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
++#// this work for additional information regarding copyright ownership.
++#// Each contributor licenses this file to you under the OpenPegasus Open
++#// Source License; you may not use this file except in compliance with the
++#// License.
++#//
++#// Permission is hereby granted, free of charge, to any person obtaining a
++#// copy of this software and associated documentation files (the "Software"),
++#// to deal in the Software without restriction, including without limitation
++#// the rights to use, copy, modify, merge, publish, distribute, sublicense,
++#// and/or sell copies of the Software, and to permit persons to whom the
++#// Software is furnished to do so, subject to the following conditions:
++#//
++#// The above copyright notice and this permission notice shall be included
++#// in all copies or substantial portions of the Software.
++#//
++#// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++#// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++#// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
++#// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
++#// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
++#// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
++#// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
++#//
++#//////////////////////////////////////////////////////////////////////////
++
++include $(ROOT)/mak/platform_LINUX_GNU.mak
+--- pegasus/mak/SDKMakefile.orig	2014-02-16 21:02:13.409320265 +0000
++++ pegasus/mak/SDKMakefile	2014-02-16 21:02:55.240679403 +0000
+@@ -76,7 +76,8 @@
+       LINUX_X86_64_GNU \
+       LINUX_X86_64_CLANG \
+       LINUX_ZSERIES64_GNU \
+-      LINUX_ZSERIES_GNU
++      LINUX_ZSERIES_GNU \
++      LINUX_XSCALE_GNU
+ endif
+ 
+ ifdef PACKAGED_PLATFORM_FILES
+--- pegasus/mak/platform_LINUX_XSCALE_GNU.mak.orig	2014-02-16 21:42:36.598332000 +0000
++++ pegasus/mak/platform_LINUX_XSCALE_GNU.mak	2014-02-16 21:42:55.075773000 +0000
+@@ -30,6 +30,6 @@
+ 
+ include $(ROOT)/mak/config-linux.mak
+ 
+-ARCHITECTURE = iX86
++ARCHITECTURE = armel
+ LINK_RPATH=-Xlinker -rpath-link
+ CC=gcc
diff -ruN rpmbuild.old/SPECS/tog-pegasus.spec rpmbuild/SPECS/tog-pegasus.spec
--- rpmbuild.old/SPECS/tog-pegasus.spec	2013-06-13 11:19:17.000000000 +0100
+++ rpmbuild/SPECS/tog-pegasus.spec	2014-02-16 21:56:21.000000000 +0000
@@ -38,7 +38,7 @@
 %define cimsrvr_uid	134
 
 Version: 		%{major_ver}.0
-Release: 		3%{?dist}
+Release: 		3%{?dist}.0
 Epoch:   		2
 #
 Summary:   		OpenPegasus WBEM Services for Linux
@@ -94,6 +94,8 @@
 # 18: Change build options
 Patch18:		pegasus-2.11.0-new-build-options.patch
 #
+Patch10001:		pegasus-arm.patch
+#
 Conflicts: 		openwbem
 Provides: 		tog-pegasus-cimserver
 Provides:		cim-server
@@ -183,6 +185,12 @@
 %global PEGASUS_HARDWARE_PLATFORM_FOR_32BIT LINUX_ZSERIES_GNU
 %global PEGASUS_EXTRA_CXX_FLAGS_32BIT  "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m31 -Wno-unused"
 %global PEGASUS_EXTRA_LINK_FLAGS_32BIT "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m31"
+%else
+%ifarch %{arm}
+%global PEGASUS_HARDWARE_PLATFORM_FOR_32BIT LINUX_XSCALE_GNU
+%global PEGASUS_EXTRA_CXX_FLAGS_32BIT  "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -Wno-unused"
+%global PEGASUS_EXTRA_LINK_FLAGS_32BIT "-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector"
+%endif
 %endif
 %endif
 %endif
@@ -208,6 +216,7 @@
 %patch16 -p1 -b .getpagesize
 %patch17 -p1 -b .dont-strip
 %patch18 -p1 -b .new-build-options
+%patch10001 -p1 -b .arm
 find . -name 'CVS' -exec /bin/rm -rf '{}' ';' >/dev/null 2>&1 ||:;
 
 %build
@@ -245,7 +254,11 @@
               %ifarch sparc64
                 export PEGASUS_PLATFORM=LINUX_SPARC64_GNU
               %else
-                export PEGASUS_PLATFORM=LINUX_IX86_GNU
+                %ifarch %{arm}
+                  export PEGASUS_PLATFORM=LINUX_XSCALE_GNU
+                %else
+                  export PEGASUS_PLATFORM=LINUX_IX86_GNU
+                %endif
               %endif
             %endif
           %endif
@@ -576,6 +589,9 @@
 :;
 
 %changelog
+* Sun Feb 16 2014 Gordan Bobic <gordan@redsleeve.org> - 2:2.12.0-3.0
+- Add ARM platform definition
+
 * Mon Jun 10 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2:2.12.0-3
 - Disable privilege separation
   Resolves: #957233
