From feef1eb3a150254a046ff0cda0bbe94374991be9 Mon Sep 17 00:00:00 2001 From: desert-sailor Date: Thu, 14 Aug 2025 11:02:37 +0800 Subject: [PATCH] Fix build error for setuptools new version 78.1.1 (cherry picked from commit 15af959d894f59c49f3f8bae7e0fddf14cbc4ba8) --- python-daemon.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/python-daemon.spec b/python-daemon.spec index 9ff474a..3488474 100644 --- a/python-daemon.spec +++ b/python-daemon.spec @@ -1,6 +1,6 @@ Name: python-daemon Version: 2.3.1 -Release: 1 +Release: 2 Summary: Library to implement a well-behaved Unix daemon process License: GPL-3.0-only and Apache-2.0 @@ -11,7 +11,10 @@ Source0: https://files.pythonhosted.org/packages/05/97/210f94322675c83831 Patch0: remove-twine-dependency.patch BuildArch: noarch -BuildRequires: python3-devel, python3-setuptools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel BuildRequires: python3-testscenarios BuildRequires: python3-docutils BuildRequires: python3-lockfile @@ -34,23 +37,27 @@ Requires: python3-docutils %prep %autosetup -p1 +sed -i 's#default_path = ""#default_path = ".\/"#g' test_version.py %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install rm -fr %{buildroot}%{python3_sitelib}/tests %check -PYTHONPATH=$(pwd) %{__python3} -m unittest discover +%{__python3} -m unittest discover %files -n python3-daemon %license LICENSE.ASF-2 %{python3_sitelib}/daemon/ -%{python3_sitelib}/python_daemon-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/python_daemon-*.dist-info/ %changelog +* Thu Aug 14 2025 Dongxing Wang - 2.3.1-2 +- Fix build error for setuptools new version 78.1.1 + * Fri Jul 29 2022 jiangxinyu - 2.3.1-1 - Update to 2.3.1 -- Gitee