|
|
|
@ -1,36 +1,48 @@
|
|
|
|
|
%global modname prettytable
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-%{modname}
|
|
|
|
|
Version: 0.7.2
|
|
|
|
|
Release: 27%{?dist}
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.6.5)
|
|
|
|
|
## RPMAUTOSPEC: autorelease
|
|
|
|
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
|
|
|
|
release_number = 9;
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%global pypi_name prettytable
|
|
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
|
|
|
|
Version: 3.6.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Python library to display tabular data in tables
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
Source0: http://pypi.python.org/packages/source/P/PrettyTable/%{modname}-%{version}.tar.gz
|
|
|
|
|
URL: http://pypi.python.org/pypi/PrettyTable
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
URL: https://github.com/jazzband/prettytable
|
|
|
|
|
Source0: %{pypi_source}
|
|
|
|
|
Patch0: 0001-Drop-depedency-on-hatch-vcs.patch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-setuptools_scm
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
BuildRequires: python3dist(pytest-lazy-fixture)
|
|
|
|
|
BuildRequires: python3dist(wcwidth)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _description\
|
|
|
|
|
PrettyTable is a simple Python library designed to make it quick and easy to\
|
|
|
|
|
represent tabular data in visually appealing ASCII tables. It was inspired by\
|
|
|
|
|
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for\
|
|
|
|
|
selection of which columns are to be printed, independent alignment of columns\
|
|
|
|
|
(left or right justified or centred) and printing of "sub-tables" by specifying\
|
|
|
|
|
%description
|
|
|
|
|
PrettyTable is a simple Python library designed to make it quick and easy to
|
|
|
|
|
represent tabular data in visually appealing ASCII tables. It was inspired by
|
|
|
|
|
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
|
|
|
|
|
selection of which columns are to be printed, independent alignment of columns
|
|
|
|
|
(left or right justified or centred) and printing of "sub-tables" by specifying
|
|
|
|
|
a row range.
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
|
Summary: Python library to display tabular data in tables
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{modname}
|
|
|
|
|
%description -n python3-%{pypi_name}
|
|
|
|
|
PrettyTable is a simple Python library designed to make it quick and easy to
|
|
|
|
|
represent tabular data in visually appealing ASCII tables. It was inspired by
|
|
|
|
|
the ASCII tables used in the PostgreSQL shell psql. PrettyTable allows for
|
|
|
|
@ -38,38 +50,50 @@ selection of which columns are to be printed, independent alignment of columns
|
|
|
|
|
(left or right justified or centred) and printing of "sub-tables" by specifying
|
|
|
|
|
a row range.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
|
|
sed -i -e '/^*!\//, 1d' src/prettytable/*.py
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires -r
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files prettytable
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} %{modname}_test.py
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
|
|
|
|
%doc README.md CHANGELOG.md
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 06 2024 Ondřej Budai <obudai@redhat.com> - 3.6.0-9
|
|
|
|
|
- Drop the python-hatch-vcs dependency
|
|
|
|
|
|
|
|
|
|
* Sat Mar 04 2023 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 3.6.0-1
|
|
|
|
|
- Update to upstream 3.6.0
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
|
%license COPYING
|
|
|
|
|
%doc README CHANGELOG
|
|
|
|
|
%{python3_sitelib}/%{modname}.py*
|
|
|
|
|
%{python3_sitelib}/__pycache__/%{modname}*
|
|
|
|
|
%{python3_sitelib}/%{modname}-%{version}*
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-31
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-30
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.7.2-27
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.7.2-29
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-28
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-27
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.7.2-26
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Thu Jun 03 2021 Python Maint <python-maint@redhat.com> - 0.7.2-26
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-25
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|