Hello community,
here is the log from the commit of package python-magic-wormhole for
openSUSE:Factory checked in at 2020-05-03 22:45:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-magic-wormhole (Old)
and /work/SRC/openSUSE:Factory/.python-magic-wormhole.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-magic-wormhole"
Sun May 3 22:45:27 2020 rev:5 rq:790494 version:0.11.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-magic-wormhole/python-magic-wormhole.changes
2019-06-03 18:56:12.444410226 +0200
+++
/work/SRC/openSUSE:Factory/.python-magic-wormhole.new.2738/python-magic-wormhole.changes
2020-05-03 22:45:27.826938529 +0200
@@ -1,0 +2,5 @@
+Wed Mar 25 08:12:22 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Fix the update-alternatives to provide py2 variant too bsc#1152403
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-magic-wormhole.spec ++++++
--- /var/tmp/diff_new_pack.ajWSDo/_old 2020-05-03 22:45:28.554940010 +0200
+++ /var/tmp/diff_new_pack.ajWSDo/_new 2020-05-03 22:45:28.558940018 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-magic-wormhole
#
-# 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
@@ -23,7 +23,6 @@
Release: 0
Summary: Tool for transferring files through a secure channel
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/warner/magic-wormhole
Source:
https://files.pythonhosted.org/packages/source/m/magic-wormhole/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module Automat}
@@ -51,8 +50,9 @@
Requires: python-spake2 >= 0.8
Requires: python-tqdm >= 4.13.0
Requires: python-txtorcon >= 0.19.3
+Requires(post): update-alternatives
+Requires(preun): update-alternatives
Suggests: python-magic-wormhole-transit-relay
-Suggests: python-mock
BuildArch: noarch
%python_subpackages
@@ -72,16 +72,21 @@
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%python_clone %{buildroot}%{_bindir}/wormhole
+%python_clone -a %{buildroot}%{_bindir}/wormhole
%check
%pytest src/wormhole/test
+%post
+%python_install_alternative wormhole
+
+%postun
+%python_uninstall_alternative wormhole
+
%files %{python_files}
%license LICENSE
%doc NEWS.md README.md
-%{_bindir}/wormhole-%{python_bin_suffix}
-%python3_only %{_bindir}/wormhole
+%python_alternative %{_bindir}/wormhole
%{python_sitelib}/*
%changelog