1 |
shlomif |
297046 |
%define oname tinysegmenter |
2 |
|
|
%define name python-%{oname} |
3 |
|
|
%define version 0.1 |
4 |
pterjan |
629060 |
%define release %mkrel 5 |
5 |
shlomif |
297046 |
|
6 |
|
|
Name: %{name} |
7 |
|
|
Version: %{version} |
8 |
|
|
Release: %{release} |
9 |
|
|
Summary: Python module implementing a Japanese tokenizer |
10 |
|
|
Source0: http://pypi.python.org/packages/source/t/tinysegmenter/%{oname}-%{version}.tar.gz |
11 |
|
|
URL: http://tinysegmenter.tuxfamily.org/ |
12 |
|
|
|
13 |
|
|
Group: Development/Python |
14 |
|
|
License: BSD |
15 |
|
|
Requires: python >= 2.5 |
16 |
|
|
BuildArch: noarch |
17 |
|
|
|
18 |
|
|
%description |
19 |
|
|
An extremely compact native Python module (contained into a single file) |
20 |
|
|
providing a Japanese Tokenization feature. |
21 |
|
|
|
22 |
|
|
%prep |
23 |
|
|
%setup -q -n tinysegmenter-%{version} |
24 |
|
|
|
25 |
|
|
%build |
26 |
philippem |
472741 |
%{__python} setup.py build |
27 |
shlomif |
297046 |
|
28 |
|
|
%install |
29 |
philippem |
472741 |
%{__python} setup.py install --skip-build --root=%{buildroot} |
30 |
shlomif |
297046 |
|
31 |
|
|
%files |
32 |
|
|
%defattr(-,root,root,-) |
33 |
|
|
%doc README.rst COPYING AUTHORS |
34 |
philippem |
472741 |
%{python_sitelib}/* |