Hello community,
here is the log from the commit of package python-unidiff for
openSUSE:Leap:15.2 checked in at 2020-05-24 18:08:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-unidiff (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-unidiff.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-unidiff"
Sun May 24 18:08:35 2020 rev:5 rq:808398 version:0.5.5
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-unidiff/python-unidiff.changes
2020-03-02 13:24:27.206529121 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-unidiff.new.2738/python-unidiff.changes
2020-05-24 18:08:35.286095981 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:40 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-unidiff.spec ++++++
--- /var/tmp/diff_new_pack.jaL7JB/_old 2020-05-24 18:08:35.582096621 +0200
+++ /var/tmp/diff_new_pack.jaL7JB/_new 2020-05-24 18:08:35.586096629 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-unidiff
#
-# 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,11 +23,13 @@
Summary: Unified diff parsing/metadata extraction library
License: MIT
Group: Development/Languages/Python
-URL: http://github.com/matiasb/python-unidiff
+URL: https://github.com/matiasb/python-unidiff
Source:
https://github.com/matiasb/python-unidiff/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
@@ -45,15 +47,22 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/unidiff
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
+%post
+%python_install_alternative unidiff
+
+%postun
+%python_uninstall_alternative unidiff
+
%files %{python_files}
%doc HISTORY README.rst
%license LICENSE
-%python3_only %{_bindir}/unidiff
+%python_alternative %{_bindir}/unidiff
%{python_sitelib}/*
%changelog