forked from pool/python-termstyle
Accepting request 487663 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/487663 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-termstyle?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 12 16:55:35 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 3 18:56:16 UTC 2017 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Minor typographical update to descriptions.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Mar 27 19:15:26 UTC 2017 - toddrme2178@gmail.com
|
Mon Mar 27 19:15:26 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -15,40 +15,54 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
%bcond_without tests
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-termstyle
|
Name: python-termstyle
|
||||||
Version: 0.1.11
|
Version: 0.1.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: console colouring for python
|
Summary: Console colouring for Python
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://github.com/gfxmonk/termstyle
|
Url: http://github.com/gfxmonk/termstyle
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/termstyle/termstyle-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/termstyle/termstyle-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
Provides: python-python-termstyle = %{version}
|
Provides: python-python-termstyle = %{version}
|
||||||
Obsoletes: python-python-termstyle < %{version}
|
Obsoletes: python-python-termstyle < %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
termstyle is a simple python library for adding coloured output to
|
termstyle is a Python library for adding coloured output to
|
||||||
terminal (console) programs. The definitions come from ECMA-048_, the
|
terminal (console) programs. The definitions come from ECMA-048, the
|
||||||
"Control Functions for Coded Character Sets" standard.
|
"Control Functions for Coded Character Sets" standard.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n termstyle-%{version}
|
%setup -q -n termstyle-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%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,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE README.rst
|
%doc LICENSE README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Reference in New Issue
Block a user