forked from pool/python-termcolor
Accepting request 508336 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/508336 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-termcolor?expand=0&rev=8
This commit is contained in:
commit
8a2137c9f5
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 5 08:49:09 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to single-spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 24 11:15:45 UTC 2013 - speilicke@suse.com
|
||||
|
||||
|
@ -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 @@ Available attributes: bold, dark, underline, blink, reverse, concealed.
|
||||
%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}/*
|
||||
|
Loading…
Reference in New Issue
Block a user