diff --git a/python-oauthlib.spec b/python-oauthlib.spec index 8a83f82f33ae473b72b31caaffe5d6818f4e9ab2..bff801216f8c3f5c5407a07e5a4ad3950dfc66d8 100644 --- a/python-oauthlib.spec +++ b/python-oauthlib.spec @@ -1,9 +1,8 @@ -%global _empty_manifest_terminate_build 0 Name: python-oauthlib Version: 3.2.2 -Release: 3 +Release: 4 Summary: A generic, spec-compliant, thorough implementation of the OAuth request-signing logic -License: BSD +License: BSD-3-Clause URL: https://github.com/oauthlib/oauthlib Source0: https://github.com/oauthlib/oauthlib/archive/refs/tags/v%{version}.tar.gz#/oauthlib-%{version}.tar.gz Patch0: backport-Update-setup.cfg-to-use-license_files-839.patch @@ -28,6 +27,7 @@ BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip +BuildRequires: python3-pytest BuildRequires: python3-wheel # General requires BuildRequires: python3-cryptography @@ -85,24 +85,26 @@ fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi -touch doclist.lst -if [ -d usr/share/man ]; then - find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst -fi popd mv %{buildroot}/filelist.lst . -mv %{buildroot}/doclist.lst . %check -%{__python3} setup.py test +# enable SHA-1 signatures for RSA tests +# also see https://github.com/pyca/cryptography/pull/6931 and rhbz#2060343 +export OPENSSL_ENABLE_SHA1_SIGNATURES=yes +echo 'import pytest; __getattr__ = lambda _: pytest.skip("this test needs jwt")' > jwt.py +%{pytest} %files -n python3-oauthlib -f filelist.lst %dir %{python3_sitelib}/* -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Mon Jun 30 2025 Funda Wang - 3.2.2-4 +- use pytest for testing + * Tue Aug 27 2024 chenhuihan - 3.2.2-3 - fix test error