diff --git a/nltk-2.0.1rc1.tar.gz b/nltk-2.0.1rc1.tar.gz new file mode 100644 index 0000000..c6e195b --- /dev/null +++ b/nltk-2.0.1rc1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b595a204495292aa820c5ebc612464ec2ee8a7df3bcddd5392ccc8e886fec534 +size 1958214 diff --git a/nltk-2.0b8.tar.bz2 b/nltk-2.0b8.tar.bz2 deleted file mode 100644 index cbf7407..0000000 --- a/nltk-2.0b8.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:08fe7f1b167cdce810d729547eb14fd276a47d222b697dec4f97c1358161509a -size 731882 diff --git a/python-nltk.changes b/python-nltk.changes index a258924..048246c 100644 --- a/python-nltk.changes +++ b/python-nltk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 23 12:29:05 UTC 2011 - saschpe@suse.de + +- Update to version 2.0.1rc1 + ------------------------------------------------------------------- Sun Feb 7 18:51:07 CST 2010 - oddrationale@gmail.com diff --git a/python-nltk.spec b/python-nltk.spec index 5932cee..41d7aff 100644 --- a/python-nltk.spec +++ b/python-nltk.spec @@ -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 - Edward Loper - Ewan Klein - %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