15
0

Accepting request 1284178 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284178
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hetzner?expand=0&rev=7
This commit is contained in:
2025-06-10 07:07:48 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 12:36:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue May 27 15:25:27 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -17,6 +17,7 @@
#
%bcond_without libalternatives
Name: python-hetzner
Version: 0.8.3
Release: 0
@@ -28,10 +29,10 @@ Source: https://github.com/aszlig/hetzner/archive/v%{version}.tar.gz#/%{
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): alts
Requires(postun): alts
Requires: alts
BuildArch: noarch
%python_subpackages
@@ -52,11 +53,8 @@ A high-level Python API for accessing the Hetzner robot.
%check
%pyunittest discover -v hetzner/tests
%post
%python_install_alternative hetznerctl
%postun
%python_uninstall_alternative hetznerctl
%pre
%python_libalternatives_reset_alternative hetznerctl
%files %{python_files}
%doc README.md