From 1145904cd5e4863e30027e3ffa3b75cb799c4528e9e4b97262b78a4049c6eff6 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Fri, 23 Sep 2011 10:39:43 +0000 Subject: [PATCH] - Update to version 1.1.0: * Added cprint function. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-termcolor?expand=0&rev=3 --- python-termcolor.changes | 6 ++++ python-termcolor.spec | 61 +++++++++++++++++++++++----------------- termcolor-0.1.2.tar.bz2 | 3 -- termcolor-1.1.0.tar.gz | 3 ++ 4 files changed, 44 insertions(+), 29 deletions(-) delete mode 100644 termcolor-0.1.2.tar.bz2 create mode 100644 termcolor-1.1.0.tar.gz diff --git a/python-termcolor.changes b/python-termcolor.changes index 1a182d0..0aed232 100644 --- a/python-termcolor.changes +++ b/python-termcolor.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 23 10:36:16 UTC 2011 - saschpe@suse.de + +- Update to version 1.1.0: + * Added cprint function. + ------------------------------------------------------------------- Thu Nov 26 22:29:36 UTC 2009 - poeml@cmdline.net diff --git a/python-termcolor.spec b/python-termcolor.spec index e5a7f68..9d45102 100644 --- a/python-termcolor.spec +++ b/python-termcolor.spec @@ -1,27 +1,38 @@ -#norootforbuild # -%define real_name termcolor +# spec file for package python-termcolor # +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # -Name: python-%{real_name} -Group: Development/Libraries/Python -Version: 0.1.2 +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# 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/ +# + +Name: python-termcolor +Version: 1.1.0 Release: 0 -License: GPLv3+ -Summary: ANSII Color formatting for output in terminal. -Autoreqprov: on -Source: %{real_name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-setuptools Url: http://pypi.python.org/pypi/termcolor -%{py_requires} -%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))') -%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} -BuildArch: noarch -%else -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")} +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +BuildRequires: python-distribute +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 +BuildArch: noarch %endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description Available text colors: grey, red, green, yellow, blue, magenta, cyan, white. @@ -29,19 +40,17 @@ Available text highlights: on_grey, on_red, on_green, on_yellow, on_blue, on_mag Available attributes: bold, dark, underline, blink, reverse, concealed. %prep -%setup -n %{real_name}-%{version} +%setup -q -n termcolor-%{version} %build python setup.py build %install -python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf $RPM_BUILD_ROOT - -%files -f INSTALLED_FILES -%defattr(-,root,root) -%doc AUTHORS.txt CHANGES.txt COPYING.txt PKG-INFO README.txt +%files +%defattr(-,root,root,-) +%doc CHANGES.rst COPYING.txt README.rst +%{python_sitelib}/* %changelog diff --git a/termcolor-0.1.2.tar.bz2 b/termcolor-0.1.2.tar.bz2 deleted file mode 100644 index 96c7984..0000000 --- a/termcolor-0.1.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7828b52892cba99b4d6999534f6e15cd5bdcf6ccb8a05bcef873ba363a699b98 -size 13633 diff --git a/termcolor-1.1.0.tar.gz b/termcolor-1.1.0.tar.gz new file mode 100644 index 0000000..d5103cf --- /dev/null +++ b/termcolor-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b +size 3912