Accepting request 1004346 from home:jayvdb:branches:devel:languages:python

(Depends on https://build.opensuse.org/request/show/1004345)
- Move tests out of runtime package
- Enable test suite

OBS-URL: https://build.opensuse.org/request/show/1004346
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gssapi?expand=0&rev=19
This commit is contained in:
Markéta Machová 2022-09-19 11:15:17 +00:00 committed by Git OBS Bridge
parent 6835902162
commit 52e75f5a42
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 17 13:50:48 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
- Move tests out of runtime package
- Enable test suite
-------------------------------------------------------------------
Tue Feb 22 21:53:06 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -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*