]>
Commit | Line | Data |
---|---|---|
723dea15 JP |
1 | %define _enable_debug_packages 0 |
2 | ||
7270e9d8 JB |
3 | Summary: The Cangjie engine for IBus input platform |
4 | Summary(pl.UTF-8): Silnik Cangjie dla platformy wprowadzania znaków IBus | |
5 | Name: ibus-cangjie | |
6 | Version: 2.4 | |
723dea15 | 7 | Release: 6 |
7270e9d8 JB |
8 | License: GPL v3+ |
9 | Group: Libraries | |
10 | #Source0Download: https://github.com/Cangjians/ibus-cangjie/releases | |
11 | Source0: https://github.com/Cangjians/ibus-cangjie/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
12 | # Source0-md5: 3c78f16cf6562d52adc3c32158d96b7f | |
13 | URL: https://github.com/Cangjians/ibus-cangjie | |
14 | BuildRequires: autoconf >= 2.63 | |
15 | BuildRequires: automake >= 1:1.11 | |
16 | BuildRequires: gettext-tools >= 0.17 | |
17 | BuildRequires: ibus-devel >= 1.4.1 | |
18 | BuildRequires: intltool >= 0.35.0 | |
19 | BuildRequires: libcangjie-devel >= 0.1.0 | |
20 | BuildRequires: libtool | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: python3 >= 1:3.2.3 | |
23 | BuildRequires: python3-cangjie | |
24 | BuildRequires: python3-ibus >= 1.4.1 | |
25 | BuildRequires: rpmbuild(macros) >= 1.592 | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
28 | Requires(post,postun): glib2 >= 1:2.26.0 | |
29 | Requires: ibus >= 1.4.1 | |
30 | Requires: python3-cangjie | |
31 | Requires: python3-ibus >= 1.4.1 | |
32 | Requires: python3-pygobject3 >= 3.0 | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | This is an IBus engine for users of the Cangjie and Quick input | |
37 | methods. It is primarily intended to Hong Kong people who want to | |
38 | input Traditional Chinese, as they are (by far) the majority of | |
39 | Cangjie and Quick users. However, it should work for others as well | |
40 | (e.g to input Simplified Chinese). | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Ten pakiet zawiera silnik IBus dla użytkowników metod wprowadzania | |
44 | znaków Cangjie oraz Quick. Jest przeznaczony głównie dla mieszkańców | |
45 | Hong Kongu, chcących wprowadzać znaki chińskiego tradycyjnego, jako że | |
46 | są oni (obecnie) większością użytkowników metod Cangjie oraz Quick. | |
47 | Silnik powinien jednak działać także innym (np. wprowadzającym chiński | |
48 | uproszczony). | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | ||
53 | %build | |
54 | %{__libtoolize} | |
55 | %{__aclocal} -I m4 | |
56 | %{__autoconf} | |
57 | %{__autoheader} | |
58 | %{__automake} | |
59 | %configure \ | |
60 | am_cv_python_pythondir=%{py3_sitescriptdir} \ | |
61 | --disable-silent-rules | |
62 | ||
611c7446 JB |
63 | %{__make} \ |
64 | libexecdir=%{_libdir} | |
7270e9d8 JB |
65 | |
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %{__make} install \ | |
611c7446 JB |
70 | DESTDIR=$RPM_BUILD_ROOT \ |
71 | libexecdir=%{_libdir} | |
7270e9d8 JB |
72 | |
73 | %find_lang %{name} | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post | |
79 | %glib_compile_schemas | |
80 | %update_icon_cache hicolor | |
81 | ||
82 | %postun | |
83 | %glib_compile_schemas | |
84 | %update_icon_cache hicolor | |
85 | ||
86 | %files -f %{name}.lang | |
87 | %defattr(644,root,root,755) | |
88 | %doc AUTHORS README.md | |
89 | %attr(755,root,root) %{_bindir}/ibus-setup-cangjie | |
90 | %dir %{_libdir}/ibus-cangjie | |
91 | %attr(755,root,root) %{_libdir}/ibus-cangjie/ibus-engine-cangjie | |
92 | %{py3_sitescriptdir}/ibus_cangjie | |
93 | %{_datadir}/appdata/cangjie.appdata.xml | |
94 | %{_datadir}/appdata/quick.appdata.xml | |
95 | %{_datadir}/glib-2.0/schemas/org.cangjians.ibus.cangjie.gschema.xml | |
96 | %{_datadir}/glib-2.0/schemas/org.cangjians.ibus.quick.gschema.xml | |
97 | %{_datadir}/ibus-cangjie | |
98 | %{_datadir}/ibus/component/cangjie.xml | |
99 | %{_datadir}/ibus/component/quick.xml | |
100 | %{_desktopdir}/ibus-setup-cangjie.desktop | |
101 | %{_desktopdir}/ibus-setup-quick.desktop | |
102 | %{_iconsdir}/hicolor/16x16/intl/cangjie.png | |
103 | %{_iconsdir}/hicolor/16x16/intl/quick.png | |
104 | %{_iconsdir}/hicolor/scalable/intl/cangjie.svg | |
105 | %{_iconsdir}/hicolor/scalable/intl/quick.svg |