From 0126ac4c24de71b444871f7bae6c511a8a38663ad4de598434fac4a1b4fa1624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 11 Dec 2017 09:58:15 +0000 Subject: [PATCH] - Explain why the tests are conditioned around - Specify all the runtime dependencies based on setup.py OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-relatorio?expand=0&rev=15 --- python-relatorio.changes | 6 ++++++ python-relatorio.spec | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-relatorio.changes b/python-relatorio.changes index ca81e39..dd97e19 100644 --- a/python-relatorio.changes +++ b/python-relatorio.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 11 09:55:31 UTC 2017 - tchvatal@suse.com + +- Explain why the tests are conditioned around +- Specify all the runtime dependencies based on setup.py + ------------------------------------------------------------------- Sat Dec 9 16:12:18 UTC 2017 - axel.braun@gmx.de diff --git a/python-relatorio.spec b/python-relatorio.spec index e8eeaaf..4bf7028 100644 --- a/python-relatorio.spec +++ b/python-relatorio.spec @@ -17,10 +17,8 @@ # -%bcond_with tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} - +%bcond_with tests %define mod_name relatorio Name: python-relatorio Version: 0.8.0 @@ -32,16 +30,19 @@ 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} +# It requires different magic for tests https://github.com/ahupp/python-magic +#BuildRequires: %{python_module magic} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros +Requires: python-Genshi Requires: python-PyYAML +Requires: python-lxml Requires: python-pycha -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description -This is a Python module to create reports from Python objects. +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). @@ -49,7 +50,7 @@ as documents (odt, ods, pdf) or images (png, svg). %setup -q -n %{mod_name}-%{version} %build -%python_build +%python_build %install %python_install @@ -60,7 +61,6 @@ as documents (odt, ods, pdf) or images (png, svg). %endif %files %{python_files} -%defattr(-,root,root) %doc README AUTHORS LICENSE %{python_sitelib}/*