From c9ed3111abfccea87bd8f840a33db657f300ef5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Sun, 10 Oct 2021 11:53:22 +0200 Subject: [PATCH] - disable python3 module build - disable tests for unsupported algorithms --- python-cryptography.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-cryptography.spec b/python-cryptography.spec index be3b4a9..a641324 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,7 +1,7 @@ # # Conditional build: %bcond_without python2 # CPython 2.x module -%bcond_without python3 # CPython 3.x module +%bcond_with python3 # CPython 3.x module %bcond_without doc # Sphinx documentation %bcond_without tests # unit test @@ -133,6 +133,10 @@ Dokumentacja API modułu cryptography. %setup -q -n cryptography-%{version} %{?with_tests:-a1} %patch0 -p1 +# Do not tests legacy, disabled by default algorithms +# See man OSSL_PROVIDER-legacy(7) +%{__rm} tests/hazmat/primitives/test_{arc4,blowfish,cast5,idea,seed}.py + %if %{with tests} %{__mv} cryptography_vectors-%{version}/cryptography_vectors . %endif -- 2.44.0