From da2b3492d8290e178c1f43ba1e0bd3dbe66f826d Mon Sep 17 00:00:00 2001 From: cheeselee Date: May 17 2010 14:06:48 +0000 Subject: - Updated to 2.0b8 - License switched upstream to ASL 2.0 since 2.0b4 - Remove specifications for obsolete Fedora versions - Remove python_sitelib definition - URL and Source0 URL revised - BuildRoot tag removed - BR: tkinter removed, PyYAML added - Requires: tkinter removed - nltk-0.9.2-use-sys-yaml.patch removed - All redundant commands in 'install' section removed - nltk_contrib entry in 'file' section was removed since it will include no file. Upstream split off a new tarball for nltk-contrib. --- diff --git a/.cvsignore b/.cvsignore index ca213d5..83e8a2e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -nltk-0.9.2.tar.gz +nltk-2.0b8.tar.gz diff --git a/nltk-0.9.2-use-sys-yaml.patch b/nltk-0.9.2-use-sys-yaml.patch deleted file mode 100644 index 094f194..0000000 --- a/nltk-0.9.2-use-sys-yaml.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- nltk-0.9.2/setup.py.use-sys-yaml 2008-02-28 16:49:21.000000000 -0500 -+++ nltk-0.9.2/setup.py 2008-04-07 02:13:45.000000000 -0400 -@@ -64,6 +64,5 @@ - 'nltk_contrib.rte', - 'nltk_contrib.toolbox', - 'nltk_contrib.wordnet', -- 'yaml' - ], - ) diff --git a/python-nltk.spec b/python-nltk.spec index 6115dc6..9b21cea 100644 --- a/python-nltk.spec +++ b/python-nltk.spec @@ -1,25 +1,18 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} - -# define prerel +%global prerel b8 Name: python-nltk Epoch: 1 -Version: 0.9.2 -Release: 4%{?dist} +Version: 2.0 +Release: 0.1.%{prerel}%{?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 -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +License: ASL 2.0 +URL: http://www.nltk.org/ +Source0: http://nltk.googlecode.com/files/nltk-%{version}%{?prerel}.tar.gz 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 PyYAML +Requires: numpy python-matplotlib PyYAML %description NLTK is a Python package that simplifies the construction of programs @@ -32,7 +25,6 @@ research projects. %prep %setup -q -n nltk-%{version}%{?prerel} -%patch0 -p1 -b .use-sys-yaml %build @@ -41,25 +33,8 @@ 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 -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 -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 -# Fix EOL -sed -i 's|\r$||g' \ - readability/{syllables_no,textanalyzer}.py -popd -popd - %clean rm -rf $RPM_BUILD_ROOT @@ -69,13 +44,24 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,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 - 1:2.0-0.1.b8 +- Updated to 2.0b8 +- License switched upstream to ASL 2.0 since 2.0b4 +- Remove specifications for obsolete Fedora versions +- Remove python_sitelib definition +- URL and Source0 URL revised +- BuildRoot tag removed +- BR: tkinter removed, PyYAML added +- Requires: tkinter removed +- nltk-0.9.2-use-sys-yaml.patch removed +- All redundant commands in 'install' section removed +- nltk_contrib entry in 'file' section was removed since it will include no + file. Upstream split off a new tarball for nltk-contrib. + * Sun Jul 26 2009 Fedora Release Engineering - 1:0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/sources b/sources index c604bb8..6065331 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f48ae60bac4175f8af67d0f19d4d226c nltk-0.9.2.tar.gz +d9e94beced346268e4d3d1b314d6f57f nltk-2.0b8.tar.gz