You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
249 lines
8.4 KiB
249 lines
8.4 KiB
## START: Set by rpmautospec
|
|
## (rpmautospec version 0.7.3)
|
|
## RPMAUTOSPEC: autorelease, autochangelog
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
release_number = 10;
|
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
|
print(release_number + base_release_number - 1);
|
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
|
## END: Set by rpmautospec
|
|
|
|
# python-pandas creates a cyclic dependency on python-Bottleneck;
|
|
# we need to be able to break it during the new Python bootstrap
|
|
%bcond bootstrap 0
|
|
%bcond pandas_tests %{without bootstrap}
|
|
|
|
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: python3-devel
|
|
|
|
# Additional test deps; see tox.ini, not in the sdist
|
|
BuildRequires: python3dist(pytest)
|
|
BuildRequires: python3dist(numpy)
|
|
%if ! 0%{?el9} && %{with pandas_tests}
|
|
# The pandas backport is not finished yet in EPEL 9. See BZ 2032550.
|
|
# The BR is needed only for Pandas integration tests.
|
|
BuildRequires: python3dist(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 python3-tabulate
|
|
Summary: %{summary}
|
|
|
|
Recommends: python3-tabulate+widechars
|
|
|
|
%description -n python3-tabulate %{_description}
|
|
|
|
|
|
%pyproject_extras_subpkg -n python3-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 python3-tabulate -f %{pyproject_files}
|
|
%doc CHANGELOG
|
|
%doc README.md
|
|
|
|
%{_bindir}/tabulate
|
|
%{_mandir}/man1/tabulate.1*
|
|
|
|
|
|
%changelog
|
|
* Sun Jan 05 2025 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.9.0-10
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
## START: Generated by rpmautospec
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.9.0-9
|
|
- Rebuilt for Python 3.13
|
|
|
|
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 0.9.0-8
|
|
- Bootstrap for Python 3.13
|
|
|
|
* Thu May 30 2024 Benjamin A. Beasley <code@musicinmybrain.net> - 0.9.0-7
|
|
- Add bcond to allow breaking cyclic dependency on python-Bottleneck
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 0.9.0-3
|
|
- Rebuilt for Python 3.12
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
* Sat Oct 08 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.9.0-1
|
|
- Update to 0.9.0 (close RHBZ#2132789)
|
|
|
|
* Fri Oct 07 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.10-2
|
|
- Use pyproject-rpm-macros
|
|
- Adjust packaged documentation files
|
|
- Run doctests; see tox.ini, not in the sdist
|
|
- Tidy up package description
|
|
- Switch URL from PyPI project to GitHub project
|
|
- Add a man page
|
|
|
|
* Thu Aug 18 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 0.8.10-1
|
|
- Update to 0.8.10 (close RHBZ#2099766)
|
|
- Drop EPEL9 numpy workaround; the flexiblas-related crashes have been fixed
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Wed Jun 15 2022 Python Maint <python-maint@redhat.com> - 0.8.9-4
|
|
- Rebuilt for Python 3.11
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Sun Jul 04 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.9-1
|
|
- Update to latest release
|
|
- replace nose with pytest
|
|
- drop no longer needed patch
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.7-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Fri Jul 10 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.7-3
|
|
- Add tabulate[widechars] subpackage
|
|
|
|
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.7-2
|
|
- Rebuilt for Python 3.9
|
|
|
|
* Sun Mar 29 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 0.8.7-1
|
|
- Update to 0.8.7
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.6-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Wed Jan 22 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 0.8.6-1
|
|
- Update to 0.8.6
|
|
|
|
* Wed Nov 20 12:21:20 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.5-2
|
|
- Remove all useless changes in spec
|
|
|
|
* Fri Oct 25 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.5-1
|
|
- Update to 0.8.5
|
|
|
|
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-7
|
|
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
|
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-6
|
|
- Rebuilt for Python 3.8
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jan 26 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.3-3
|
|
- Remove py2 subpackage
|
|
|
|
* Sat Jan 26 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.3-2
|
|
- Fix FTBFS
|
|
|
|
* Sat Jan 26 2019 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.8.3-1
|
|
- Update to latest upstream release
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.2-3
|
|
- Rebuilt for Python 3.7
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Tue Jan 09 2018 Steve Traylen <steve.traylen@cern.ch> - 0.8.2-1
|
|
- Update to 0.8.2, Correct source URL.
|
|
|
|
* Tue Oct 03 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.1-1
|
|
- Update to 0.8.1
|
|
- Run more tests
|
|
|
|
* Sun Oct 01 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
|
|
- Update to 0.8.0
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.5-5
|
|
- Rebuild for Python 3.6
|
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-4
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.5-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Sun Nov 29 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.5-2
|
|
- Drop multiple versions of bins
|
|
|
|
* Tue Nov 24 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.7.5-1
|
|
- Initial package
|
|
|
|
## END: Generated by rpmautospec
|