rpms/python-nltk/F-7 Makefile,1.2,1.3 python-nltk.spec,1.4,1.5

Michel Alexandre Salim (salimma) fedora-extras-commits at redhat.com
Sat Sep 22 04:17:01 UTC 2007


Author: salimma

Update of /cvs/pkgs/rpms/python-nltk/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4696/F-7

Added Files:
	Makefile python-nltk.spec 
Log Message:
New python-nltk, based on nltk_lite



Index: Makefile
===================================================================
RCS file: Makefile
diff -N Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Makefile	22 Sep 2007 04:16:28 -0000	1.3
@@ -0,0 +1,21 @@
+# Makefile for source rpm: python-nltk
+# $Id$
+NAME := python-nltk
+SPECFILE = $(firstword $(wildcard *.spec))
+
+define find-makefile-common
+for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
+endef
+
+MAKEFILE_COMMON := $(shell $(find-makefile-common))
+
+ifeq ($(MAKEFILE_COMMON),)
+# attept a checkout
+define checkout-makefile-common
+test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
+endef
+
+MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
+endif
+
+include $(MAKEFILE_COMMON)


Index: python-nltk.spec
===================================================================
RCS file: python-nltk.spec
diff -N python-nltk.spec
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ python-nltk.spec	22 Sep 2007 04:16:28 -0000	1.5
@@ -0,0 +1,73 @@
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%define prerel b2
+Name:           python-nltk
+Version:        0.9
+Release:        0.1.%{prerel}%{?dist}
+Summary:        Natural Language Toolkit
+
+Group:          Development/Libraries
+License:        GPLv2
+URL:            http://nltk.sf.net/
+Source0:        http://dl.sourceforge.net/sourceforge/nltk/nltk-%{version}%{?prerel}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+
+Obsoletes:      python-nltk_lite <= 0.6.6-2%{?dist}
+Provides:       python-nltk_lite = %{version}-%{release}
+
+BuildRequires:  python-devel
+Requires:       numpy, python-matplotlib, tkinter
+
+%description
+NLTK is a Python package that simplifies the construction of programs
+that process natural language; and defines standard interfaces between
+the different components of an NLP system.  It was designed primarily
+to help teach graduate and undergraduate students about computational
+linguistics; but it is also useful as a framework for implementing
+research projects.
+
+
+%prep
+%setup -q -n nltk-%{version}%{?prerel}
+
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__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/doctest_driver.py
+popd
+chmod +x nltk_contrib/toolbox/{settings,language,data}.py
+popd
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.txt
+%{python_sitelib}/nltk
+%{python_sitelib}/nltk_contrib
+%{python_sitelib}/yaml
+
+
+%changelog
+* Fri Sep 21 2007 Michel Salim <michel.sylvan at gmail.com> - 0.9-0.1.b2
+- Updated to 0.9b2
+- Renamed back to python-nltk
+
+* Mon Dec 18 2006 Michel Salim <michel.salim at gmail.com> - 0.6.6-2
+- Rebuild for development branch
+
+* Mon Oct 30 2006 Michel Salim <michel.salim at gmail.com> - 0.6.6-1
+- Initial package




More information about the scm-commits mailing list