diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch deleted file mode 100644 index 3597123..0000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- c/setup.py 1970-01-01 08:00:00.000000000 +0800 -+++ a/setup.py 2022-12-06 09:22:10.203917839 +0800 -@@ -0,0 +1,14 @@ -+#!/usr/bin/env python -+ -+try: -+ from setuptools import setup -+except ImportError: -+ from distutils.core import setup -+ -+ -+setup( -+ name="tabulate", -+ version="0.9.0", -+ py_modules=["tabulate"], -+ entry_points={"console_scripts": ["tabulate = tabulate:_main"]} -+) diff --git a/python-tabulate.spec b/python-tabulate.spec index 8485242..def217f 100644 --- a/python-tabulate.spec +++ b/python-tabulate.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-tabulate Version: 0.9.0 -Release: 1 +Release: 2 Summary: Pretty-print tabular data License: MIT URL: https://github.com/astanin/python-tabulate Source0: https://files.pythonhosted.org/packages/ec/fe/802052aecb21e3797b8f7902564ab6ea0d60ff8ca23952079064155d1ae1/tabulate-0.9.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch %description @@ -27,6 +26,8 @@ Provides: python-tabulate = %{version}-%{release} # Base build requires BuildRequires: python3-devel BuildRequires: python3-setuptools +BuildRequires: python3-pip python3-wheel +BuildRequires: python3-hatchling python3-hatch-vcs # General requires BuildRequires: python3-wcwidth BuildRequires: python3-pytest @@ -58,13 +59,13 @@ The main use cases of the library are: decimal point %prep -%autosetup -n tabulate-%{version} +%autosetup -n tabulate-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install tabulate==%{version} install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi @@ -99,11 +100,15 @@ PYTHONPATH=. pytest %files -n python3-tabulate -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/tabulate/__pycache__/* %files help -f doclist.lst %{_docdir}/* %changelog +* Tue May 09 2023 yaoxin - 0.9.0-2 +- Modify compilation method and remove the adaptation to setup.py + * Mon Dec 05 2022 wangjunqi - 0.9.0-1 - Update package to version 0.9.0