/[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 257459 - (show annotations) (download)
Fri Jun 8 06:37:27 2012 UTC (12 years, 4 months ago) by fwang
File size: 2738 byte(s)
add more br
1 Summary: Fcitx - Free Chinese Input Toys for X
2 Name: fcitx
3 Version: 4.2.4
4 Release: %mkrel 1
5 License: GPL
6 Group: System/Internationalization
7 URL: http://code.google.com/p/fcitx/
8 Source0: http://fcitx.googlecode.com/files/%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: gtk+2-devel
20 BuildRequires: gtk+3-devel
21 BuildRequires: opencc-devel
22 BuildRequires: wget
23 BuildRequires: cairo-devel
24 BuildRequires: pango-devel
25 BuildRequires: intltool
26 BuildRequires: chrpath
27 BuildRequires: desktop-file-utils
28 Requires: locales-zh
29
30 %description
31 %{name} is an X input method allowing people to enter simplified Chinese
32 characters in X environment following XIM standard.
33
34 %package devel
35 Summary: fcitx development library
36 Group: Development/C
37 Requires: %{name} = %{version}
38
39 %description devel
40 fcitx development files.
41
42 %package gtk
43 Summary: fcitx gtk module
44 Group: System/Internationalization
45 Requires: %{name} = %{version}
46 Requires(post): gtk+2.0
47 Requires(postun): gtk+2.0
48
49 %description gtk
50 fcitx gtk module.
51
52 %post gtk
53 %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib
54
55 %postun gtk
56 %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%_lib
57
58 %package gtk3
59 Summary: fcitx gtk3 module
60 Group: System/Internationalization
61 Requires: %{name} = %{version}
62 Requires(post): gtk+3.0
63 Requires(postun): gtk+3.0
64
65 %description gtk3
66 fcitx gtk module.
67
68 %post gtk3
69 %{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
70
71 %postun gtk3
72 %{_bindir}/gtk-query-immodules-3.0-%{__isa_bits} --update-cache
73
74 %prep
75 %setup -q -n %name-%version
76
77 %build
78 %cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF
79 %make
80
81 %install
82 rm -rf %{buildroot}
83 %makeinstall_std -C build
84
85 chrpath -d %{buildroot}%{_libdir}/*.so
86 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
87 %{buildroot}%{_datadir}/applications/*.desktop
88
89 %find_lang %name
90
91 %clean
92 rm -rf %{buildroot}
93
94 %files -f %name.lang
95 %defattr(-,root,root)
96 %attr(0644,-,-) %doc doc/*.txt doc/*.htm
97 %{_bindir}/*
98 %{_libdir}/*.so.*
99 %{_libdir}/%{name}
100 %{_datadir}/%{name}
101 %{_datadir}/mime/packages/*.xml
102 %{_mandir}/man1/*
103 %{_datadir}/applications/*.desktop
104 %{_iconsdir}/*/*/*/*
105
106 %files gtk
107 %defattr(-,root,root)
108 %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so
109
110 %files gtk3
111 %defattr(-,root,root)
112 %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so
113
114 %files devel
115 %defattr(-,root,root)
116 %{_libdir}/*.so
117 %{_libdir}/pkgconfig/*.pc
118 %{_datadir}/cmake/%{name}
119 %{_includedir}/*

  ViewVC Help
Powered by ViewVC 1.1.30