diff --git a/python-pure-sasl.spec b/python-pure-sasl.spec index 5d00292acfea29e65bb91455a16cef6bbb6f42ae..7dab158f28146acec0cb829041d823c690817e8c 100644 --- a/python-pure-sasl.spec +++ b/python-pure-sasl.spec @@ -1,12 +1,20 @@ %global _empty_manifest_terminate_build 0 +%bcond_with tests + Name: python-pure-sasl Version: 0.6.2 -Release: 1 +Release: 2 Summary: Pure Python client SASL implementation License: MIT URL: http://github.com/thobbs/pure-sasl Source0: https://files.pythonhosted.org/packages/83/b7/a0d688f86c869073cc28c0640899394a1cf68a6d87ee78a09565e9037da6/pure-sasl-0.6.2.tar.gz BuildArch: noarch + +%if %{with tests} +BuildRequires: python3-tox +BuildRequires: python3-tox-current-env +%endif + %description pure-sasl is a pure python client-side SASL implementation. At the moment, it supports the following mechanisms: ANONYMOUS, PLAIN, EXTERNAL, CRAM-MD5, DIGEST-MD5, and GSSAPI. Support for other mechanisms may be added in the future. Only GSSAPI supports a QOP higher than auth. Always use TLS! @@ -73,8 +81,10 @@ popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . +%if %{with tests} %check -%{__python3} setup.py test +%{tox} +%endif %files -n python3-pure-sasl -f filelist.lst %dir %{python3_sitelib}/* @@ -84,5 +94,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed Jul 23 2025 Ge Wang - 0.6.2-2 +- Fix build error + * Thu Aug 12 2021 OpenStack_SIG - 0.6.2-1 - Package Spec generate