/[packages]/cauldron/fcitx/current/SPECS/fcitx.spec
ViewVC logotype

Contents of /cauldron/fcitx/current/SPECS/fcitx.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 620387 - (show annotations) (download)
Tue May 6 01:22:56 2014 UTC (10 years, 5 months ago) by yochenhsieh
File size: 3295 byte(s)
Alter gtk-query-immodules-2.0 command to fix bug 8731.

1 Summary: Fcitx - Free Chinese Input Toys for X
2 Name: fcitx
3 Version: 4.2.8.3
4 Release: %mkrel 4
5 License: GPLv2+
6 Group: System/Internationalization
7 URL: https://fcitx-im.org
8 Source0: http://download.fcitx-im.org/fcitx/%name-%{version}_dict.tar.xz
9 BuildRequires: cmake
10 BuildRequires: gettext-devel
11 BuildRequires: libx11-devel
12 BuildRequires: libxft-devel
13 BuildRequires: xpm-devel
14 BuildRequires: libxext-devel
15 BuildRequires: dbus-glib-devel
16 BuildRequires: pkgconfig(xkbfile)
17 BuildRequires: enchant-devel
18 BuildRequires: pkgconfig(iso-codes)
19 BuildRequires: pkgconfig(gobject-introspection-1.0)
20 BuildRequires: gtk+2-devel
21 BuildRequires: gtk+3-devel
22 BuildRequires: opencc-devel
23 BuildRequires: wget
24 BuildRequires: cairo-devel
25 BuildRequires: pango-devel
26 BuildRequires: intltool
27 BuildRequires: icu-devel
28 BuildRequires: chrpath
29 BuildRequires: desktop-file-utils
30 BuildRequires: qt4-devel
31 Requires: locales-zh
32
33 %description
34 %{name} is an X input method allowing people to enter simplified Chinese
35 characters in X environment following XIM standard.
36
37 %package devel
38 Summary: fcitx development library
39 Group: Development/C
40 Requires: %{name} = %{version}
41
42 %description devel
43 fcitx development files.
44
45 %package gtk
46 Summary: fcitx gtk module
47 Group: System/Internationalization
48 Requires: %{name} = %{version}
49 Requires(post): gtk+2.0
50 Requires(postun): gtk+2.0
51
52 %description gtk
53 fcitx gtk module.
54
55 %post gtk
56 %{_bindir}/gtk-query-immodules-2.0 --update-cache
57
58 %postun gtk
59 %{_bindir}/gtk-query-immodules-2.0 --update-cache
60
61 %package gtk3
62 Summary: fcitx gtk3 module
63 Group: System/Internationalization
64 Requires: %{name} = %{version}
65 Requires(post): gtk+3.0
66 Requires(postun): gtk+3.0
67
68 %description gtk3
69 fcitx gtk module.
70
71 %post gtk3
72 %{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
73
74 %postun gtk3
75 %{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
76
77 %package gir
78 Summary: GObject Introspection interface description for fcitx
79 Group: System/Libraries
80 Requires: %{name} = %{version}
81
82 %description gir
83 GObject Introspection interface description for fcitx.
84
85 %package qt4
86 Summary: Qt4 immodule for fcitx
87 Group: System/Internationalization
88 Requires: %{name} = %{version}
89
90 %description qt4
91 Qt4 immodule for fcitx.
92
93 %prep
94 %setup -q -n %name-%version
95
96 %build
97 %cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF -DENABLE_XDGAUTOSTART=OFF
98 %make
99
100 %install
101 %makeinstall_std -C build
102
103 chrpath -d %{buildroot}%{_libdir}/*.so
104 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
105 %{buildroot}%{_datadir}/applications/*.desktop
106
107 rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop
108
109 %find_lang %name
110
111 %files -f %name.lang
112 %attr(0644,-,-) %doc doc/*.txt doc/*.htm
113 %{_bindir}/*
114 %{_libdir}/*.so.*
115 %{_libdir}/%{name}
116 %{_datadir}/%{name}
117 %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service
118 %{_datadir}/mime/packages/*.xml
119 %{_mandir}/man1/*
120 %{_datadir}/applications/*.desktop
121 %{_iconsdir}/*/*/*/*
122
123 %files gtk
124 %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so
125
126 %files gtk3
127 %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so
128
129 %files gir
130 %{_libdir}/girepository-1.0/Fcitx-1.0.typelib
131
132 %files qt4
133 %_qt4_plugindir/inputmethods/qtim-fcitx.so
134
135 %files devel
136 %{_libdir}/*.so
137 %{_libdir}/pkgconfig/*.pc
138 %{_datadir}/gir-1.0/Fcitx-1.0.gir
139 %{_datadir}/cmake/%{name}
140 %{_includedir}/*

  ViewVC Help
Powered by ViewVC 1.1.30