-
Notifications
You must be signed in to change notification settings - Fork 18
/
ibus-handwrite.spec.in
48 lines (37 loc) · 1.35 KB
/
ibus-handwrite.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define mod_path ibus-@PACKAGE_VERSION_MAJOR@.@PACKAGE_VERSION_MINOR@
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: IBus handwrite project
License: GPLv2+
Group: System Environment/Libraries
URL: http://code.google.com/p/ibus-handwrite/
Source0: http://ibus-handwrite.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: handwriting-zh_CN.model
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext ibus-devel gtk2-devel zinnia-devel @zinnia_tomoe@
Requires: ibus gtk2 @zinnia_tomoe@ @zinnia@
%description
IBus handwrite project.
%prep
%setup -q
cp %{SOURCE1} data/
%build
%configure --disable-static --enable-zinnia @rpm_sepc_with_tomoe@
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libexecdir}/ibus-engine-handwrite
%{_datadir}/ibus-handwrite
%{_datadir}/ibus/component/*
%changelog