Hello community,
here is the log from the commit of package python-userpath for
openSUSE:Leap:15.2 checked in at 2020-05-23 16:06:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-userpath (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-userpath.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-userpath"
Sat May 23 16:06:17 2020 rev:2 rq:808098 version:1.3.0
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-userpath/python-userpath.changes
2020-02-22 17:51:45.177687827 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-userpath.new.2738/python-userpath.changes
2020-05-23 16:06:18.952911011 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:45 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-userpath.spec ++++++
--- /var/tmp/diff_new_pack.I4rEgk/_old 2020-05-23 16:06:19.420912014 +0200
+++ /var/tmp/diff_new_pack.I4rEgk/_new 2020-05-23 16:06:19.424912023 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-userpath
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@
BuildRequires: python-rpm-macros
Requires: python-click
Requires: python-distro
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module click}
@@ -49,16 +51,23 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/userpath
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_ALL=C.UTF-8
%pytest
+%post
+%python_install_alternative userpath
+
+%postun
+%python_uninstall_alternative userpath
+
%files %{python_files}
%doc README.rst
%license LICENSE-APACHE LICENSE-MIT
-%python3_only %{_bindir}/userpath
+%python_alternative %{_bindir}/userpath
%{python_sitelib}/*
%changelog