rpms/python-nltk/F-11 nltk-0.9.9-use-sys-yaml.patch, NONE, 1.1 .cvsignore, 1.5, 1.6 python-nltk.spec, 1.11, 1.12 sources, 1.6, 1.7 nltk-0.9.2-use-sys-yaml.patch, 1.1, NONE

Robin 'cheese' Lee cheeselee at fedoraproject.org
Mon May 17 13:36:13 UTC 2010


Author: cheeselee

Update of /cvs/pkgs/rpms/python-nltk/F-11
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv9103

Modified Files:
	.cvsignore python-nltk.spec sources 
Added Files:
	nltk-0.9.9-use-sys-yaml.patch 
Removed Files:
	nltk-0.9.2-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)
- Remove specifications for obsolete Fedora versions
- 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/F-11/.cvsignore,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -r1.5 -r1.6
--- .cvsignore	7 Apr 2008 06:47:42 -0000	1.5
+++ .cvsignore	17 May 2010 13:36:12 -0000	1.6
@@ -1 +1 @@
-nltk-0.9.2.tar.gz
+nltk-0.9.9.tar.gz


Index: python-nltk.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-nltk/F-11/python-nltk.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -p -r1.11 -r1.12
--- python-nltk.spec	26 Feb 2009 22:32:37 -0000	1.11
+++ python-nltk.spec	17 May 2010 13:36:12 -0000	1.12
@@ -1,24 +1,23 @@
-%{!?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.2
-Release:        3%{?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.2-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
+BuildRequires:  python2-devel tkinter
 Requires:       numpy python-matplotlib tkinter PyYAML
 
 %description
@@ -41,22 +40,23 @@ 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
-chmod +x bioreader/bioreader.py
-chmod +x readability/{crawler,languageclassifier,syllables_no,textanalyzer,urlextracter}.py 
-chmod +x toolbox/{data,iu_mien_hier,language,normalise,settings}.py
+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_no,textanalyzer}.py
+    readability/{syllables_{en,no},textanalyzer}.py
 popd
 popd
 
@@ -70,12 +70,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-*.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)
+- Remove specifications for obsolete Fedora versions
+- URL and Source0 URL revised
+- Remove shebangs instead of making files executable
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:0.9.2-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:0.9.2-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-nltk/F-11/sources,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- sources	7 Apr 2008 06:47:42 -0000	1.6
+++ sources	17 May 2010 13:36:12 -0000	1.7
@@ -1 +1 @@
-f48ae60bac4175f8af67d0f19d4d226c  nltk-0.9.2.tar.gz
+648e25648f66e7e52db28983f39da50f  nltk-0.9.9.tar.gz


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



More information about the scm-commits mailing list