Hello community,

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

Package is "python-restview"

Tue May 19 14:57:42 2020 rev:3 rq:807277 version:2.9.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-restview/python-restview.changes  
2019-09-11 10:33:52.159322778 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-restview.new.2738/python-restview.changes    
    2020-05-19 14:57:46.977307366 +0200
@@ -1,0 +2,5 @@
+Tue May 19 09:27:44 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-restview.spec ++++++
--- /var/tmp/diff_new_pack.Bticof/_old  2020-05-19 14:57:48.785311376 +0200
+++ /var/tmp/diff_new_pack.Bticof/_new  2020-05-19 14:57:48.789311385 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-restview
 #
-# 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
@@ -26,19 +26,20 @@
 URL:            https://mg.pov.lt/restview/
 Source:         
https://files.pythonhosted.org/packages/source/r/restview/restview-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-docutils
+Requires:       python-pygments
+Requires:       python-readme_renderer
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module docutils}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module pygments}
 BuildRequires:  %{python_module readme_renderer}
 # /SECTION
-BuildRequires:  fdupes
-Requires:       python-docutils
-Requires:       python-pygments
-Requires:       python-readme_renderer
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -52,15 +53,22 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/restview
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
 %python_exec setup.py test
 
+%post
+%python_install_alternative restview
+
+%postun
+%python_uninstall_alternative restview
+
 %files %{python_files}
 %doc CHANGES.rst README.rst
 %license LICENSE
-%python3_only %{_bindir}/restview
+%python_alternative %{_bindir}/restview
 %{python_sitelib}/*
 
 %changelog


Reply via email to