diff -ruN rpmbuild.old/SOURCES/atlas-arm.patch rpmbuild/SOURCES/atlas-arm.patch
--- rpmbuild.old/SOURCES/atlas-arm.patch	1970-01-01 01:00:00.000000000 +0100
+++ rpmbuild/SOURCES/atlas-arm.patch	2014-02-14 11:35:00.000000000 +0000
@@ -0,0 +1,50 @@
+--- ATLAS/CONFIG/include/atlconf.h.orig	2014-02-14 11:34:28.248116000 +0000
++++ ATLAS/CONFIG/include/atlconf.h	2014-02-14 11:31:29.599563000 +0000
+@@ -16,7 +16,7 @@
+ 
+ enum ARCHFAM {AFOther=0, AFPPC, AFSPARC, AFALPHA, AFX86, AFIA64, AFMIPS, AFS390};
+ 
+-#define NMACH 42
++#define NMACH 43
+ static char *machnam[NMACH] =
+    {"UNKNOWN", "POWER3", "POWER4", "POWER5", "PPCG4", "PPCG5",
+     "POWER6", "POWER7",
+@@ -26,7 +26,7 @@
+     "IA64Itan", "IA64Itan2",
+     "USI", "USII", "USIII", "USIV", "UST2", "UnknownUS",
+     "MIPSR1xK", "MIPSICE9",
+-    "IBMz900", "IBMz990", "IBMz9", "IBMz10", "IBMz196" };
++    "IBMz900", "IBMz990", "IBMz9", "IBMz10", "IBMz196", "ARM"};
+ enum MACHTYPE {MACHOther, IbmPwr3, IbmPwr4, IbmPwr5, PPCG4, PPCG5,
+                IbmPwr6, IbmPwr7,
+                IntP5, IntP5MMX, IntPPRO, IntPII, IntPIII, IntPM, IntCoreS,
+@@ -36,7 +36,8 @@
+                SunUSI, SunUSII, SunUSIII, SunUSIV, SunUST2, SunUSX,
+                MIPSR1xK, /* includes R10K, R12K, R14K, R16K */
+                MIPSICE9,   /* SiCortex ICE9 -- like MIPS5K */
+-               IBMz900, IBMz990, IBMz9, IBMz10, IBMz196 /* s390(x) in Linux */
++               IBMz900, IBMz990, IBMz9, IBMz10, IBMz196, /* s390(x) in Linux */
++               ARM
+                };
+ #define MachIsX86(mach_) \
+    ( (mach_) >= IntP5 && (mach_) <= x86X )
+@@ -55,6 +56,8 @@
+    ( (mach_) >= PPCG4 && (mach_) <= PPCG5 )
+ #define MachIsS390(mach_) \
+    ( (mach_) >= IBMz900 && (mach_) <= IBMz196 )
++#define MachIsARM(mach_) \
++   ( (mach_) == ARM )
+ 
+ static char *f2c_namestr[5] = {"UNKNOWN","Add_", "Add__", "NoChange", "UpCase"};
+ static char *f2c_intstr[5] =
+--- ATLAS/CONFIG/src/probe_comp.c.orig	2014-02-14 10:42:51.458402375 +0000
++++ ATLAS/CONFIG/src/probe_comp.c	2014-02-14 10:43:34.639799165 +0000
+@@ -507,6 +507,8 @@
+ 
+    if (MachIsIA64(arch))
+       return(sp);
++   if (MachIsARM(arch))
++      return(sp);
+    if (MachIsMIPS(arch))
+       return((ptrbits == 64) ? "-mabi=64" : "-mabi=n32");
+    if (MachIsS390(arch))
diff -ruN rpmbuild.old/SPECS/atlas.spec rpmbuild/SPECS/atlas.spec
--- rpmbuild.old/SPECS/atlas.spec	2012-02-09 13:20:03.000000000 +0000
+++ rpmbuild/SPECS/atlas.spec	2014-02-14 11:24:37.000000000 +0000
@@ -1,11 +1,15 @@
 %define enable_native_atlas 0
+%ifarch %{arm}
+%define arch_option -A 43
+%define threads_option -t 2
+%endif
 
 Name:           atlas
 Version:        3.8.4
 %if "%{?enable_native_atlas}" != "0"
 %define dist .native
 %endif
-Release:        2%{?dist}
+Release:        2%{?dist}.0
 Summary:        Automatically Tuned Linear Algebra Software
 
 Group:          System Environment/Libraries
@@ -22,6 +26,7 @@
 Patch0:		atlas-fedora_shared.patch
 # Optimized math library for Linux on System z (#694459)
 Patch1:         atlas-s390port.patch
+Patch10001:	atlas-arm.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  gcc-gfortran lapack-devel lapack-static
@@ -236,6 +241,7 @@
 %setup -q -n ATLAS
 %patch0 -p0 -b .shared
 %patch1 -p1 -b .s390
+%patch10001 -p1 -b .arm
 cp %{SOURCE1} CONFIG/ARCHS/
 cp %{SOURCE2} CONFIG/ARCHS/
 cp %{SOURCE3} doc
@@ -254,7 +260,11 @@
 	fi
 	mkdir -p %{_arch}_${type}
 	pushd %{_arch}_${type}
+	%ifnarch %{arm}
 	../configure -b %{__isa_bits} -D c -DWALL -Fa alg '-g -Wa,--noexecstack -fPIC'\
+	%else
+	../configure -b %{mode} %{?threads_option} %{?arch_option} -D c -DWALL -Fa alg '-g -Wa,--noexecstack -fPIC'\
+	%endif
 	--prefix=%{buildroot}%{_prefix}			\
 	--incdir=%{buildroot}%{_includedir}		\
 	--libdir=%{buildroot}%{_libdir}/${libname}	\
@@ -662,6 +672,9 @@
 %endif
 
 %changelog
+* Sat Feb 01 2014 Gordan Bobic <gordan@redsleeve.org> 3.8.4-2.0
+- Add config targets and configure option change for ARM
+
 * Thu Feb 09 2012 Peter Schiffer <pschiffe@redhat.com> 3.8.4-2
 - Resolves: #723350
   Removed illegal 3DNow instruction set from the base package.
