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

  ViewVC Help
Powered by ViewVC 1.1.30