1 | %define ver 1.5.16 |
---|
2 | %define rel 1 |
---|
3 | |
---|
4 | %define from_git 0 |
---|
5 | %if %{from_git} |
---|
6 | %define githash e388f558 |
---|
7 | %endif |
---|
8 | |
---|
9 | Summary: a Japanese Kana Kanji input engine for IBus |
---|
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}-%{githash}.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 >= 1.4.0 |
---|
28 | BuildRequires: libkkc-devel >= 0.1.0 |
---|
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 | a Japanese Kana Kanji input engine for IBus. |
---|
38 | |
---|
39 | %prep |
---|
40 | %if %{from_git} |
---|
41 | %setup -q -n %{name}-%{githash} |
---|
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 | %{_datadir}/ibus/component/kkc.xml |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Sat Jul 27 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.16-1 |
---|
88 | - update to 1.5.16 |
---|
89 | - update %%files |
---|
90 | |
---|
91 | * Tue Jun 18 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.14-1 |
---|
92 | - update to 1.5.14 |
---|
93 | - fix changelog: 1.15.10-1 |
---|
94 | |
---|
95 | * Tue Mar 26 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.10-1 |
---|
96 | - update to 1.5.10 |
---|
97 | |
---|
98 | * Sat Mar 16 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.9-1 |
---|
99 | - update to 1.5.9 |
---|
100 | |
---|
101 | * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.8-1 |
---|
102 | - update to 1.5.8 |
---|
103 | |
---|
104 | * Sat Feb 23 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.7-1 |
---|
105 | - update to 1.5.7 |
---|
106 | |
---|
107 | * Mon Feb 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.6-1 |
---|
108 | - update to 1.5.6 |
---|
109 | |
---|
110 | * Tue Feb 5 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1 |
---|
111 | - update to 1.5.5 |
---|
112 | - update Summary and description: sync README |
---|
113 | |
---|
114 | * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.3-1 |
---|
115 | - update to 1.5.3 |
---|
116 | - update requires libkkc version: 0.1.0 |
---|
117 | |
---|
118 | * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-3.gite388f558 |
---|
119 | - update to git e388f558e3eff3e538fa48ee0c2275e7d743964c |
---|
120 | - add requires package version: |
---|
121 | - ibus-devel >= 1.4.0 |
---|
122 | - libkkc-devel >= 0.0.3-3 |
---|
123 | |
---|
124 | * Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-2.giteb042df4 |
---|
125 | - update to git eb042df479cdad0d037e16016fda3d2cae99aaa1 |
---|
126 | - add BuildRequires: gnome-common with git |
---|
127 | - add Requires: skkdic |
---|
128 | |
---|
129 | * Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-1 |
---|
130 | - initial build for Vine Linux |
---|
131 | |
---|