2010-01-15 15:00:38 +01:00
|
|
|
#
|
2013-10-24 13:09:21 +02:00
|
|
|
# spec file for package python-nltk
|
2010-01-15 15:00:38 +01:00
|
|
|
#
|
2017-03-01 12:23:50 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2010-01-15 15:00:38 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: python-nltk
|
2017-03-01 12:23:50 +01:00
|
|
|
Version: 3.2.2
|
2011-09-23 14:31:44 +02:00
|
|
|
Release: 0
|
|
|
|
Url: http://nltk.org/
|
2010-01-15 15:00:38 +01:00
|
|
|
Summary: Natural Language Toolkit
|
2011-09-23 14:31:44 +02:00
|
|
|
License: Apache-2.0
|
2013-12-08 14:34:47 +01:00
|
|
|
Group: Development/Languages/Python
|
2016-10-15 15:47:44 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/n/nltk/nltk-%{version}.tar.gz
|
2011-09-23 14:31:44 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-03-01 12:23:50 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-PyYAML
|
2010-01-15 15:00:38 +01:00
|
|
|
BuildRequires: python-devel
|
2013-10-24 13:09:21 +02:00
|
|
|
BuildRequires: python-setuptools
|
2011-09-23 14:31:44 +02:00
|
|
|
BuildRequires: python-xml
|
2016-10-15 15:47:44 +02:00
|
|
|
Requires: python-PyYAML
|
2010-01-15 15:00:38 +01:00
|
|
|
Requires: python-numpy
|
|
|
|
Requires: python-tk
|
2011-09-23 14:31:44 +02:00
|
|
|
Requires: python-xml
|
2013-12-08 14:34:47 +01:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
2011-09-23 14:31:44 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2010-01-15 15:00:38 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
NLTK -- the Natural Language Toolkit -- is a suite of open source
|
|
|
|
Python modules, data sets and tutorials supporting research and
|
|
|
|
development in Natural Language Processing.
|
|
|
|
|
|
|
|
%prep
|
2011-09-23 14:31:44 +02:00
|
|
|
%setup -q -n nltk-%{version}
|
2010-01-15 15:00:38 +01:00
|
|
|
|
|
|
|
%build
|
2011-09-23 14:31:44 +02:00
|
|
|
python setup.py build
|
2010-01-15 15:00:38 +01:00
|
|
|
|
|
|
|
%install
|
2011-09-23 14:31:44 +02:00
|
|
|
python setup.py install --prefix=%{_prefix} --root="%{buildroot}"
|
2017-03-01 12:23:50 +01:00
|
|
|
%fdupes $RPM_BUILD_ROOT/
|
2010-01-15 15:00:38 +01:00
|
|
|
|
2011-09-23 14:31:44 +02:00
|
|
|
%files
|
2010-01-15 15:00:38 +01:00
|
|
|
%defattr(-, root, root)
|
2016-10-15 15:47:44 +02:00
|
|
|
%doc LICENSE.txt
|
2011-09-23 14:31:44 +02:00
|
|
|
%{python_sitelib}/*
|
2010-01-15 15:00:38 +01:00
|
|
|
|
|
|
|
%changelog
|