Hello community,

here is the log from the commit of package python-language-check for 
openSUSE:Factory checked in at 2020-05-26 17:23:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-language-check (Old)
 and      /work/SRC/openSUSE:Factory/.python-language-check.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-language-check"

Tue May 26 17:23:43 2020 rev:3 rq:808693 version:1.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-language-check/python-language-check.changes  
    2019-01-08 12:26:03.180431448 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-language-check.new.2738/python-language-check.changes
    2020-05-26 17:23:44.792545742 +0200
@@ -1,0 +2,5 @@
+Mon May 25 06:50:33 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-language-check.spec ++++++
--- /var/tmp/diff_new_pack.EM0Old/_old  2020-05-26 17:23:45.720547737 +0200
+++ /var/tmp/diff_new_pack.EM0Old/_new  2020-05-26 17:23:45.724547745 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-language-check
 #
-# 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
@@ -16,23 +16,22 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define         skip_python2 1
+%define ltver   3.2
 # Tests try to access the network on other architectures for some reason
 %ifarch x86_64 %{ix86}
 %bcond_without  test
 %else
 %bcond_with     test
 %endif
-
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define         skip_python2 1
 Name:           python-language-check
 Version:        1.1
 Release:        0
-%define ltver   3.2
 Summary:        Python wrapper for checking grammar with LanguageTool
 License:        LGPL-3.0-or-later
 Group:          Development/Languages/Python
-Url:            https://github.com/myint/language-check
+URL:            https://github.com/myint/language-check
 Source:         
https://files.pythonhosted.org/packages/source/l/language-check/language-check-%{version}.tar.gz
 Source1:        https://www.languagetool.org/download/LanguageTool-%{ltver}.zip
 BuildRequires:  %{python_module setuptools}
@@ -41,8 +40,9 @@
 BuildRequires:  python-rpm-macros
 BuildRequires:  unzip
 Requires:       java = 1.8.0
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -71,6 +71,7 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/language-check
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %if %{with test}
@@ -79,11 +80,16 @@
 %python_exec setup.py test
 %endif
 
+%post
+%python_install_alternative language-check
+
+%postun
+%python_uninstall_alternative language-check
+
 %files %{python_files}
-%defattr(-,root,root,-)
 %doc README.rst
 %license COPYING COPYING.LESSER
-%python3_only %{_bindir}/language-check
+%python_alternative %{_bindir}/language-check
 %{python_sitelib}/*
 
 %changelog



Reply via email to