Hello community,

here is the log from the commit of package python-docutils-ast-writer for 
openSUSE:Factory checked in at 2020-05-28 09:17:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-docutils-ast-writer (Old)
 and      /work/SRC/openSUSE:Factory/.python-docutils-ast-writer.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-docutils-ast-writer"

Thu May 28 09:17:49 2020 rev:2 rq:809409 version:0.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-docutils-ast-writer/python-docutils-ast-writer.changes
    2019-02-25 17:58:01.462256064 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-docutils-ast-writer.new.3606/python-docutils-ast-writer.changes
  2020-05-28 09:17:52.957043465 +0200
@@ -1,0 +2,5 @@
+Tue May 26 07:22:45 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-docutils-ast-writer.spec ++++++
--- /var/tmp/diff_new_pack.w06VuV/_old  2020-05-28 09:17:53.725045278 +0200
+++ /var/tmp/diff_new_pack.w06VuV/_new  2020-05-28 09:17:53.729045288 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-docutils-ast-writer
 #
-# Copyright (c) 2018 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
@@ -12,25 +12,28 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
+
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-docutils-ast-writer
 Version:        0.1.2
 Release:        0
-License:        MIT
 Summary:        AST Writer for docutils
-Url:            https://github.com/jimo1001/docutils-ast-writer
+License:        MIT
 Group:          Development/Languages/Python
+URL:            https://github.com/jimo1001/docutils-ast-writer
 Source:         
https://files.pythonhosted.org/packages/source/d/docutils-ast-writer/docutils-ast-writer-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/jimo1001/docutils-ast-writer/master/LICENSE
+BuildRequires:  %{python_module docutils >= 0.12}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  %{python_module docutils >= 0.12}
 Requires:       python-docutils >= 0.12
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -45,14 +48,21 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/rst2ast
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 #%%check has no tests https://github.com/jimo1001/docutils-ast-writer/issues/2
 
+%post
+%python_install_alternative rst2ast
+
+%postun
+%python_uninstall_alternative rst2ast
+
 %files %{python_files}
 %license LICENSE
 %doc README.rst
-%python3_only %{_bindir}/rst2ast
+%python_alternative %{_bindir}/rst2ast
 %{python_sitelib}/*
 
 %changelog


Reply via email to