diff --git a/prettytable-3.2.0.tar.gz b/prettytable-3.2.0.tar.gz deleted file mode 100644 index aacfa7f733cb3f0f2a92675421ca5620e78a3f50..0000000000000000000000000000000000000000 Binary files a/prettytable-3.2.0.tar.gz and /dev/null differ diff --git a/prettytable-3.6.0.tar.gz b/prettytable-3.6.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c3f3fb5a9133254d3ae4b5dabe2a42a2ef272a29 Binary files /dev/null and b/prettytable-3.6.0.tar.gz differ diff --git a/python-prettytable.spec b/python-prettytable.spec index e2dc7a5451c87251ef27e03c5ca661ae733071a6..d17419c949baadfc9848d0af5e7498659bad2a5f 100644 --- a/python-prettytable.spec +++ b/python-prettytable.spec @@ -1,26 +1,19 @@ %define anolis_release 1 -%global modname prettytable +%define debug_package %{nil} +%global pypi_name prettytable +%global pypi_version 3.6.0 -Name: python-%{modname} -Version: 3.2.0 -Release: %{anolis_release}%{dist} -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 - -BuildArch: noarch +Name: python-prettytable +Version: %{pypi_version} +Release: %{anolis_release}%{?dist} +Summary: A simple Python library for easily displaying tabular data in a visually appealing ASCII table format +License: BSD (3 clause) +URL: https://pypi.org/project/prettytable/ +Source0: https://files.pythonhosted.org/packages/ba/b6/8e78337766d4c324ac22cb887ecc19487531f508dbf17d922b91492d55bb/prettytable-3.6.0.tar.gz BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-pip -BuildRequires: python3dist(setuptools) -BuildRequires: python3dist(setuptools-scm) -BuildRequires: python3dist(pytest) -BuildRequires: python3dist(wcwidth) - +BuildArch: noarch %global _description\ PrettyTable is a simple Python library designed to make it quick and easy to\ @@ -32,11 +25,11 @@ a row range. %description %_description -%package -n python3-%{modname} -Summary: Python library to display tabular data in tables -%{?python_provide:%python_provide python3-%{modname}} -%description -n python3-%{modname} +%package -n python3-%{pypi_name} +Summary: %{summary} + +%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 @@ -44,28 +37,36 @@ 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}-doc +Summary: doc files for python3-%{pypi_name} +BuildArch: noarch +Requires: python3-%{pypi_name} = %{version}-%{release} + +%description -n python3-%{pypi_name}-doc +doc files for python3-%{pypi_name} %prep -%setup -q -n %{modname}-%{version} -rm -rf %{modname}.egg-info +%autosetup -n %{pypi_name}-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install -%py3_install - -%check -%{__python3} setup.py test +%pyproject_install +%pyproject_save_files %{pypi_name} -%files -n python3-%{modname} -%{!?_licensedir:%global license %%doc} -%license COPYING -%{python3_sitelib}/%{modname}/*.py -%{python3_sitelib}/%{modname}/__pycache__/* -%{python3_sitelib}/%{modname}-%{version}* +%files -n python3-%{pypi_name} -f %{pyproject_files} +%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/ +%files -n python3-%{pypi_name}-doc +%doc README.md CHANGELOG.md -%changelog +%changelog +* Tue Jan 03 2023 mgb01105731 - 3.6.0-1 +- update to version 3.6.0 + * Tue Apr 19 2022 Zhongling He 3.2.0-1 - Init package from upstream v3.2.0