1 | %define ver 0.4.8 |
---|
2 | %define rel 2 |
---|
3 | |
---|
4 | Summary: a GTK based configurae tool for Fcitx |
---|
5 | Summary(ja): GTKベースのFcitx設定ツール |
---|
6 | Name: fcitx-configtool |
---|
7 | Version: %{ver} |
---|
8 | Release: %{rel}%{?_dist_release} |
---|
9 | License: GPLv2 |
---|
10 | Group: System Environment/Libraries |
---|
11 | URL: https://fcitx-im.org |
---|
12 | Source0: http://download.fcitx-im.org/fcitx-configtool/%{name}-%{version}.tar.xz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
14 | BuildRequires: cmake |
---|
15 | BuildRequires: fcitx-devel >= 4.2.8 |
---|
16 | BuildRequires: gtk3-devel >= 3.4 |
---|
17 | BuildRequires: gtk2-devel >= 2.24 |
---|
18 | BuildRequires: unique-devel |
---|
19 | BuildRequires: iso-codes |
---|
20 | Requires: fcitx |
---|
21 | Requires: fcitx-configtool-gtk2 |
---|
22 | |
---|
23 | Distribution: Vine Linux |
---|
24 | Vendor: Project Vine |
---|
25 | Packager: iwaim |
---|
26 | |
---|
27 | %description |
---|
28 | A GTK based configure tool for fcitx. |
---|
29 | |
---|
30 | %description -l ja |
---|
31 | GTKベースのFcitx設定ツール |
---|
32 | |
---|
33 | %package gtk2 |
---|
34 | Summary: a GTK3 based configurae tool for Fcitx |
---|
35 | Summary(ja): GTK2ベースのFcitx設定ツール |
---|
36 | Requires: fcitx-configtool = %{version} |
---|
37 | %description gtk2 |
---|
38 | A GTK2 based configure tool for fcitx. |
---|
39 | %description -l ja gtk2 |
---|
40 | GTK2ベースのFcitx設定ツール |
---|
41 | |
---|
42 | %package gtk3 |
---|
43 | Summary: a GTK3 based configurae tool for Fcitx |
---|
44 | Summary(ja): GTK3ベースのFcitx設定ツール |
---|
45 | Requires: fcitx-configtool = %{version} |
---|
46 | %description gtk3 |
---|
47 | A GTK3 based configure tool for fcitx. |
---|
48 | %description -l ja gtk3 |
---|
49 | GTK3ベースのFcitx設定ツール |
---|
50 | |
---|
51 | |
---|
52 | %prep |
---|
53 | %setup -q |
---|
54 | |
---|
55 | %build |
---|
56 | %__mkdir build |
---|
57 | pushd build |
---|
58 | %cmake .. \ |
---|
59 | -DENABLE_GTK2=On \ |
---|
60 | -DENABLE_GTK3=On |
---|
61 | make %{?_smp_mflags} |
---|
62 | popd |
---|
63 | |
---|
64 | %install |
---|
65 | rm -rf $RPM_BUILD_ROOT |
---|
66 | pushd build |
---|
67 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
---|
68 | popd |
---|
69 | |
---|
70 | %find_lang %{name} |
---|
71 | |
---|
72 | %clean |
---|
73 | rm -rf $RPM_BUILD_ROOT |
---|
74 | |
---|
75 | %files -f %{name}.lang |
---|
76 | %defattr(-,root,root,-) |
---|
77 | %doc README COPYING |
---|
78 | |
---|
79 | %files gtk2 |
---|
80 | %{_bindir}/fcitx-config-gtk |
---|
81 | |
---|
82 | %files gtk3 |
---|
83 | %{_bindir}/fcitx-config-gtk3 |
---|
84 | |
---|
85 | %changelog |
---|
86 | * Wed Jun 04 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 0.4.8-2 |
---|
87 | - build gtk2 and gtk3 version |
---|
88 | - add fcitx-configtool-gtk[23] subpackage. |
---|
89 | |
---|
90 | * Fri Nov 8 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.4.8-1 |
---|
91 | - initial release |
---|
92 | |
---|