2013-07-18 09:03:03 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-logutils
|
|
|
|
#
|
2017-07-04 05:28:06 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-18 09:03:03 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2017-07-04 05:28:06 +00:00
|
|
|
#
|
2013-07-18 09:03:03 +00:00
|
|
|
|
|
|
|
|
2017-07-04 05:28:06 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2013-07-18 09:03:03 +00:00
|
|
|
Name: python-logutils
|
2017-07-04 05:28:06 +00:00
|
|
|
Version: 0.3.5
|
2013-07-18 09:03:03 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Logging utilities
|
2017-07-04 05:28:06 +00:00
|
|
|
License: BSD-3-Clause
|
2013-07-18 09:03:03 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-07-04 05:28:06 +00:00
|
|
|
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
|
2013-07-18 09:03:03 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2017-07-04 05:28:06 +00:00
|
|
|
|
|
|
|
%python_subpackages
|
2013-07-18 09:03:03 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2017-07-04 05:28:06 +00:00
|
|
|
%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.
|
|
|
|
|
2013-07-18 09:03:03 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n logutils-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-07-04 05:28:06 +00:00
|
|
|
%python_build
|
2013-07-18 09:03:03 +00:00
|
|
|
cd doc && make html
|
|
|
|
|
|
|
|
%install
|
2017-07-04 05:28:06 +00:00
|
|
|
%python_install
|
2013-07-18 09:03:03 +00:00
|
|
|
|
|
|
|
%check
|
2017-07-04 05:28:06 +00:00
|
|
|
%python_exec setup.py test
|
2013-07-18 09:03:03 +00:00
|
|
|
|
2017-07-04 05:28:06 +00:00
|
|
|
%files %{python_files}
|
2013-07-18 09:03:03 +00:00
|
|
|
%defattr(-,root,root,-)
|
2017-07-04 05:28:06 +00:00
|
|
|
%doc LICENSE.txt NEWS.txt README.rst
|
2013-07-18 09:03:03 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2017-07-04 05:28:06 +00:00
|
|
|
%files -n python-logutils-doc
|
|
|
|
%doc LICENSE.txt doc/_build/html
|
|
|
|
|
2013-07-18 09:03:03 +00:00
|
|
|
%changelog
|