forked from phuang/ibus-anthy
-
Notifications
You must be signed in to change notification settings - Fork 9
/
ibus-anthy.spec.in
105 lines (87 loc) · 3.06 KB
/
ibus-anthy.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?enable_kasumi: %define enable_kasumi 0}
%define sub_version 1.0
%define require_ibus_version 1.4.2
Name: @PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 1%{?dist}
Summary: The Anthy engine for IBus input platform
License: GPLv2+
Group: System Environment/Libraries
URL: https://github.com/ibus/ibus/wiki
Source0: https://github.com/ibus/ibus/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: anthy-devel
BuildRequires: glib2-devel
BuildRequires: gettext-devel
BuildRequires: ibus
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: gobject-introspection-devel
Requires: ibus >= %require_ibus_version
Requires: pygobject3
Requires: anthy
%if %enable_kasumi
Requires: kasumi
%endif
%description
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.
%package devel
Summary: Development tools for ibus
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: glib2-devel
Requires: anthy-devel
%description devel
The ibus-anthy-devel package contains .so file and .gir files
for developers.
%prep
%setup -q
%build
%configure --disable-static
# make -C po update-gmo
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=${RPM_BUILD_ROOT} install
rm -f $RPM_BUILD_ROOT%{_libdir}/libanthygobject-%{sub_version}.la
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/glib-compile-schemas ] && \
[ -d %{_datadir}/glib-2.0/schemas ] && \
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%postun
# recreate icon cache
touch --no-create %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/gtk-update-icon-cache ] && \
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
[ -x %{_bindir}/glib-compile-schemas ] && \
[ -d %{_datadir}/glib-2.0/schemas ] && \
%{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
# %dir %{python_sitearch}/ibus
%{_libdir}/girepository-1.0/Anthy*.typelib
%{_libdir}/libanthygobject-%{sub_version}.so.*
%{_libexecdir}/ibus-*-anthy
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/ibus-setup-anthy.desktop
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.anthy.gschema.xml
%{_datadir}/ibus-anthy
%{_datadir}/ibus/component/*
%{_datadir}/icons/hicolor/scalable/apps/ibus-anthy.svg
%files devel
%{_datadir}/gir-1.0/Anthy*.gir
%{_includedir}/ibus-anthy-%{sub_version}
%{_libdir}/libanthygobject-%{sub_version}.so
%changelog
* @DATE_DISPLAY@ Peng Huang <[email protected]> - @PACKAGE_VERSION@-1
- Current version.