forked from pool/python-nltk
- Update to version 2.0.1rc1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
f3752dd71f
commit
fa205a413e
@@ -16,61 +16,50 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define modname nltk
|
||||
|
||||
Name: python-nltk
|
||||
Version: 2.0b8
|
||||
Release: 1
|
||||
License: Apache V2.0
|
||||
Version: 2.0.1rc1
|
||||
Release: 0
|
||||
Url: http://nltk.org/
|
||||
Summary: Natural Language Toolkit
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.nltk.org/
|
||||
Source0: nltk-%{version}.tar.bz2
|
||||
%{py_requires}
|
||||
Source: http://pypi.python.org/packages/source/n/nltk/nltk-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
BuildRequires: python-yaml
|
||||
BuildRequires: pyxml
|
||||
BuildRequires: unzip
|
||||
BuildRequires: python-xml
|
||||
Requires: python-numpy
|
||||
Requires: python-tk
|
||||
Requires: python-yaml
|
||||
Requires: pyxml
|
||||
Requires: python-xml
|
||||
%if 0%{?suse_version}
|
||||
Recommends: python-matplotlib
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# Build as noarch for >= 11.2
|
||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||||
BuildArch: noarch
|
||||
%py_requires
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%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.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Steven Bird <sb@csse.unimelb.edu.au>
|
||||
Edward Loper <edloper@gradient.cis.upenn.edu>
|
||||
Ewan Klein <ewan@inf.ed.ac.uk>
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%setup -q -n nltk-%{version}
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
%{__python} setup.py install --prefix=%{_prefix} --record-rpm=INSTALLED_FILES --root="$RPM_BUILD_ROOT"
|
||||
python setup.py install --prefix=%{_prefix} --root="%{buildroot}"
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files -f INSTALLED_FILES
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc README.txt LICENSE.txt
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user