File python-camelot-py.spec of Package python-camelot-py
#
# spec file for package python-camelot-py
#
# Copyright (c) 2020 SUSE LLC
#
# 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-%{**}}
Name: python-camelot-py
Version: 0.8.2
Release: 0
License: MIT
Summary: PDF Table Extraction for Humans
Url: http://camelot-py.readthedocs.io/
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/c/camelot-py/camelot-py-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module chardet >= 3.0.4}
BuildRequires: %{python_module click >= 6.7}
BuildRequires: %{python_module numpy >= 1.13.3}
BuildRequires: %{python_module openpyxl >= 2.5.8}
BuildRequires: %{python_module pandas >= 0.23.4}
BuildRequires: %{python_module pdfminer.six >= 20200726}
BuildRequires: %{python_module PyPDF2 >= 1.26.0}
# /SECTION
BuildRequires: fdupes
Requires: python-chardet >= 3.0.4
Requires: python-click >= 6.7
Requires: python-numpy >= 1.13.3
Requires: python-openpyxl >= 2.5.8
Requires: python-pandas >= 0.23.4
Requires: python-pdfminer.six >= 20200726
Requires: python-PyPDF2 >= 1.26.0
Suggests: python-opencv-python >= 3.4.2.17
Suggests: python-matplotlib >= 2.2.3
Suggests: python-opencv-python >= 3.4.2.17
Suggests: python-pytest >= 5.4.3
Suggests: python-pytest-cov >= 2.10.0
Suggests: python-pytest-mpl >= 0.11
Suggests: python-pytest-runner >= 5.2
Suggests: python-Sphinx >= 3.1.2
Suggests: python-opencv-python >= 3.4.2.17
Suggests: python-matplotlib >= 2.2.3
Suggests: python-matplotlib >= 2.2.3
BuildArch: noarch
Requires(post): update-alternatives
Requires(postun): update-alternatives
%python_subpackages
%description
PDF Table Extraction for Humans.
%prep
%setup -q -n camelot-py-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/camelot-py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative camelot-py
%postun
%python_uninstall_alternative camelot-py
%files %{python_files}
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/camelot
%{python_sitelib}/*
%changelog