Accepting request 1172403 from devel:languages:python

- Make python-pycryptodome dependency only required for Factory.

OBS-URL: https://build.opensuse.org/request/show/1172403
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-python-jose?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2024-05-07 16:04:50 +00:00 committed by Git OBS Bridge
commit 6b944f43c5
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 7 09:58:08 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Make python-pycryptodome dependency only required for Factory.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 6 07:11:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com> Mon May 6 07:11:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -61,7 +61,11 @@ Requires: python-pyasn1
Requires: python-rsa Requires: python-rsa
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
# pycryptodome is needed just for one test added in CVE-2024-33663.
# This package is not in Leap, so do not require for other versions.
%if 0%{?suse_version} > 1600
BuildRequires: %{python_module pycryptodome} BuildRequires: %{python_module pycryptodome}
%endif
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
%if %{with testcryptography} %if %{with testcryptography}
BuildRequires: %{python_module python-jose-cryptography = %{version}} BuildRequires: %{python_module python-jose-cryptography = %{version}}