2013-10-19 12:19:40 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-relatorio
|
|
|
|
#
|
2017-08-01 16:11:12 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-10-20 13:27:08 +00:00
|
|
|
# Copyright (c) 2016-2017 Dr. Axel Braun
|
2013-10-19 12:19:40 +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/
|
2016-07-04 05:07:33 +00:00
|
|
|
#
|
|
|
|
|
2017-08-01 16:11:12 +00:00
|
|
|
|
2017-12-11 09:48:45 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
2017-03-21 13:36:29 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-07-04 05:07:33 +00:00
|
|
|
|
2017-03-21 13:36:29 +00:00
|
|
|
%define mod_name relatorio
|
2013-10-19 12:19:40 +00:00
|
|
|
Name: python-relatorio
|
2017-12-11 09:48:45 +00:00
|
|
|
Version: 0.8.0
|
2016-07-04 05:07:33 +00:00
|
|
|
Release: 0
|
2013-10-19 12:19:40 +00:00
|
|
|
Summary: Python module to create reports from Python objects
|
2016-07-04 05:07:33 +00:00
|
|
|
License: GPL-3.0+
|
|
|
|
Group: Productivity/Office/Management
|
2017-03-21 13:36:29 +00:00
|
|
|
Url: https://pypi.python.org/pypi/relatorio
|
|
|
|
Source: https://pypi.io/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module Genshi}
|
|
|
|
BuildRequires: %{python_module lxml}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-08-01 16:11:12 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2016-07-04 05:07:33 +00:00
|
|
|
Requires: python-PyYAML
|
|
|
|
Requires: python-pycha
|
2013-10-19 12:19:40 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-03-21 13:36:29 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
2013-10-19 12:19:40 +00:00
|
|
|
|
|
|
|
%description
|
2017-03-21 13:36:29 +00:00
|
|
|
This is a Python module to create reports from Python objects.
|
|
|
|
Output plugins to several formats are included, such
|
2013-10-19 12:19:40 +00:00
|
|
|
as documents (odt, ods, pdf) or images (png, svg).
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{mod_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
2017-03-21 13:36:29 +00:00
|
|
|
%python_build
|
2013-10-19 12:19:40 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-21 13:36:29 +00:00
|
|
|
%python_install
|
2013-10-19 12:19:40 +00:00
|
|
|
|
2017-12-11 09:48:45 +00:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%python_exec setup.py test
|
|
|
|
%endif
|
|
|
|
|
2017-03-21 13:36:29 +00:00
|
|
|
%files %{python_files}
|
2013-10-19 12:19:40 +00:00
|
|
|
%defattr(-,root,root)
|
2016-08-25 09:18:54 +00:00
|
|
|
%doc README AUTHORS LICENSE
|
2013-10-19 12:19:40 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
2017-08-01 16:11:12 +00:00
|
|
|
%changelog
|