15
0

Accepting request 1280665 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1280665
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-haproxyctl?expand=0&rev=4
This commit is contained in:
2025-05-30 12:31:44 +00:00
committed by Git OBS Bridge
2 changed files with 12 additions and 6 deletions
+5
View File
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 27 15:22:32 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 13 07:19:29 UTC 2022 - Dirk Müller <dmueller@suse.com> Thu Oct 13 07:19:29 UTC 2022 - Dirk Müller <dmueller@suse.com>
+7 -6
View File
@@ -1,7 +1,7 @@
# #
# spec file for package python-haproxyctl # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Name: python-haproxyctl
Version: 0.5 Version: 0.5
Release: 0 Release: 0
@@ -27,7 +25,9 @@ Group: Development/Languages/Python
URL: https://github.com/neurogeek/haproxyctl URL: https://github.com/neurogeek/haproxyctl
Source: https://github.com/neurogeek/haproxyctl/archive/v%{version}.tar.gz#/haproxyctl-%{version}.tar.gz Source: https://github.com/neurogeek/haproxyctl/archive/v%{version}.tar.gz#/haproxyctl-%{version}.tar.gz
Source1: gpl-3.0.txt Source1: gpl-3.0.txt
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: unzip BuildRequires: unzip
@@ -48,10 +48,10 @@ with their status.
cp %{SOURCE1} . cp %{SOURCE1} .
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/haproxyctl %python_clone -a %{buildroot}%{_bindir}/haproxyctl
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -71,7 +71,8 @@ cp -a conf %{buildroot}%{_datadir}/$python-haproxyctl/}
%doc README.md %doc README.md
%license gpl-3.0.txt %license gpl-3.0.txt
%dir %{_datadir}/%{python_flavor}-haproxyctl %dir %{_datadir}/%{python_flavor}-haproxyctl
%{python_sitelib}/* %{python_sitelib}/haproxy
%{python_sitelib}/haproxyctl-%{version}*-info
%python_alternative %{_bindir}/haproxyctl %python_alternative %{_bindir}/haproxyctl
%{_datadir}/%{python_flavor}-haproxyctl/* %{_datadir}/%{python_flavor}-haproxyctl/*