From 34da969769408985ac4ac53ed52ea8ce7f312c69e8d0a863e9c8226970e38abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 31 Jan 2018 11:40:02 +0000 Subject: [PATCH] Accepting request 571333 from home:RZLourenco:branches:devel:languages:python - Depend on the full python interpreter to fix sqlite3 import during %check OBS-URL: https://build.opensuse.org/request/show/571333 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=11 --- python-nltk.changes | 6 ++++++ python-nltk.spec | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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