diff --git a/SPECS/openmpi.spec b/SPECS/openmpi.spec
index fc1da8c..3aff664 100644
--- a/SPECS/openmpi.spec
+++ b/SPECS/openmpi.spec
@@ -154,7 +154,7 @@ OpenMPI support for Python 3.
 	--with-valgrind \
 	--enable-memchecker \
 %endif
-%ifnarch s390 s390x i686
+%ifnarch s390 s390x i686 %{arm}
 	--with-ucx \
 	--with-ucx-libdir=%{_libdir} \
 %endif
@@ -235,7 +235,7 @@ make check
 %{_libdir}/%{name}/bin/mpi[er]*
 %{_libdir}/%{name}/bin/ompi*
 %{_libdir}/%{name}/bin/orte[-dr_]*
-%ifnarch s390 s390x i686
+%ifnarch s390 s390x i686 %{arm}
 %{_libdir}/%{name}/bin/osh*
 %{_libdir}/%{name}/bin/shmem*
 %endif