A new user interface for you! Read more...

File python3-nltk.spec of Package python3-nltk

#
# spec file for package python3-nltk
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           python3-nltk
Version:        3.2.1
Release:        0
Url:            http://nltk.org/
Summary:        Natural Language Toolkit
License:        Apache-2.0
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/n/nltk/nltk-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-PyYAML
BuildRequires:  python3-xml
Requires:       python3-PyYAML
Requires:       python3-numpy
Requires:       python3-tk
Requires:       python3-xml
BuildArch:      noarch

%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
%setup -q -n nltk-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root="%{buildroot}"

# Tests don't work without internet
# %%check
# pushd nltk/test
# python3 runtests.py
# popd

%files
%defattr(-, root, root)
%doc LICENSE.txt
%{python3_sitelib}/*

%changelog