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