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

  ViewVC Help
Powered by ViewVC 1.1.30