diff --git a/python-py-ubjson.changes b/python-py-ubjson.changes index f66a1d8..b47463f 100644 --- a/python-py-ubjson.changes +++ b/python-py-ubjson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 7 08:28:55 UTC 2019 - pgajdos@suse.com + +- enable unit tests + ------------------------------------------------------------------- Tue Apr 9 14:48:11 UTC 2019 - Bernhard Wiedemann diff --git a/python-py-ubjson.spec b/python-py-ubjson.spec index 8156c63..56a5272 100644 --- a/python-py-ubjson.spec +++ b/python-py-ubjson.spec @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,16 +21,15 @@ Name: python-py-ubjson Version: 0.13.0 Release: 0 -License: Apache-2.0 Summary: Universal Binary JSON encoder/decoder -Url: https://github.com/Iotic-Labs/py-ubjson +License: Apache-2.0 Group: Development/Languages/Python +Url: https://github.com/Iotic-Labs/py-ubjson Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes - +BuildRequires: python-rpm-macros %python_subpackages %description @@ -42,6 +42,10 @@ encoder/decoder based on the `draft-12` specification. %build %python_build +%check +touch test/__init__.py +%python_expand $python -munittest discover -v + %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch}