diff --git a/python-termstyle.changes b/python-termstyle.changes index b04ce04..a112aa0 100644 --- a/python-termstyle.changes +++ b/python-termstyle.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Dec 2 17:59:26 UTC 2017 - sebix+novell.com@sebix.at + +- deactivated broken tests +- install license file as license + ------------------------------------------------------------------- Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com diff --git a/python-termstyle.spec b/python-termstyle.spec index 07427a4..899e355 100644 --- a/python-termstyle.spec +++ b/python-termstyle.spec @@ -15,7 +15,6 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%bcond_without tests %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python @@ -27,10 +26,10 @@ License: BSD-3-Clause Group: Development/Languages/Python Url: http://github.com/gfxmonk/termstyle Source: https://files.pythonhosted.org/packages/source/t/termstyle/termstyle-%{version}.tar.gz -BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros %ifpython2 Obsoletes: %{oldpython}-python-termstyle < %{version} Provides: %{oldpython}-python-termstyle = %{version} @@ -39,7 +38,6 @@ Provides: %{oldpython}-python-termstyle = %{version} Provides: python3-python-termstyle = %{version} Obsoletes: python3-python-termstyle < %{version} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -50,6 +48,7 @@ terminal (console) programs. The definitions come from ECMA-048, the %prep %setup -q -n termstyle-%{version} +sed -i '1s/^#!.*//' termstyle.py %build %python_build @@ -58,20 +57,18 @@ terminal (console) programs. The definitions come from ECMA-048, the %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%if %{with tests} -%check -export LANG=en_US.UTF-8 -%if %have_python2 -python2 setup.py test -%endif -%if %have_python3 -python3 test3.py -%endif -%endif +#%%check +#export LANG=C.UTF-8 +#%%ifpython2 +#python2 setup.py test -s test2 +#%%endif +#%%ifpython3 +#python3 setup.py test -s test3 +#%%endif %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%doc README.rst +%license LICENSE %{python_sitelib}/* %changelog