Hello community,

here is the log from the commit of package python-unidiff for openSUSE:Factory 
checked in at 2020-05-19 14:48:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-unidiff (Old)
 and      /work/SRC/openSUSE:Factory/.python-unidiff.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-unidiff"

Tue May 19 14:48:34 2020 rev:5 rq:806963 version:0.5.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-unidiff/python-unidiff.changes    
2019-06-06 18:16:23.724702314 +0200
+++ /work/SRC/openSUSE:Factory/.python-unidiff.new.2738/python-unidiff.changes  
2020-05-19 14:48:35.760084953 +0200
@@ -1,0 +2,5 @@
+Mon May 18 09:10:40 UTC 2020 - Petr Gajdos <pgaj...@suse.com>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-unidiff.spec ++++++
--- /var/tmp/diff_new_pack.jlrgPY/_old  2020-05-19 14:48:36.384086337 +0200
+++ /var/tmp/diff_new_pack.jlrgPY/_new  2020-05-19 14:48:36.388086346 +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


Reply via email to