Hello community, here is the log from the commit of package python-termcolor for openSUSE:Factory checked in at 2017-07-11 08:25:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-termcolor (Old) and /work/SRC/openSUSE:Factory/.python-termcolor.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-termcolor" Tue Jul 11 08:25:11 2017 rev:8 rq:508336 version:1.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-termcolor/python-termcolor.changes 2013-10-25 11:33:44.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-termcolor.new/python-termcolor.changes 2017-07-11 08:25:13.152746659 +0200 @@ -1,0 +2,5 @@ +Wed Jul 5 08:49:09 UTC 2017 - aloi...@gmx.com + +- Converted to single-spec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-termcolor.spec ++++++ --- /var/tmp/diff_new_pack.RFrkZt/_old 2017-07-11 08:25:13.692670506 +0200 +++ /var/tmp/diff_new_pack.RFrkZt/_new 2017-07-11 08:25:13.696669942 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-termcolor # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,22 +16,22 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-termcolor Version: 1.1.0 Release: 0 -Url: http://pypi.python.org/pypi/termcolor Summary: ANSII Color formatting for output in terminal License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz +Url: https://pypi.python.org/pypi/termcolor +Source: https://files.pythonhosted.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description Available text colors: grey, red, green, yellow, blue, magenta, cyan, white. @@ -42,12 +42,13 @@ %setup -q -n termcolor-%{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} -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst COPYING.txt README.rst %{python_sitelib}/*