rpms/python-nltk/EL-5 nltk-0.9.9-use-sys-yaml.patch, NONE, 1.1 .cvsignore, 1.3, 1.4 python-nltk.spec, 1.5, 1.6 sources, 1.3, 1.4 nltk-0.9-use-sys-yaml.patch, 1.1, NONE

Robin 'cheese' Lee cheeselee at fedoraproject.org
Mon May 17 15:20:43 UTC 2010


Author: cheeselee

Update of /cvs/pkgs/rpms/python-nltk/EL-5
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv30280

Modified Files:
	.cvsignore python-nltk.spec sources 
Added Files:
	nltk-0.9.9-use-sys-yaml.patch 
Removed Files:
	nltk-0.9-use-sys-yaml.patch 
Log Message:
* Mon May 17 2010 Robin Lee <robinlee.sysu at gmail.com> - 1:0.9.9-1
- Update to 0.9.9 (#527148,#545521)
- Initial build for EL-5
- Requires: python-sqlite added
- URL and Source0 URL revised
- Remove shebangs instead of making files executable


nltk-0.9.9-use-sys-yaml.patch:
 setup.py |    1 -
 1 file changed, 1 deletion(-)

--- NEW FILE nltk-0.9.9-use-sys-yaml.patch ---
--- nltk-0.9.9/setup.py.use-sys-yaml	2009-05-03 18:39:10.000000000 +0800
+++ nltk-0.9.9/setup.py	2010-05-10 14:54:35.745349487 +0800
@@ -89,6 +89,5 @@
                 'nltk_contrib.tiger.utils',
                 'nltk_contrib.toolbox',
                 'nltk_contrib.wordnet',
-                'yaml'
                 ],
     )


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-nltk/EL-5/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- .cvsignore	21 Jan 2008 04:27:53 -0000	1.3
+++ .cvsignore	17 May 2010 15:20:42 -0000	1.4
@@ -1 +1 @@
-nltk-0.9.tar.gz
+nltk-0.9.9.tar.gz


Index: python-nltk.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-nltk/EL-5/python-nltk.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- python-nltk.spec	24 Feb 2008 03:32:41 -0000	1.5
+++ python-nltk.spec	17 May 2010 15:20:42 -0000	1.6
@@ -1,25 +1,27 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
 
 # define prerel
 Name:           python-nltk
 Epoch:          1
-Version:        0.9
-Release:        2%{?dist}
+Version:        0.9.9
+Release:        1%{?dist}
 Summary:        Natural Language Toolkit
 
 Group:          Development/Libraries
 License:        GPLv2
-URL:            http://nltk.sf.net/
-Source0:        http://osdn.dl.sourceforge.net/sourceforge/nltk/nltk-%{version}%{?prerel}.tar.gz
-Patch0:         nltk-0.9-use-sys-yaml.patch
+URL:            http://www.nltk.org/
+Source0:        http://nltk.googlecode.com/files/nltk-%{version}%{?prerel}.tar.gz
+Patch0:         nltk-0.9.9-use-sys-yaml.patch
 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildArch:      noarch
 
 Obsoletes:      python-nltk_lite <= 0.6.6-2%{?dist}
 Provides:       python-nltk_lite = %{version}-%{release}
 
-BuildRequires:  python-devel tkinter
-Requires:       numpy python-matplotlib tkinter PyYAML
+BuildRequires:  python2-devel tkinter
+Requires:       numpy python-matplotlib tkinter PyYAML python-sqlite
 
 %description
 NLTK is a Python package that simplifies the construction of programs
@@ -40,16 +42,24 @@ research projects.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-sed -ie 's|\xD1|-|g' README.txt
 %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
 
-# Make scripts executable
+# Remove shebangs, which has been all removed in upstream development branch
 pushd $RPM_BUILD_ROOT%{python_sitelib}
 pushd nltk
-chmod +x stem/{porter,rslp}.py misc/nemo.py corpus/reader/toolbox.py
-chmod +x test/{coverage,doctest_driver}.py
+sed -i -e '/^#!\//, 1d' downloader.py corpus/reader/toolbox.py \
+    stem/{porter,rslp}.py test/{coverage,doctest_driver}.py \
+    toolbox/{__init__,toolbox}.py app/{wxwordnet_app,nemo_app}.py
+popd
+pushd nltk_contrib
+sed -i -e '/^#!\//, 1d' bioreader/bioreader.py \
+    readability/{crawler,languageclassifier,textanalyzer,urlextracter,syllables_no}.py \
+    toolbox/{data,normalise,etreelib,settings,iu_mien_hier,language}.py \
+    lambek/{lambek,term,lexicon,typedterm}.py mit/six863/tagging/tagparse.py
+# Fix EOL
+sed -i 's|\r$||g' \
+    readability/{syllables_{en,no},textanalyzer}.py
 popd
-chmod +x nltk_contrib/{bioreader/bioreader,toolbox/{settings,language,data}}.py
 popd
 
 
@@ -62,12 +72,19 @@ rm -rf $RPM_BUILD_ROOT
 %doc LICENSE.txt README.txt
 %{python_sitelib}/nltk
 %{python_sitelib}/nltk_contrib
-%if 0%{?fedora} >= 9
-%{python_sitelib}/nltk-0.9-py2.5.egg-info
+%if (0%{?fedora} >= 9 || 0%{?rhel} > 5)
+%{python_sitelib}/nltk-*.egg-info
 %endif
 
 
 %changelog
+* Mon May 17 2010 Robin Lee <robinlee.sysu at gmail.com> - 1:0.9.9-1
+- Update to 0.9.9 (#527148,#545521)
+- Initial build for EL-5
+- Requires: python-sqlite added
+- URL and Source0 URL revised
+- Remove shebangs instead of making files executable
+
 * Sat Feb 23 2008 Michel Salim <michel.sylvan at gmail.com> - 1:0.9-2
 - Use system PyYAML (bug #432329)
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-nltk/EL-5/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- sources	21 Jan 2008 04:27:53 -0000	1.3
+++ sources	17 May 2010 15:20:42 -0000	1.4
@@ -1 +1 @@
-00cec5d3347a6aa69d26553635187f85  nltk-0.9.tar.gz
+648e25648f66e7e52db28983f39da50f  nltk-0.9.9.tar.gz


--- nltk-0.9-use-sys-yaml.patch DELETED ---



More information about the scm-commits mailing list