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	2015-11-18 22:28:43.954944866 +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	2015-11-18 17:13:57.000000000 +0100
+++ rpmbuild/SPECS/java-1.6.0-openjdk.spec	2015-11-18 22:30:28.759662156 +0100
@@ -162,7 +162,7 @@
 
 Name:    java-%{javaver}-%{origin}
 Version: %{javaver}.%{buildver}
-Release: %{icedteaver}.4%{?dist}
+Release: %{icedteaver}.4%{?dist}.redsleeve
 # 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 +204,7 @@
 Patch7:  no_pr2125.patch
 # This is a RHEL-specific patch to embed RHEL-specific paths
 Patch10:  add-final-location-rpaths.patch
+Patch10001: java-1.6.0-gnueabi.patch
 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -361,6 +362,7 @@
 %patch0
 %patch7 -p1
 %patch10 -p1
+%patch10001 -p1
 
 cp %{SOURCE4} .
 
@@ -882,6 +884,9 @@
 %doc %{_javadocdir}/%{name}
 
 %changelog
+* Wed Nov 18 2015 Jacco Ligthart <jacco@redsleeve.org> - 1:1.6.0.37-1.13.9.4.redsleeve
+- changed target_os checks from linux-gnu to linux-gnueabi for arm build
+
 * Wed Nov 11 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.6.0.37-1.13.9.4
 - Update with new IcedTea & b37 tarballs, including fix for appletviewer regression.
 - Resolves: rhbz#1271929
