1 | %define ver 1.5.2 |
---|
2 | %define rel 2 |
---|
3 | |
---|
4 | %define from_git 1 |
---|
5 | %if %{from_git} |
---|
6 | %define githash eb042df4 |
---|
7 | %endif |
---|
8 | |
---|
9 | Summary: IBus IME using libkkc as backend |
---|
10 | Name: ibus-kkc |
---|
11 | Version: %{ver} |
---|
12 | %if %{from_git} |
---|
13 | Release: %{rel}.git%{githash}%{_dist_release} |
---|
14 | %else |
---|
15 | Release: %{rel}%{_dist_release} |
---|
16 | %endif |
---|
17 | License: GPLv3 |
---|
18 | Group: System Environment/Libraries |
---|
19 | URL: https://bitbucket.org/libkkc/ |
---|
20 | %if %{from_git} |
---|
21 | Source0: %{name}-git.tar.gz |
---|
22 | %else |
---|
23 | Source0: https://bitbucket.org/libkkc/ibus-kkc/downloads/%{name}-%{version}.tar.gz |
---|
24 | %endif |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
26 | BuildRequires: gtk3-devel |
---|
27 | BuildRequires: ibus-devel |
---|
28 | BuildRequires: libkkc-devel |
---|
29 | BuildRequires: desktop-file-utils |
---|
30 | %if %{from_git} |
---|
31 | BuildRequires: gnome-common |
---|
32 | %endif |
---|
33 | Requires: libkkc-data |
---|
34 | Requires: skkdic |
---|
35 | |
---|
36 | %description |
---|
37 | IBus IME using libkkc as backend |
---|
38 | |
---|
39 | %prep |
---|
40 | %if %{from_git} |
---|
41 | %setup -q -n %{name}-git |
---|
42 | %else |
---|
43 | %setup -q |
---|
44 | %endif |
---|
45 | |
---|
46 | %build |
---|
47 | %if %{from_git} |
---|
48 | ./autogen.sh |
---|
49 | %endif |
---|
50 | %configure --enable-shared |
---|
51 | %__make |
---|
52 | |
---|
53 | %install |
---|
54 | %__rm -rf $RPM_BUILD_ROOT |
---|
55 | %makeinstall |
---|
56 | |
---|
57 | %{find_lang} %{name} |
---|
58 | |
---|
59 | %clean |
---|
60 | %__rm -rf $RPM_BUILD_ROOT |
---|
61 | |
---|
62 | %check |
---|
63 | %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-kkc.desktop |
---|
64 | |
---|
65 | %post |
---|
66 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
67 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
68 | fi |
---|
69 | |
---|
70 | %postun |
---|
71 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
72 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
73 | fi |
---|
74 | |
---|
75 | %files -f %{name}.lang |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %doc README ChangeLog COPYING AUTHORS NEWS |
---|
78 | %{_libexecdir}/ibus-engine-kkc |
---|
79 | %{_libexecdir}/ibus-setup-kkc |
---|
80 | %{_datadir}/applications/ibus-setup-kkc.desktop |
---|
81 | %dir %{_datadir}/ibus-kkc |
---|
82 | %dir %{_datadir}/ibus-kkc/icons |
---|
83 | %{_datadir}/ibus-kkc/icons/ibus-kkc.svg |
---|
84 | %dir %{_datadir}/ibus-kkc/setup |
---|
85 | %{_datadir}/ibus-kkc/setup/ibus-kkc-preferences.ui |
---|
86 | %{_datadir}/ibus/component/kkc.xml |
---|
87 | |
---|
88 | %changelog |
---|
89 | * Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-2.giteb042df4 |
---|
90 | - update to git eb042df479cdad0d037e16016fda3d2cae99aaa1 |
---|
91 | - add BuildRequires: gnome-common with git |
---|
92 | - add Requires: skkdic |
---|
93 | |
---|
94 | * Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-1 |
---|
95 | - initial build for Vine Linux |
---|
96 | |
---|