From cd84edb32dea17eb2b656e5026307ef5afe2491f3f091211879141ef56003e62 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 7 May 2024 09:59:10 +0000 Subject: [PATCH] - Make python-pycryptodome dependency only required for Factory. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jose?expand=0&rev=15 --- python-python-jose.changes | 5 +++++ python-python-jose.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/python-python-jose.changes b/python-python-jose.changes index 44fa840..59c665f 100644 --- a/python-python-jose.changes +++ b/python-python-jose.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 7 09:58:08 UTC 2024 - Daniel Garcia + +- Make python-pycryptodome dependency only required for Factory. + ------------------------------------------------------------------- Mon May 6 07:11:18 UTC 2024 - Daniel Garcia diff --git a/python-python-jose.spec b/python-python-jose.spec index 3e5d2cb..1c4e8b4 100644 --- a/python-python-jose.spec +++ b/python-python-jose.spec @@ -61,7 +61,11 @@ Requires: python-pyasn1 Requires: python-rsa BuildArch: noarch %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} +%endif BuildRequires: %{python_module pytest} %if %{with testcryptography} BuildRequires: %{python_module python-jose-cryptography = %{version}}