diff -ruN rpmbuild-orig/SOURCES/java-1.6.0-gnueabi.patch rpmbuild/SOURCES/java-1.6.0-gnueabi.patch
--- rpmbuild-orig/SOURCES/java-1.6.0-gnueabi.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/java-1.6.0-gnueabi.patch	2016-02-01 00:44:40.539641741 +0100
@@ -0,0 +1,48 @@
+diff -ruN icedtea6-1.13.7-orig/acinclude.m4 icedtea6-1.13.7/acinclude.m4
+--- icedtea6-1.13.7-orig/acinclude.m4	2015-04-10 18:53:41.339878270 +0200
++++ icedtea6-1.13.7/acinclude.m4	2015-05-24 12:59:56.820694842 +0200
+@@ -1545,7 +1545,7 @@
+     ENABLE_SYSTEM_LCMS="${enableval}"
+   ],
+   [
+-    if test x"${ENABLE_LCMS2}" = "xyes" -a x"${target_os}" = "xlinux-gnu" ; then
++    if test x"${ENABLE_LCMS2}" = "xyes" -a x"${target_os}" = "xlinux-gnueabi" ; then
+       ENABLE_SYSTEM_LCMS="yes" ;
+     else
+       ENABLE_SYSTEM_LCMS="no" ;
+@@ -1575,7 +1575,7 @@
+     ENABLE_SYSTEM_ZLIB="${enableval}"
+   ],
+   [
+-    if test x"${target_os}" = "xlinux-gnu"; then
++    if test x"${target_os}" = "xlinux-gnueabi"; then
+       ENABLE_SYSTEM_ZLIB="yes" ;
+     else
+       ENABLE_SYSTEM_ZLIB="no" ;
+@@ -1606,7 +1606,7 @@
+     ENABLE_SYSTEM_JPEG="${enableval}"
+   ],
+   [
+-    if test x"${target_os}" = "xlinux-gnu"; then
++    if test x"${target_os}" = "xlinux-gnueabi"; then
+       ENABLE_SYSTEM_JPEG="yes" ;
+     else
+       ENABLE_SYSTEM_JPEG="no" ;
+@@ -1635,7 +1635,7 @@
+     ENABLE_SYSTEM_PNG="${enableval}"
+   ],
+   [
+-    if test x"${target_os}" = "xlinux-gnu"; then
++    if test x"${target_os}" = "xlinux-gnueabi"; then
+       ENABLE_SYSTEM_PNG="yes" ;
+     else
+       ENABLE_SYSTEM_PNG="no" ;
+@@ -1665,7 +1665,7 @@
+     ENABLE_SYSTEM_GIF="${enableval}"
+   ],
+   [
+-    if test x"${target_os}" = "xlinux-gnu"; then
++    if test x"${target_os}" = "xlinux-gnueabi"; then
+       ENABLE_SYSTEM_GIF="yes" ;
+     else
+       ENABLE_SYSTEM_GIF="no" ;
diff -ruN rpmbuild-orig/SPECS/java-1.6.0-openjdk.spec rpmbuild/SPECS/java-1.6.0-openjdk.spec
--- rpmbuild-orig/SPECS/java-1.6.0-openjdk.spec	2016-01-21 04:23:03.000000000 +0100
+++ rpmbuild/SPECS/java-1.6.0-openjdk.spec	2016-02-01 00:46:04.114484752 +0100
@@ -66,6 +66,10 @@
 %define archbuild sparcv9
 %define archinstall sparcv9
 %endif
+%ifarch %{arm}
+%define archbuild arm
+%define archinstall arm
+%endif
 %ifnarch %{jit_arches}
 %define archbuild %{_arch}
 %define archinstall %{_arch}
@@ -162,7 +166,7 @@
 
 Name:    java-%{javaver}-%{origin}
 Version: %{javaver}.%{buildver}
-Release: %{icedteaver}.0%{?dist}
+Release: %{icedteaver}.0%{?dist}.0
 # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons,
 # and this change was brought into RHEL-4.  java-1.5.0-ibm packages
 # also included the epoch in their virtual provides.  This created a
@@ -204,6 +208,7 @@
 # This turns off the application of PR2125 by fsg.sh as
 # we do it ourselves ahead of time via generate-rhel-zip.sh
 Patch11:  no_pr2125.patch
+Patch10001: java-1.6.0-gnueabi.patch
  
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -251,7 +256,7 @@
 BuildRequires: libffi-devel
 %endif
 
-ExclusiveArch: x86_64 i686
+ExclusiveArch: x86_64 i686 %{arm}
 
 # cacerts build requirement.
 BuildRequires: openssl
@@ -366,6 +371,7 @@
 # Upstream patch first
 %patch10 -p1
 %patch11 -p1
+%patch10001 -p1
 
 cp %{SOURCE4} .
 
@@ -887,6 +893,10 @@
 %doc %{_javadocdir}/%{name}
 
 %changelog
+* Sun Jan 31 2016 Jacco Ligthart <jacco@redsleeve.org> - 1:1.6.0.38-1.13.10.0.0
+- Add ARM architectures
+- changed target_os checks from linux-gnu to linux-gnueabi for arm build
+
 * Thu Jan 21 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.6.0.38-1.13.10.0
 - Update to IcedTea 1.13.10 & OpenJDK 6 b38.
 - Resolves: rhbz#1295773
