]> git.pld-linux.org Git - SPECS.git/blob - python-nltk.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / python-nltk.spec
1
2 %define         module  nltk
3 %define         pre     rc1
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.1
9 Release:        0.%{pre}.2
10 License:        GPL
11 Group:          Libraries/Python
12 Source0:        http://nltk.googlecode.com/files/%{module}-%{version}%{pre}.zip
13 # Source0-md5:  72f745eefd659aea23a44bf1e47e7b9d
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.710
20 BuildRequires:  unzip
21 %pyrequires_eq  python
22 Requires:       python-PyYAML
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
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 The Natural Language Toolkit is a Python module for
33 processing natural language text.
34
35 %description -l pl.UTF-8
36 Natural Language Toolkit jest modułem języka Python
37 przetwarzającym tekst w języku naturalnym.
38
39 %prep
40 %setup  -q -n %{module}-%{version}%{pre}
41
42 %build
43 %py_build
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %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}/*
This page took 0.473467 seconds and 3 git commands to generate.