Hello community,

here is the log from the commit of package python-nltk for openSUSE:Leap:15.2 
checked in at 2020-03-16 12:21:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-nltk (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-nltk.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-nltk"

Mon Mar 16 12:21:30 2020 rev:16 rq:785522 version:3.4.5

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-nltk/python-nltk.changes        
2020-03-09 18:09:18.997020363 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-nltk.new.3160/python-nltk.changes      
2020-03-16 12:21:31.239713047 +0100
@@ -1,0 +2,5 @@
+Sat Mar 14 09:07:16 UTC 2020 - Tomáš Chvátal <tchva...@suse.com>
+
+- Fix build without python2
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-nltk.spec ++++++
--- /var/tmp/diff_new_pack.LeRPcH/_old  2020-03-16 12:21:31.535713095 +0100
+++ /var/tmp/diff_new_pack.LeRPcH/_new  2020-03-16 12:21:31.535713095 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nltk
 #
-# 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
@@ -19,6 +19,7 @@
 %{!?python_module:%define python_module() python-%{**} python3-%{**}}
 %define interps python python3
 %define pyname nltk
+%bcond_without python2
 Name:           python-nltk
 Version:        3.4.5
 Release:        0
@@ -31,7 +32,6 @@
 BuildRequires:  %{python_module six}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRequires:  python-singledispatch
 BuildRequires:  unzip
 Requires:       python-six
 Recommends:     python-gensim
@@ -44,11 +44,11 @@
 Recommends:     python-scipy
 Recommends:     python-twython
 BuildArch:      noarch
-%ifpython2
-Requires:       python-singledispatch
+%if %{with python2}
+BuildRequires:  python-singledispatch
 %endif
 %ifpython2
-Requires:       python2-singledispatch
+Requires:       python-singledispatch
 %endif
 %python_subpackages
 
@@ -84,6 +84,6 @@
 %doc README.md
 %license LICENSE.txt
 %{python_sitelib}/%{pyname}/
-%{python_sitelib}/%{pyname}-%{version}-py%{py_ver}.egg-info/
+%{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/
 
 %changelog



Reply via email to