Hello community,

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

Package is "python-num2words"

Thu May 28 09:12:05 2020 rev:5 rq:808046 version:0.5.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-num2words/python-num2words.changes        
2019-06-13 23:01:38.935500726 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-num2words.new.3606/python-num2words.changes  
    2020-05-28 09:13:03.684567058 +0200
@@ -1,0 +2,5 @@
+Thu May 21 10:56:40 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-num2words.spec ++++++
--- /var/tmp/diff_new_pack.O1gvzy/_old  2020-05-28 09:13:04.632569349 +0200
+++ /var/tmp/diff_new_pack.O1gvzy/_new  2020-05-28 09:13:04.636569359 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-num2words
 #
-# 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,19 +23,20 @@
 Summary:        Modules to convert numbers to words
 License:        LGPL-2.1-only
 Group:          Development/Languages/Python
-Url:            https://github.com/savoirfairelinux/num2words
+URL:            https://github.com/savoirfairelinux/num2words
 Source:         
https://files.pythonhosted.org/packages/source/n/num2words/num2words-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:       python-docopt >= 0.6.2
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module delegator.py}
 BuildRequires:  %{python_module docopt >= 0.6.2}
 BuildRequires:  %{python_module pytest}
 # /SECTION
-Requires:       python-docopt >= 0.6.2
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -51,16 +52,23 @@
 
 %install
 %python_install
+%python_clone -a %{buildroot}%{_bindir}/num2words
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# one test failing
-%pytest -k "not test_cli_with_lang_to" tests
+# test_cli.py has 'python' command hardcoded
+%pytest -k "not test_cli" tests
+
+%post
+%python_install_alternative num2words
+
+%postun
+%python_uninstall_alternative num2words
 
 %files %{python_files}
 %doc CHANGES.rst README.rst
 %license COPYING
 %{python_sitelib}/*
-%python3_only %{_bindir}/num2words
+%python_alternative %{_bindir}/num2words
 
 %changelog


Reply via email to