diff --git a/python-daemon.spec b/python-daemon.spec index 9ff474addff1178fda0afa88abdb28b70594cb92..348847464eafdc6e310f1373dd6143c3787467f1 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