1 |
%define oname tinysegmenter |
2 |
%define name python-%{oname} |
3 |
%define version 0.1 |
4 |
%define release %mkrel 3 |
5 |
|
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 |
%{__python} setup.py build |
27 |
|
28 |
%install |
29 |
%{__python} setup.py install --skip-build --root=%{buildroot} |
30 |
|
31 |
%files |
32 |
%defattr(-,root,root,-) |
33 |
%doc README.rst COPYING AUTHORS |
34 |
%{python_sitelib}/* |