forked from pool/python-tabledata
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-tabledata
|
||
|
#
|
||
|
# Copyright (c) 2021 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 https://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
|
%define skip_python2 1
|
||
|
Name: python-tabledata
|
||
|
Version: 1.1.3
|
||
|
Release: 0
|
||
|
Summary: Python library to represent tabular data
|
||
|
License: MIT
|
||
|
Group: Development/Languages/Python
|
||
|
URL: https://github.com/thombashi/tabledata
|
||
|
Source: https://files.pythonhosted.org/packages/source/t/tabledata/tabledata-%{version}.tar.gz
|
||
|
## SECTION test requirements
|
||
|
BuildRequires: %{python_module DataProperty >= 0.44.0}
|
||
|
BuildRequires: %{python_module loguru >= 0.4.1}
|
||
|
BuildRequires: %{python_module pytest}
|
||
|
BuildRequires: %{python_module setuptools >= 38.3.0}
|
||
|
BuildRequires: %{python_module six >= 1.10.0}
|
||
|
BuildRequires: %{python_module typepy >= 0.6.4}
|
||
|
## /SECTION
|
||
|
BuildRequires: fdupes
|
||
|
BuildRequires: python-rpm-macros
|
||
|
Requires: python-DataProperty >= 0.44.0
|
||
|
Requires: python-setuptools >= 38.3.0
|
||
|
Requires: python-six >= 1.10.0
|
||
|
Requires: python-typepy >= 0.6.4
|
||
|
BuildArch: noarch
|
||
|
%python_subpackages
|
||
|
|
||
|
%description
|
||
|
tabledata is a Python library to represent tabular data.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n tabledata-%{version}
|
||
|
|
||
|
%build
|
||
|
%python_build
|
||
|
|
||
|
%install
|
||
|
%python_install
|
||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||
|
|
||
|
%check
|
||
|
%pytest
|
||
|
|
||
|
%files %{python_files}
|
||
|
%license LICENSE
|
||
|
%doc README.rst
|
||
|
%{python_sitelib}/tabledata*
|
||
|
|
||
|
%changelog
|