Name: python-tabulate Version: 0.9.0 Release: %autorelease Summary: Pretty-print tabular data in Python, a library and a command-line utility # SPDX License: MIT URL: https://github.com/astanin/python-tabulate Source0: %{pypi_source tabulate} # Hand-written for Fedora based on --help output using groff_man(7) format Source1: tabulate.1 BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel # Additional test deps; see tox.ini, not in the sdist BuildRequires: python%{python3_version}dist(pytest) BuildRequires: python%{python3_version}dist(numpy) %if ! 0%{?el9} # The pandas backport is not finished yet in EPEL 9. See BZ 2032550. # The BR is needed only for Pandas integration tests. BuildRequires: python%{python3_version}dist(pandas) %endif %global _description %{expand: The main use cases of the library are: • printing small tables without hassle: just one function call, formatting is guided by the data itself • authoring tabular data for lightweight plain-text markup: multiple output formats suitable for further editing or transformation • readable presentation of mixed textual and numeric data: smart column alignment, configurable number formatting, alignment by a decimal point} %description %{_description} %package -n python%{python3_pkgversion}-tabulate Summary: %{summary} Recommends: python%{python3_pkgversion}-tabulate+widechars %description -n python%{python3_pkgversion}-tabulate %{_description} %pyproject_extras_subpkg -n python%{python3_pkgversion}-tabulate widechars %prep %autosetup -n tabulate-%{version} %generate_buildrequires %pyproject_buildrequires -x widechars %build %pyproject_wheel %install %pyproject_install %pyproject_save_files tabulate install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p '%{SOURCE1}' %check %pytest --doctest-modules --ignore benchmark.py %files -n python%{python3_pkgversion}-tabulate -f %{pyproject_files} %doc CHANGELOG %doc README.md %{_bindir}/tabulate %{_mandir}/man1/tabulate.1* %changelog %autochangelog