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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30