2013-04-29 13:48:34 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Logbook
|
|
|
|
#
|
2017-02-16 14:13:44 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-04-29 13:48:34 +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/
|
2013-10-24 11:08:00 +00:00
|
|
|
#
|
2013-04-29 13:48:34 +00:00
|
|
|
|
|
|
|
|
2017-09-08 19:32:30 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
# Tests require a network connection
|
|
|
|
%bcond_with test
|
2013-04-29 13:48:34 +00:00
|
|
|
Name: python-Logbook
|
2017-09-08 19:32:30 +00:00
|
|
|
Version: 1.1.0
|
2013-04-29 13:48:34 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A logging replacement for Python
|
2013-10-24 11:08:00 +00:00
|
|
|
License: BSD-3-Clause
|
2013-04-29 13:48:34 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-09-08 19:32:30 +00:00
|
|
|
Url: https://github.com/getlogbook/logbook
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/L/Logbook/Logbook-%{version}.tar.gz
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module Cython}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
%if %{with test}
|
|
|
|
BuildRequires: %{python_module Jinja2}
|
|
|
|
BuildRequires: %{python_module SQLAlchemy}
|
|
|
|
BuildRequires: %{python_module execnet >= 1.0.9}
|
|
|
|
BuildRequires: %{python_module gevent}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module pytest-cov}
|
|
|
|
BuildRequires: %{python_module pyzmq}
|
|
|
|
BuildRequires: %{python_module redis}
|
|
|
|
BuildRequires: python-mock
|
2013-04-29 13:48:34 +00:00
|
|
|
%endif
|
2017-09-08 19:32:30 +00:00
|
|
|
Recommends: python-Jinja2
|
|
|
|
Recommends: python-SQLAlchemy
|
|
|
|
Recommends: python-execnet >= 1.0.9
|
|
|
|
Recommends: python-gevent
|
|
|
|
Recommends: python-redis
|
|
|
|
Recommends: python-pyzmq
|
|
|
|
|
|
|
|
%python_subpackages
|
2013-04-29 13:48:34 +00:00
|
|
|
|
|
|
|
%description
|
2017-09-08 19:32:30 +00:00
|
|
|
An alternative logging implementation for python.
|
2013-04-29 13:48:34 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Logbook-%{version}
|
2017-09-08 19:32:30 +00:00
|
|
|
sed -i 's/\r$//' LICENSE
|
|
|
|
rm tests/*.pyc
|
|
|
|
rm -r tests/__pycache__
|
2013-04-29 13:48:34 +00:00
|
|
|
|
|
|
|
%build
|
2017-09-08 19:32:30 +00:00
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_build
|
2013-04-29 13:48:34 +00:00
|
|
|
|
|
|
|
%install
|
2017-09-08 19:32:30 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
2013-04-29 13:48:34 +00:00
|
|
|
|
2017-09-08 19:32:30 +00:00
|
|
|
%if %{with test}
|
|
|
|
%check
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
2013-04-29 13:53:05 +00:00
|
|
|
|
2017-09-08 19:32:30 +00:00
|
|
|
%files %{python_files}
|
2013-04-29 13:48:34 +00:00
|
|
|
%defattr(-,root,root,-)
|
2017-09-08 19:32:30 +00:00
|
|
|
%doc CHANGES LICENSE
|
2013-04-29 13:48:34 +00:00
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|