%if 0%{?sle_version} > 120300 BuildArch: noarch %endif %if 0%{?is_opensuse} BuildArch: noarch %endif should be %if 0%{?sle_version} > 120300 || 0%{?is_opensuse} BuildArch: noarch %endif