commit c88336f3689f09c9ff2968c42fc5a58ea4480d38 Author: MSVSphere Packaging Team Date: Fri Oct 25 18:47:43 2024 +0300 import python-prettytable-3.6.0-9.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89b0912 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/prettytable-3.6.0.tar.gz diff --git a/.python-prettytable.metadata b/.python-prettytable.metadata new file mode 100644 index 0000000..0f237bb --- /dev/null +++ b/.python-prettytable.metadata @@ -0,0 +1 @@ +bcfea81e3137ccd6ad07f13495abdf067a21ff10 SOURCES/prettytable-3.6.0.tar.gz diff --git a/SOURCES/0001-Drop-depedency-on-hatch-vcs.patch b/SOURCES/0001-Drop-depedency-on-hatch-vcs.patch new file mode 100644 index 0000000..b54c808 --- /dev/null +++ b/SOURCES/0001-Drop-depedency-on-hatch-vcs.patch @@ -0,0 +1,54 @@ +From c34f3d01eb258ca6f97fc72d7bf8162aa40b4cab Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Budai?= +Date: Tue, 6 Aug 2024 11:00:39 +0200 +Subject: [PATCH] Drop depedency on hatch-vcs + +We want to remove it from EL10, we don't need automatic versions there. +--- + pyproject.toml | 12 +----------- + 1 file changed, 1 insertion(+), 11 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 410c5de..d7c3cb0 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,12 +1,12 @@ + [build-system] + build-backend = "hatchling.build" + requires = [ +- "hatch-vcs", + "hatchling", + ] + + [project] + name = "prettytable" ++version = "3.6.0" + description = "A simple Python library for easily displaying tabular data in a visually appealing ASCII table format" + readme = "README.md" + license = {text = "BSD (3 clause)"} +@@ -17,9 +17,6 @@ dependencies = [ + 'importlib-metadata; python_version < "3.8"', + "wcwidth", + ] +-dynamic = [ +- "version", +-] + classifiers = [ + "License :: OSI Approved :: BSD License", + "Programming Language :: Python", +@@ -46,12 +43,5 @@ tests = [ + Homepage = "https://github.com/jazzband/prettytable" + Source = "https://github.com/jazzband/prettytable" + +- +-[tool.hatch] +-version.source = "vcs" +- +-[tool.hatch.version.raw-options] +-local_scheme = "no-local-version" +- + [tool.isort] + profile = "black" +-- +2.45.2 + diff --git a/SPECS/python-prettytable.spec b/SPECS/python-prettytable.spec new file mode 100644 index 0000000..8ea3e0e --- /dev/null +++ b/SPECS/python-prettytable.spec @@ -0,0 +1,203 @@ +## 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-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) + + +%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. + +%package -n python3-%{pypi_name} +Summary: Python library to display tabular data in tables + +%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 +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 +%autosetup -n %{pypi_name}-%{version} -p1 +sed -i -e '/^*!\//, 1d' src/prettytable/*.py + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files prettytable + +%check +%pytest + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md CHANGELOG.md + +%changelog +* Fri Oct 25 2024 MSVSphere Packaging Team - 3.6.0-9 +- Rebuilt for MSVSphere 10 + +* Tue Aug 06 2024 Ondřej Budai - 3.6.0-9 +- Drop the python-hatch-vcs dependency + +* Sat Mar 04 2023 Mikel Olasagasti Uranga - 3.6.0-1 +- Update to upstream 3.6.0 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.7.2-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.7.2-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 0.7.2-29 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.7.2-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.7.2-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 0.7.2-26 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.7.2-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.7.2-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 0.7.2-23 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.7.2-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sun Nov 17 2019 Miro Hrončok - 0.7.2-21 +- Subpackage python2-prettytable has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Oct 03 2019 Miro Hrončok - 0.7.2-20 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Fri Aug 16 2019 Miro Hrončok - 0.7.2-19 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.7.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.7.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.7.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 0.7.2-15 +- Rebuilt for Python 3.7 + +* Mon Feb 12 2018 Iryna Shcherbina - 0.7.2-14 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.7.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.7.2-12 +- Python 2 binary package renamed to python2-prettytable + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.7.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.7.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Dec 09 2016 Charalampos Stratakis - 0.7.2-9 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.7.2-8 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.7.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 10 2015 Fedora Release Engineering - 0.7.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.7.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jul 31 2014 Tom Callaway - 0.7.2-4 +- fix license handling + +* Sat Jun 07 2014 Fedora Release Engineering - 0.7.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 14 2014 Bohuslav Kabrda - 0.7.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 + +* Tue Jan 07 2014 Pádraig Brady - 0.7.2-1 +- Latest upstream + +* Sun Aug 04 2013 Fedora Release Engineering - 0.6.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.6.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Aug 07 2012 Ralph Bean - 0.6.1-1 +- New upstream version +- Added support for python3 +- Included README, COPYING, and CHANGELOG in docs + +* Tue Aug 07 2012 Pádraig Brady - 0.6-1 +- Update to 0.6 + +* Sat Jul 21 2012 Fedora Release Engineering - 0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Jul 05 2011 Chris Lalancette - 0.5-2 +- BuildRequire python-setuptools + +* Wed Jun 29 2011 Chris Lalancette - 0.5-1 +- Initial package.