1
0

- 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
This commit is contained in:
Sascha Peilicke 2011-09-23 10:39:43 +00:00 committed by Git OBS Bridge
parent f65335a928
commit 1145904cd5
4 changed files with 44 additions and 29 deletions

View File

@ -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 Thu Nov 26 22:29:36 UTC 2009 - poeml@cmdline.net

View File

@ -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} # All modifications and additions to the file contributed by third parties
Group: Development/Libraries/Python # remain the property of their copyright owners, unless otherwise agreed
Version: 0.1.2 # 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 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 Url: http://pypi.python.org/pypi/termcolor
%{py_requires} Summary: ANSII Color formatting for output in terminal
%define py_vers %(%{__python} -c 'import sys; print int(10*float(sys.version[:3]))') License: MIT
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1} Group: Development/Languages/Python
BuildArch: noarch Source: http://pypi.python.org/packages/source/t/termcolor/termcolor-%{version}.tar.gz
%else BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: python-devel
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")} BuildRequires: python-distribute
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif %endif
%endif
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%description %description
Available text colors: grey, red, green, yellow, blue, magenta, cyan, white. 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. Available attributes: bold, dark, underline, blink, reverse, concealed.
%prep %prep
%setup -n %{real_name}-%{version} %setup -q -n termcolor-%{version}
%build %build
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%clean %files
rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-)
%doc CHANGES.rst COPYING.txt README.rst
%files -f INSTALLED_FILES %{python_sitelib}/*
%defattr(-,root,root)
%doc AUTHORS.txt CHANGES.txt COPYING.txt PKG-INFO README.txt
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7828b52892cba99b4d6999534f6e15cd5bdcf6ccb8a05bcef873ba363a699b98
size 13633

3
termcolor-1.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b
size 3912