Hello community, here is the log from the commit of package python-hetzner for openSUSE:Factory checked in at 2020-05-26 17:49:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-hetzner (Old) and /work/SRC/openSUSE:Factory/.python-hetzner.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-hetzner" Tue May 26 17:49:48 2020 rev:4 rq:808796 version:0.8.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-hetzner/python-hetzner.changes 2019-05-28 09:43:46.877833565 +0200 +++ /work/SRC/openSUSE:Factory/.python-hetzner.new.2738/python-hetzner.changes 2020-05-26 17:49:50.679949497 +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.TH9TzX/_old 2020-05-26 17:49:51.251950750 +0200 +++ /var/tmp/diff_new_pack.TH9TzX/_new 2020-05-26 17:49:51.251950750 +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
