diff --git a/python-haproxyctl.changes b/python-haproxyctl.changes index 1dac23e..c4228ba 100644 --- a/python-haproxyctl.changes +++ b/python-haproxyctl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 27 15:22:32 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Oct 13 07:19:29 UTC 2022 - Dirk Müller diff --git a/python-haproxyctl.spec b/python-haproxyctl.spec index 406d568..de1d2bd 100644 --- a/python-haproxyctl.spec +++ b/python-haproxyctl.spec @@ -1,7 +1,7 @@ # # spec file for package python-haproxyctl # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,6 @@ # -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-haproxyctl Version: 0.5 Release: 0 @@ -27,7 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/neurogeek/haproxyctl Source: https://github.com/neurogeek/haproxyctl/archive/v%{version}.tar.gz#/haproxyctl-%{version}.tar.gz Source1: gpl-3.0.txt +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: unzip @@ -48,10 +48,10 @@ with their status. cp %{SOURCE1} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/haproxyctl %python_expand %fdupes %{buildroot}%{$python_sitelib} @@ -71,7 +71,8 @@ cp -a conf %{buildroot}%{_datadir}/$python-haproxyctl/} %doc README.md %license gpl-3.0.txt %dir %{_datadir}/%{python_flavor}-haproxyctl -%{python_sitelib}/* +%{python_sitelib}/haproxyctl +%{python_sitelib}/haproxyctl-%{version}*-info %python_alternative %{_bindir}/haproxyctl %{_datadir}/%{python_flavor}-haproxyctl/*