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