From 1ca06982a928606b9f678f7a35ecaa4d63f4e7b299e6ead795ff65f82755c227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 Mar 2019 14:57:28 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tablib?expand=0&rev=4 --- python-tablib.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/python-tablib.spec b/python-tablib.spec index 954c2eb..8a9602c 100644 --- a/python-tablib.spec +++ b/python-tablib.spec @@ -16,24 +16,20 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} %if 0%{?rhel} # I get syntax errors in the brp-python-bytecompile step... %define _python_bytecompile_errors_terminate_build 0 %endif - -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tablib Version: 0.13.0 Release: 0 Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV) License: MIT Group: Development/Languages/Python -Url: http://python-tablib.org +URL: http://python-tablib.org Source: https://files.pythonhosted.org/packages/source/t/tablib/tablib-%{version}.tar.gz BuildRequires: %{python_module PyYAML >= 3.12} -%ifpython2 -BuildRequires: python2-backports.csv -%endif BuildRequires: %{python_module odfpy >= 1.3.5} BuildRequires: %{python_module openpyxl >= 2.4.8} BuildRequires: %{python_module pandas >= 0.20.3} @@ -44,6 +40,7 @@ BuildRequires: %{python_module xlwt >= 1.3.0} BuildRequires: %{python_module xml} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: python2-backports.csv Requires: python-PyYAML >= 3.12 Requires: python-odfpy >= 1.3.5 Requires: python-openpyxl >= 2.4.8 @@ -51,12 +48,11 @@ Requires: python-unicodecsv >= 0.14.1 Requires: python-xlrd >= 1.1.0 Requires: python-xlwt >= 1.3.0 Requires: python-xml +Suggests: python-pandas >= 0.20.3 +BuildArch: noarch %ifpython2 Requires: python2-backports.csv %endif -Suggests: python-pandas >= 0.20.3 -BuildArch: noarch - %python_subpackages %description