diff -ruN rpmbuild.old/SOURCES/qpid-cpp-arm.patch rpmbuild/SOURCES/qpid-cpp-arm.patch
--- rpmbuild.old/SOURCES/qpid-cpp-arm.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/qpid-cpp-arm.patch	2014-02-17 11:59:28.000000000 +0000
@@ -0,0 +1,11 @@
+--- qpid-0.14/cpp/configure.ac.orig	2014-02-17 11:57:03.531574434 +0000
++++ qpid-0.14/cpp/configure.ac	2014-02-17 11:57:23.052212615 +0000
+@@ -71,7 +71,7 @@
+ 	# Can't test for -Werror as whether it fails or not depends on what's in
+ 	# CFLAGS/CXXFLAGS. In any case it's been in gcc for a long time (since 2.95 at least)
+ 	if test "${enableval}" = yes; then
+-        COMPILER_FLAGS="-Werror"
++        COMPILER_FLAGS="-Wall"
+ 	    gl_COMPILER_FLAGS(-pedantic)
+ 	    gl_COMPILER_FLAGS(-Wall)
+ 	    gl_COMPILER_FLAGS(-Wextra)
diff -ruN rpmbuild.old/SOURCES/store-cpp-arm.patch rpmbuild/SOURCES/store-cpp-arm.patch
--- rpmbuild.old/SOURCES/store-cpp-arm.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/store-cpp-arm.patch	2014-02-17 11:59:44.000000000 +0000
@@ -0,0 +1,22 @@
+--- store-0.14/lib/jrnl2/Configuration.hpp.orig	2014-02-17 11:15:54.881069287 +0000
++++ store-0.14/lib/jrnl2/Configuration.hpp	2014-02-17 11:16:54.103000560 +0000
+@@ -34,7 +34,7 @@
+ 
+ #include <stdint.h> // uint8_t
+ 
+-#if defined(__i386__) /* little endian, 32 bits */
++#if defined(__i386__) || defined(__arm__) /* little endian, 32 bits */
+   #define JRNL_LITTLE_ENDIAN
+ //  #define JRNL_32_BIT
+ #elif defined(__PPC__) || defined(__s390__)  /* big endian, 32 bits */
+--- store-0.14/lib/jrnl/jcfg.hpp.orig	2014-02-17 11:17:30.084173647 +0000
++++ store-0.14/lib/jrnl/jcfg.hpp	2014-02-17 11:17:50.904852557 +0000
+@@ -33,7 +33,7 @@
+ #ifndef mrg_journal_jcfg_hpp
+ #define mrg_journal_jcfg_hpp
+ 
+-#if defined(__i386__) /* little endian, 32 bits */
++#if defined(__i386__) || defined(__arm__) /* little endian, 32 bits */
+ #define JRNL_LITTLE_ENDIAN
+ #define JRNL_32_BIT
+ #elif defined(__PPC__) || defined(__s390__)  /* big endian, 32 bits */
diff -ruN rpmbuild.old/SPECS/qpid-cpp.spec rpmbuild/SPECS/qpid-cpp.spec
--- rpmbuild.old/SPECS/qpid-cpp.spec	2012-09-06 22:06:47.000000000 +0100
+++ rpmbuild/SPECS/qpid-cpp.spec	2014-02-17 12:01:10.000000000 +0000
@@ -58,7 +58,7 @@
 # ===========
 
 # Disable RDMA on s390(x) architectures
-%ifarch s390 s390x
+%ifarch s390 s390x {%arm}
 %global with_rdma 0
 %else
 %global with_rdma 1
@@ -75,7 +75,7 @@
 
 Name:           qpid-cpp
 Version:        0.14
-Release:        22%{?dist}
+Release:        22%{?dist}.0
 Summary:        Libraries for Qpid C++ client applications
 Group:          System Environment/Libraries
 License:        ASL 2.0
@@ -90,6 +90,8 @@
 Patch1:         so_number.patch
 %endif
 Patch2:         s390.patch
+Patch10001:	qpid-cpp-arm.patch
+Patch10002:	store-cpp-arm.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 %if %{rhel_5}
 ExclusiveArch:  i386 x86_64
@@ -599,6 +601,12 @@
 
 %patch2 -p2
 
+%patch10001 -p1
+
+pushd %{_builddir}/store-%{store_version}
+%patch10002 -p1
+popd
+
 # Doxygen docs
 tar -xzf %{SOURCE2} --no-same-owner
 
@@ -803,6 +811,10 @@
 # ===
 
 %changelog
+* Mon Feb 17 2014 Gordan Bobic <gordan@redsleeve.org> - 0.14-22.0
+- Add ARM bitness and endianness spec.
+- Disable -Werror on ARM
+
 * Thu Sep 6 2012 Mike Cressman <mcressman@redhat.com> - 0.14-22
 - BZs: 609685, 849654, 854004 
 
