diff --git a/python-nltk.changes b/python-nltk.changes index 7d39b18..8f6b23c 100644 --- a/python-nltk.changes +++ b/python-nltk.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 30 17:16:13 UTC 2018 - guigo.lourenco@gmail.com + +- Depend on the full python interpreter to fix sqlite3 import + during %check + ------------------------------------------------------------------- Tue Jan 16 11:02:13 UTC 2018 - guigo.lourenco@gmail.com diff --git a/python-nltk.spec b/python-nltk.spec index 4a029a7..6d04a81 100644 --- a/python-nltk.spec +++ b/python-nltk.spec @@ -1,7 +1,7 @@ # # spec file for package python-nltk # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -14,7 +14,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + + %{!?python_module:%define python_module() python-%{**} python3-%{**}} +%define interps python python3 %define pyname nltk Name: python-nltk @@ -25,10 +28,11 @@ License: Apache-2.0 Group: Development/Languages/Python Url: http://nltk.org/ Source: https://files.pythonhosted.org/packages/source/n/nltk/%{pyname}-%{version}.tar.gz -BuildRequires: python-rpm-macros +BuildRequires: %{interps} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes +BuildRequires: python-rpm-macros Recommends: python-gensim Recommends: python-matplotlib Recommends: python-numpy