diff --git a/python-ecdsa.spec b/python-ecdsa.spec index 686e8be..d486f67 100644 --- a/python-ecdsa.spec +++ b/python-ecdsa.spec @@ -12,10 +12,6 @@ Source0: %{pypi_source ecdsa} BuildArch: noarch BuildRequires: python3-devel -%if 0%{!?rhel} -# for better performance -BuildRequires: python3-gmpy2 -%endif # For tests BuildRequires: openssl BuildRequires: python3-pytest @@ -64,7 +60,22 @@ find src/ecdsa -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d' %check +%if 0%{?rhel} +# el9 openssl doesn't support these +%pytest \ +-k "not test_from_openssl_nist224p \ +and not test_from_openssl_nist256p \ +and not test_from_openssl_nist384p \ +and not test_from_openssl_nist521p \ +and not test_from_openssl_secp256k1 \ +and not test_to_openssl_nist224p \ +and not test_to_openssl_nist256p \ +and not test_to_openssl_nist384p \ +and not test_to_openssl_nist521p \ +and not test_to_openssl_secp256k1" +%else %pytest +%endif %files -n python3-%{srcname} -f %{pyproject_files}