File python-relatorio.spec of Package python-relatorio

#
# spec file for package python-relatorio
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 Dr. Axel Braun
#
# 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-%{**}}

%define         mod_name relatorio
Name:           python-relatorio
Version:        0.6.4
Release:        0
Summary:        Python module to create reports from Python objects
License:        GPL-3.0+
Group:          Productivity/Office/Management
Url:            https://pypi.python.org/pypi/relatorio
Source:         https://pypi.io/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module Genshi}
BuildRequires:  %{python_module lxml}
BuildRequires:  %{python_module setuptools}
Requires:       python-PyYAML
Requires:       python-pycha
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%python_subpackages

%description
This is a Python module to create reports from Python objects. 
Output plugins to several formats are included, such
as documents (odt, ods, pdf) or images (png, svg).

%prep
%setup -q -n %{mod_name}-%{version}

%build
%python_build 

%install
%python_install

%files %{python_files}
%defattr(-,root,root)
%doc README AUTHORS LICENSE
%{python_sitelib}/*

openSUSE Build Service is sponsored by