Hello community,
here is the log from the commit of package python-hetzner for
openSUSE:Leap:15.2 checked in at 2020-05-28 20:09:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-hetzner (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-hetzner.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hetzner"
Thu May 28 20:09:17 2020 rev:5 rq:809069 version:0.8.2
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-hetzner/python-hetzner.changes
2020-01-30 06:07:18.918427967 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-hetzner.new.3606/python-hetzner.changes
2020-05-28 20:09:17.634845007 +0200
@@ -1,0 +2,5 @@
+Mon May 25 10:59:17 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-hetzner.spec ++++++
--- /var/tmp/diff_new_pack.Jbo6z2/_old 2020-05-28 20:09:17.974846019 +0200
+++ /var/tmp/diff_new_pack.Jbo6z2/_new 2020-05-28 20:09:17.974846019 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-hetzner
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2018, Martin Hauke <[email protected]>
#
# All modifications and additions to the file contributed by third parties
@@ -24,11 +24,13 @@
Summary: High level access to the Hetzner robot
License: BSD-2-Clause
Group: Development/Languages/Python
-Url: https://github.com/aszlig/hetzner
+URL: https://github.com/aszlig/hetzner
Source:
https://github.com/aszlig/hetzner/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -43,15 +45,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/hetznerctl
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
+%post
+%python_install_alternative hetznerctl
+
+%postun
+%python_uninstall_alternative hetznerctl
+
%files %{python_files}
%doc README.md
%license COPYING
-%python3_only %{_bindir}/hetznerctl
+%python_alternative %{_bindir}/hetznerctl
%{python_sitelib}/*
%changelog