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

  ViewVC Help
Powered by ViewVC 1.1.30