diff --git a/python-tpm2-pytss.spec b/python-tpm2-pytss.spec index ff4695a..6a92157 100644 --- a/python-tpm2-pytss.spec +++ b/python-tpm2-pytss.spec @@ -23,7 +23,10 @@ BuildRequires: python3-pytest-xdist BuildRequires: tpm2-tss-devel >= 2.0.0 BuildRequires: gcc # for tests +%%ifarch i686 +%else BuildRequires: swtpm +%endif BuildRequires: tpm2-tools %global _description %{expand: @@ -66,7 +69,10 @@ Summary: %{summary} # this test does not work for some reason on the s390x as it times out %global testargs -k "not test_spi_helper_good" %endif +%%ifarch i686 +%else %pytest --import-mode=append %{?!rhel:-n 1} %{?testargs} +%endif %files -n python3-%{pypi_name} -f %{pyproject_files}