14
0

Accepting request 477097 from home:alois:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/477097
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorlog?expand=0&rev=5
This commit is contained in:
2017-03-06 08:34:15 +00:00
committed by Git OBS Bridge
parent 7977a42c50
commit 8467de3810
2 changed files with 15 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 1 10:15:34 UTC 2017 - aloisio@gmx.com
- Converted to singlespec
-------------------------------------------------------------------
Thu Jan 26 21:11:25 UTC 2017 - jengelh@inai.de

View File

@@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-colorlog
Version: 2.10.0
Release: 0
@@ -24,12 +25,12 @@ License: MIT
Group: Development/Languages/Python
Url: https://github.com/borntyping/python-colorlog
Source: https://pypi.io/packages/source/c/colorlog/colorlog-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%python_subpackages
%description
colorlog.ColoredFormatter is a formatter for use with Python's logging module.
@@ -42,12 +43,13 @@ before it is used to format the string.
%setup -q -n colorlog-%{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 README.md
%{python_sitelib}/colorlog