diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index 21b3287..d7e6559 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 13 22:33:05 UTC 2025 - Dominique Leuenberger + +- Do not build tests noarch: they refer to %__isa, which differs + per architecture, invalidating the noarch option. + Fixes build with rpm 4.20. + ------------------------------------------------------------------- Tue Jul 23 11:39:23 UTC 2024 - Adrian Schröter diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec index 0661646..8a3cfaf 100644 --- a/python-pyOpenSSL.spec +++ b/python-pyOpenSSL.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyOpenSSL # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -43,8 +43,9 @@ Requires: python-cffi Requires: (python-cryptography >= 41.0.5 with python-cryptography < 44) Provides: pyOpenSSL = %{version} Provides: pyopenssl = %{version}-%release +%if %{without test} BuildArch: noarch -%if %{with test} +%else BuildRequires: %{python_module cryptography >= 41.0.5 with %python-cryptography < 44} BuildRequires: %{python_module pretend} BuildRequires: %{python_module pyOpenSSL >= %version}