diff --git a/python-jose.spec b/python-jose.spec index 94f994c..91c2013 100644 --- a/python-jose.spec +++ b/python-jose.spec @@ -48,8 +48,8 @@ installed, even if you select a different backend on install. 1. cryptography * This backend uses pyca/cryptography for all cryptographic operations. - This is the recommended backend and is selected over all other - backends if any others are present. + This is the recommended backend and is selected over all other + backends if any others are present. * Installation: dnf install python3-jose+cryptography * Unused dependencies: - rsa @@ -92,7 +92,7 @@ Summary: %{summary} %if 0%{?fedora} == 32 %py_provides python3-%{srcname} %endif - + Requires: python3dist(ecdsa) < 1.0 Requires: python3dist(pyasn1) Requires: python3dist(rsa) @@ -157,10 +157,10 @@ This is a metapackage bringing in pycryptodome extras requires for python3-%{srcname}. It contains no code, just makes sure the dependencies are installed. - %files -n python3-%{srcname}+pycryptodome %ghost %{python3_sitelib}/*.egg-info + %package -n python3-%{srcname}+pycrypto Summary: Metapackage for python3-%{srcname}: pycrypto extras @@ -193,12 +193,15 @@ sed -r -i 's/(ecdsa)[[:blank:]]*<[[:blank:]][[:alnum:].]+/\1/' setup.py rm -rvf *.egg-info + %build %py3_build + %install %py3_install + %check # See https://github.com/mpdavis/python-jose/issues/176; the problem occurs # even on ecdsa 0.16.1, so we must skip the test unconditionally. @@ -223,12 +226,14 @@ m='not (cryptography or pycryptodome or backend_compatibility)' echo '>>> Cross-backend compatibility and coexistence <<<' 1>&2 %{pytest} -k "${k}" tests + %files -n python3-%{srcname} %license LICENSE %doc README.rst %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%(echo '%{name}' | tr - _)-%{version}-py*.egg-info + %changelog * Sat Feb 27 2021 Benjamin A. Beasley - 3.2.0-3 - Change “test_key_too_short” skip from patch to pytest option @@ -240,6 +245,7 @@ echo '>>> Cross-backend compatibility and coexistence <<<' 1>&2 - Drop obsolete python_provide macro - Use %%pytest macro and print a message for each backend-specific test invocation +- Whitespace changes * Wed Jan 27 2021 Fedora Release Engineering - 3.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild