]> git.pld-linux.org Git - packages/python-nltk.git/blob - python-nltk.spec
- rel 1 (kind of)
[packages/python-nltk.git] / python-nltk.spec
1
2 %define         module  nltk
3 %define         pre     b9
4
5 Summary:        Natural Language Toolkit
6 Summary(pl.UTF-8):      Przybornik obsługi języków naturalnych (Natural Language Toolkit)
7 Name:           python-%{module}
8 Version:        2.0
9 Release:        0.%{pre}.1
10 License:        GPL
11 Group:          Libraries/Python
12 Source0:        http://nltk.googlecode.com/files/%{module}-%{version}%{pre}.zip
13 # Source0-md5:  ee983f8023375f2b65aa4607c405a986
14 URL:            http://www.nltk.org/
15 BuildRequires:  pydoc
16 BuildRequires:  python-devel
17 BuildRequires:  python-PyYAML
18 BuildRequires:  rpm-pythonprov
19 BuildRequires:  rpmbuild(macros) >= 1.219
20 BuildRequires:  unzip
21 %pyrequires_eq  python
22 Suggests:       python-numpy
23 Suggests:       python-matplotlib
24 Suggests:       prover9
25 #Suggests:      MaltParser: http://w3.msi.vxu.se/~jha/maltparser/dist/malt-1.2.tar.gz
26 #Suggests:      MegaM: http://hal3.name/megam/megam_src.tgz
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 The Natural Language Toolkit is a Python module for
32 processing natural language text.
33
34 %description -l pl.UTF-8
35 Natural Language Toolkit jest modułem języka Python
36 przetwarzającym tekst w języku naturalnym.
37
38 %prep
39 %setup  -q -n %{module}-%{version}%{pre}
40
41 %build
42 python ./setup.py build
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 python ./setup.py install \
48         --optimize 2 \
49         --root=$RPM_BUILD_ROOT
50
51 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
52 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
53 %py_postclean
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc *.txt
61 %{py_sitescriptdir}/*
This page took 0.223013 seconds and 3 git commands to generate.