Hello community, here is the log from the commit of package python-termstyle for openSUSE:Factory checked in at 2017-04-28 10:37:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-termstyle (Old) and /work/SRC/openSUSE:Factory/.python-termstyle.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-termstyle" Fri Apr 28 10:37:13 2017 rev:2 rq:487663 version:0.1.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-termstyle/python-termstyle.changes 2017-04-12 18:20:48.606981075 +0200 +++ /work/SRC/openSUSE:Factory/.python-termstyle.new/python-termstyle.changes 2017-04-28 10:37:16.862830735 +0200 @@ -1,0 +2,10 @@ +Wed Apr 12 16:55:35 UTC 2017 - toddrme2...@gmail.com + +- Implement single-spec version. + +------------------------------------------------------------------- +Mon Apr 3 18:56:16 UTC 2017 - jeng...@inai.de + +- Minor typographical update to descriptions. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-termstyle.spec ++++++ --- /var/tmp/diff_new_pack.NozrUE/_old 2017-04-28 10:37:19.722426547 +0200 +++ /var/tmp/diff_new_pack.NozrUE/_new 2017-04-28 10:37:19.726425983 +0200 @@ -15,40 +15,54 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%bcond_without tests +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-termstyle Version: 0.1.11 Release: 0 -Summary: console colouring for python +Summary: Console colouring for Python 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: python-devel -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} Provides: python-python-termstyle = %{version} Obsoletes: python-python-termstyle < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description -termstyle is a simple python library for adding coloured output to -terminal (console) programs. The definitions come from ECMA-048_, the +termstyle is a Python library for adding coloured output to +terminal (console) programs. The definitions come from ECMA-048, the "Control Functions for Coded Character Sets" standard. %prep %setup -q -n termstyle-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%if %{with tests} %check -python setup.py test +export LANG=en_US.UTF-8 +%if %have_python2 +python2 setup.py test +%endif +%if %have_python3 +python3 test3.py +%endif +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/*