From 509876b0ce6679fa2fbfb8dd6de682457ce934e49fc85d2979c204c27a8ce767 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 15 Jan 2010 14:00:38 +0000 Subject: [PATCH] Accepting request 26228 from home:Odd-rationale Copy from home:Odd-rationale/python-nltk via accept of submit request 26228 revision 7. Request was accepted with message: looks good to me OBS-URL: https://build.opensuse.org/request/show/26228 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=1 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + nltk-2.0b7.tar.bz2 | 3 ++ python-nltk-remove-yaml.patch | 12 ++++++ python-nltk.changes | 11 +++++ python-nltk.spec | 79 +++++++++++++++++++++++++++++++++++ 6 files changed, 129 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 nltk-2.0b7.tar.bz2 create mode 100644 python-nltk-remove-yaml.patch create mode 100644 python-nltk.changes create mode 100644 python-nltk.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/nltk-2.0b7.tar.bz2 b/nltk-2.0b7.tar.bz2 new file mode 100644 index 0000000..04f5ccc --- /dev/null +++ b/nltk-2.0b7.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46839396d554defc48efddb8f54d5a72c132e07d8eb754c78ccbf328ef012a48 +size 749180 diff --git a/python-nltk-remove-yaml.patch b/python-nltk-remove-yaml.patch new file mode 100644 index 0000000..b60c9cf --- /dev/null +++ b/python-nltk-remove-yaml.patch @@ -0,0 +1,12 @@ +--- setup.py.old 2009-11-09 06:47:53.000000000 -0600 ++++ setup.py 2009-12-10 17:42:05.570604887 -0600 +@@ -57,8 +57,7 @@ + 'nltk.tag', + 'nltk.tokenize', + 'nltk.toolbox', +- 'nltk.etree', +- 'yaml' ++ 'nltk.etree' + ], + ) + diff --git a/python-nltk.changes b/python-nltk.changes new file mode 100644 index 0000000..f598a4e --- /dev/null +++ b/python-nltk.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Thu Dec 10 17:23:51 CST 2009 - oddrationale@gmail.com + +- added python-nltk-remove-yaml.patch to pevent conflict with + python-yaml +- added Requires: python-yaml + +------------------------------------------------------------------- +Wed Dec 9 15:39:35 CST 2009 - oddrationale@gmail.com + +- Initial Release (Version 2.0b7): \ No newline at end of file diff --git a/python-nltk.spec b/python-nltk.spec new file mode 100644 index 0000000..458bedf --- /dev/null +++ b/python-nltk.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-nltk (Version 2.0b7) +# +# Copyright 2009 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/ +# + +# norootforbuild + +%define modname nltk + +Name: python-nltk +Version: 2.0b7 +Release: 1 +License: Apache V2.0 +Summary: Natural Language Toolkit +Group: Development/Libraries/Python +Url: http://www.nltk.org/ +Source0: nltk-%{version}.tar.bz2 +# PATCH-FIX-OPENSUSE python-nltk-remove-yaml.patch +# prevents conflict with python-yaml +Patch0: python-nltk-remove-yaml.patch +%{py_requires} +BuildRequires: python-devel +BuildRequires: pyxml +BuildRequires: unzip +Requires: python-numpy +Requires: python-tk +Requires: python-yaml +Requires: pyxml +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 +%endif + +%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} +%patch0 + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install --prefix=%{_prefix} --record-rpm=INSTALLED_FILES --root="$RPM_BUILD_ROOT" + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-, root, root) +%doc README.txt LICENSE.txt + +%changelog