forked from pool/python-colorlog
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user