/[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 257459 - (hide annotations) (download)
Fri Jun 8 06:37:27 2012 UTC (12 years, 3 months ago) by fwang
File size: 2738 byte(s)
add more br
1 tv 73715 Summary: Fcitx - Free Chinese Input Toys for X
2     Name: fcitx
3 fwang 257444 Version: 4.2.4
4 fwang 144586 Release: %mkrel 1
5 tv 73715 License: GPL
6     Group: System/Internationalization
7     URL: http://code.google.com/p/fcitx/
8 fwang 247804 Source0: http://fcitx.googlecode.com/files/%name-%{version}_dict.tar.xz
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 257459 BuildRequires: pkgconfig(xkbfile)
17     BuildRequires: enchant-devel
18     BuildRequires: pkgconfig(iso-codes)
19 fwang 144590 BuildRequires: gtk+2-devel
20 fwang 144586 BuildRequires: gtk+3-devel
21     BuildRequires: opencc-devel
22 tv 73715 BuildRequires: wget
23     BuildRequires: cairo-devel
24     BuildRequires: pango-devel
25     BuildRequires: intltool
26 fwang 144586 BuildRequires: chrpath
27 fwang 154008 BuildRequires: desktop-file-utils
28 tv 73715 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 fwang 144586 %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 tv 73715 %prep
75     %setup -q -n %name-%version
76    
77     %build
78 fwang 144586 %cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF
79 tv 73715 %make
80    
81     %install
82     rm -rf %{buildroot}
83 fwang 144586 %makeinstall_std -C build
84 tv 73715
85 fwang 144602 chrpath -d %{buildroot}%{_libdir}/*.so
86 fwang 154014 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
87     %{buildroot}%{_datadir}/applications/*.desktop
88 fwang 144586
89 tv 73715 %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 fwang 144586 %{_libdir}/%{name}
100 tv 73715 %{_datadir}/%{name}
101 fwang 154004 %{_datadir}/mime/packages/*.xml
102 tv 73715 %{_mandir}/man1/*
103     %{_datadir}/applications/*.desktop
104 fwang 144586 %{_iconsdir}/*/*/*/*
105 tv 73715
106 fwang 144606 %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 tv 73715 %files devel
115     %defattr(-,root,root)
116     %{_libdir}/*.so
117     %{_libdir}/pkgconfig/*.pc
118 fwang 144586 %{_datadir}/cmake/%{name}
119 tv 73715 %{_includedir}/*

  ViewVC Help
Powered by ViewVC 1.1.30