/[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 253861 - (hide annotations) (download)
Mon Jun 4 02:38:07 2012 UTC (12 years, 3 months ago) by fwang
File size: 2690 byte(s)
fix str fmt
1 tv 73715 Summary: Fcitx - Free Chinese Input Toys for X
2     Name: fcitx
3 fwang 247804 Version: 4.2.3
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 253861 Patch0: fcitx-4.2.3-fix-str-fmt.patch
10 fwang 144586 BuildRequires: cmake
11 tv 73715 BuildRequires: gettext-devel
12     BuildRequires: libx11-devel
13     BuildRequires: libxft-devel
14     BuildRequires: xpm-devel
15     BuildRequires: libxext-devel
16 fwang 144586 BuildRequires: dbus-glib-devel
17 fwang 144590 BuildRequires: gtk+2-devel
18 fwang 144586 BuildRequires: gtk+3-devel
19     BuildRequires: opencc-devel
20 tv 73715 BuildRequires: wget
21     BuildRequires: cairo-devel
22     BuildRequires: pango-devel
23     BuildRequires: intltool
24 fwang 144586 BuildRequires: chrpath
25 fwang 154008 BuildRequires: desktop-file-utils
26 tv 73715 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 fwang 144586 %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 tv 73715 %prep
73     %setup -q -n %name-%version
74 fwang 253861 %patch0 -p0
75 tv 73715
76     %build
77 fwang 144586 %cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF
78 tv 73715 %make
79    
80     %install
81     rm -rf %{buildroot}
82 fwang 144586 %makeinstall_std -C build
83 tv 73715
84 fwang 144602 chrpath -d %{buildroot}%{_libdir}/*.so
85 fwang 154014 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
86     %{buildroot}%{_datadir}/applications/*.desktop
87 fwang 144586
88 tv 73715 %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 fwang 144586 %{_libdir}/%{name}
99 tv 73715 %{_datadir}/%{name}
100 fwang 154004 %{_datadir}/mime/packages/*.xml
101 tv 73715 %{_mandir}/man1/*
102     %{_datadir}/applications/*.desktop
103 fwang 144586 %{_iconsdir}/*/*/*/*
104 tv 73715
105 fwang 144606 %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 tv 73715 %files devel
114     %defattr(-,root,root)
115     %{_libdir}/*.so
116     %{_libdir}/pkgconfig/*.pc
117 fwang 144586 %{_datadir}/cmake/%{name}
118 tv 73715 %{_includedir}/*

  ViewVC Help
Powered by ViewVC 1.1.30