1 |
%global module_name cangjie |
2 |
|
3 |
Name: python3-%{module_name} |
4 |
Summary: Python bindings to libcangjie |
5 |
Version: 1.1 |
6 |
Release: %mkrel 3 |
7 |
Group: Development/Python |
8 |
License: LGPLv3+ |
9 |
URL: http://cangjians.github.io/projects/pycangjie |
10 |
Source0: http://cangjians.github.io/downloads/pycangjie/%{module_name}-%{version}.tar.xz |
11 |
|
12 |
BuildRequires: python3-cython |
13 |
BuildRequires: python-cython |
14 |
BuildRequires: python3-devel |
15 |
BuildRequires: libcangjie-devel >= 1.1 |
16 |
|
17 |
%description |
18 |
Python bindings to libcangjie, the library implementing Cangjie and Quick |
19 |
input methods. |
20 |
|
21 |
|
22 |
%prep |
23 |
%setup -q -n %{module_name}-%{version} |
24 |
|
25 |
|
26 |
%build |
27 |
%configure2_5x |
28 |
%make |
29 |
|
30 |
|
31 |
%install |
32 |
make install DESTDIR=%{buildroot} |
33 |
|
34 |
find %{buildroot} -name '*.la' -exec rm -f '{}' \; |
35 |
|
36 |
|
37 |
%check |
38 |
make check |
39 |
|
40 |
|
41 |
%files |
42 |
%doc AUTHORS COPYING README.md docs/*.md |
43 |
%{python3_sitearch}/%{module_name} |
44 |
|