/[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 871782 - (show annotations) (download)
Tue Sep 1 06:48:39 2015 UTC (9 years, 1 month ago) by fwang
File size: 3050 byte(s)
4.2.9
1 Summary: Fcitx - Free Chinese Input Toys for X
2 Name: fcitx
3 Version: 4.2.9
4 Release: %mkrel 1
5 License: GPLv2+
6 Group: System/Internationalization
7 URL: https://fcitx-im.org
8 Source0: http://download.fcitx-im.org/fcitx/%name-%{version}_dict.tar.xz
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: pkgconfig(xkbfile)
17 BuildRequires: enchant-devel
18 BuildRequires: pkgconfig(iso-codes)
19 BuildRequires: pkgconfig(gobject-introspection-1.0)
20 BuildRequires: gtk+2-devel
21 BuildRequires: gtk+3-devel
22 BuildRequires: opencc-devel
23 BuildRequires: wget
24 BuildRequires: cairo-devel
25 BuildRequires: pango-devel
26 BuildRequires: intltool
27 BuildRequires: icu-devel
28 BuildRequires: chrpath
29 BuildRequires: desktop-file-utils
30 BuildRequires: qt4-devel
31 Requires: locales-zh
32
33 %description
34 %{name} is an X input method allowing people to enter simplified Chinese
35 characters in X environment following XIM standard.
36
37 %package devel
38 Summary: fcitx development library
39 Group: Development/C
40 Requires: %{name} = %{version}
41 Requires: %{name}-gir = %{version}
42
43 %description devel
44 fcitx development files.
45
46 %package gtk
47 Summary: fcitx gtk module
48 Group: System/Internationalization
49 Requires: %{name} = %{version}
50 Requires(post): gtk+2.0
51 Requires(postun): gtk+2.0
52
53 %description gtk
54 fcitx gtk module.
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 %package gir
67 Summary: GObject Introspection interface description for fcitx
68 Group: System/Libraries
69 Requires: %{name} = %{version}
70
71 %description gir
72 GObject Introspection interface description for fcitx.
73
74 %package qt4
75 Summary: Qt4 immodule for fcitx
76 Group: System/Internationalization
77 Requires: %{name} = %{version}
78
79 %description qt4
80 Qt4 immodule for fcitx.
81
82 %prep
83 %setup -q -n %name-%version
84
85 %build
86 %cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF -DENABLE_XDGAUTOSTART=OFF
87 %make
88
89 %install
90 %makeinstall_std -C build
91
92 chrpath -d %{buildroot}%{_libdir}/*.so
93 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
94 %{buildroot}%{_datadir}/applications/*.desktop
95
96 rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop
97
98 %find_lang %name
99
100 %files -f %name.lang
101 %attr(0644,-,-) %doc doc/*.txt doc/*.htm
102 %{_bindir}/*
103 %{_libdir}/*.so.*
104 %{_libdir}/%{name}
105 %{_datadir}/%{name}
106 %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service
107 %{_datadir}/mime/packages/*.xml
108 %{_mandir}/man1/*
109 %{_datadir}/applications/*.desktop
110 %{_iconsdir}/*/*/*/*
111
112 %files gtk
113 %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so
114
115 %files gtk3
116 %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so
117
118 %files gir
119 %{_libdir}/girepository-1.0/Fcitx-1.0.typelib
120
121 %files qt4
122 %_qt4_plugindir/inputmethods/qtim-fcitx.so
123
124 %files devel
125 %{_libdir}/*.so
126 %{_libdir}/pkgconfig/*.pc
127 %{_datadir}/gir-1.0/Fcitx-1.0.gir
128 %{_datadir}/cmake/%{name}
129 %{_includedir}/*

  ViewVC Help
Powered by ViewVC 1.1.30