From 9c647756b324aefa6c01ab20895a921138bc19abc20c519f90908a5e1631898c Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 14 Jan 2025 13:26:13 +0000 Subject: [PATCH] Accepting request 1237721 from home:dimstar:Factory - Do not build tests noarch: they refer to %__isa, which differs per architecture, invalidating the noarch option. Fixes build with rpm 4.20. OBS-URL: https://build.opensuse.org/request/show/1237721 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=116 --- python-pyOpenSSL.changes | 4 ++-- python-pyOpenSSL.spec | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index 8fe549b..abace5f 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f48892892f2dc28bdd9b192a835949ad4f31367af733ae8fe307906559501ec5 -size 26828 +oid sha256:87a186b02485c0679365ad5b32cedac388c224ed06a8fe440c060d9f536a22c4 +size 27120 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}