15
0
2025-05-27 15:22:53 +00:00
committed by Git OBS Bridge
parent 8c8ab88fa4
commit e281ccd575
2 changed files with 12 additions and 6 deletions

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>

View File

@@ -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/*