diff --git a/python-ptyprocess.spec b/python-ptyprocess.spec index 7886a5a..74d009c 100644 --- a/python-ptyprocess.spec +++ b/python-ptyprocess.spec @@ -4,7 +4,7 @@ Name: python-ptyprocess Version: 0.7.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Run a subprocess in a pseudo terminal License: ISC @@ -20,7 +20,7 @@ process and its pty. %package -n python3-ptyprocess Summary: Run a subprocess in a pseudo terminal %{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros %if %{with tests} BuildRequires: python3-pytest %endif @@ -32,24 +32,29 @@ process and its pty. %prep %autosetup -n ptyprocess-%{version} +%generate_buildrequires +%pyproject_buildrequires -t + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files ptyprocess %if %{with tests} %check %{__python3} -m pytest -v %endif -%files -n python3-ptyprocess +%files -n python3-ptyprocess -f %{pyproject_files} %license LICENSE %doc README.rst -%{python3_sitelib}/ptyprocess/ -%{python3_sitelib}/ptyprocess-*.egg-info %changelog +* Tue Jan 24 2023 Adam Williamson - 0.7.0-3 +- Build with modern pyproject macros, fixes #2164207 + * Fri Jan 20 2023 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild