diff --git a/net-snmp.spec b/net-snmp.spec
index 64b5b19..792d7c9 100644
--- a/net-snmp.spec
+++ b/net-snmp.spec
@@ -56,7 +56,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: openssl-devel, bzip2-devel, beecrypt-devel, elfutils-devel
 BuildRequires: libselinux-devel, elfutils-libelf-devel, rpm-devel
 BuildRequires: perl-devel
-%ifarch %{ix86} x86_64
+%ifnarch s390 s390x
 BuildRequires: lm_sensors-devel
 %endif
 %if %{tcp_wrappers}