1
0
python-logutils/python-logutils.spec
Dirk Mueller f2db7b9846 Accepting request 507400 from home:tbechtold:branches:devel:languages:python
- update to 0.3.5:
  - Bring QueueListener implementation in line with the version in the stdlib.
  - Fixed a bug in ColorizingStreamHandler relating to encoding.
  - Return non-zero error code from "setup.py test" when a test fails.
  - Make the dictConfig tests work with both Python 2.x and 3.x.
- convert to singlespec
- fix Source url
- split -doc package
- update Url

OBS-URL: https://build.opensuse.org/request/show/507400
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-logutils?expand=0&rev=3
2017-07-04 05:28:06 +00:00

84 lines
2.6 KiB
RPMSpec

#
# spec file for package python-logutils
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-logutils
Version: 0.3.5
Release: 0
Summary: Logging utilities
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://logutils.readthedocs.io/
Source: https://files.pythonhosted.org/packages/source/l/logutils/logutils-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
The logutils package provides a set of handlers for the Python standard
library's logging package.
Some of these handlers are out-of-scope for the standard library, and
so they are packaged here. Others are updated versions which have
appeared in recent Python releases, but are usable with older versions
of Python and so are packaged here.
%package -n python-logutils-doc
Summary: Documentation for %{name}
Group: Documentation/Other
Provides: %{python_module logutils-doc = %{version}}
%description -n python-logutils-doc
The logutils package provides a set of handlers for the Python standard
library's logging package.
Some of these handlers are out-of-scope for the standard library, and
so they are packaged here. Others are updated versions which have
appeared in recent Python releases, but are usable with older versions
of Python and so are packaged here.
This package contains the documentation.
%prep
%setup -q -n logutils-%{version}
%build
%python_build
cd doc && make html
%install
%python_install
%check
%python_exec setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%doc LICENSE.txt NEWS.txt README.rst
%{python_sitelib}/*
%files -n python-logutils-doc
%doc LICENSE.txt doc/_build/html
%changelog