diff --git a/python-termstyle.changes b/python-termstyle.changes index ac444a6..1b46145 100644 --- a/python-termstyle.changes +++ b/python-termstyle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Feb 9 14:49:26 UTC 2021 - Markéta Machová + +- Get rid of %ifpython3 +- Launch some tests + ------------------------------------------------------------------- Fri Oct 18 09:41:48 UTC 2019 - Sebastian Wagner diff --git a/python-termstyle.spec b/python-termstyle.spec index 75d64f8..04905a2 100644 --- a/python-termstyle.spec +++ b/python-termstyle.spec @@ -1,7 +1,7 @@ # # spec file for package python-termstyle # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,10 +34,8 @@ BuildArch: noarch Obsoletes: %{oldpython}-python-termstyle < %{version} Provides: %{oldpython}-python-termstyle = %{version} %endif -%ifpython3 -Provides: python3-python-termstyle = %{version} -Obsoletes: python3-python-termstyle < %{version} -%endif +Provides: python-python-termstyle = %{version} +Obsoletes: python-python-termstyle < %{version} %python_subpackages %description @@ -56,14 +54,9 @@ sed -i '1s/^#!.*//' termstyle.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -#%%check -#export LANG=C.UTF-8 -#%%ifpython2 -#python2 setup.py test -s test2 -#%%endif -#%%ifpython3 -#python3 setup.py test -s test3 -#%%endif +%check +export LANG=C.UTF-8 +PYTHONPATH=. %python_exec -c 'from termstyle import *; print(green("unicod\xe9!"))' %files %{python_files} %doc README.rst