diff --git a/python-gssapi.changes b/python-gssapi.changes index 97826a7..27e9dab 100644 --- a/python-gssapi.changes +++ b/python-gssapi.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 17 13:50:48 UTC 2022 - John Vandenberg + +- Move tests out of runtime package +- Enable test suite + ------------------------------------------------------------------- Tue Feb 22 21:53:06 UTC 2022 - Matej Cepl diff --git a/python-gssapi.spec b/python-gssapi.spec index 9aea190..b741f5c 100644 --- a/python-gssapi.spec +++ b/python-gssapi.spec @@ -28,7 +28,10 @@ Source: https://files.pythonhosted.org/packages/source/g/gssapi/gssapi-% BuildRequires: %{python_module Cython} BuildRequires: %{python_module decorator} BuildRequires: %{python_module devel} +BuildRequires: %{python_module k5test} +BuildRequires: %{python_module parameterized} BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes @@ -44,6 +47,9 @@ usable with other GSSAPI mechanisms. %prep %setup -q -n gssapi-%{version} +sed -i "s/'gssapi.tests'//" setup.py + +mv gssapi/tests . %build export CFLAGS="%{optflags} -DHAS_GSSAPI_EXT_H -fno-strict-aliasing" @@ -54,7 +60,9 @@ export CFLAGS="%{optflags} -DHAS_GSSAPI_EXT_H -fno-strict-aliasing" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# requires 'MIT Kerberos installation' +mv gssapi gssapi_temp +%pytest_arch tests +mv gssapi_temp gssapi %files %{python_files} %{python_sitearch}/gssapi*