/[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 1212833 - (show annotations) (download)
Tue Mar 27 16:19:20 2018 UTC (6 years, 6 months ago) by kekepower
File size: 3300 byte(s)
- BR xkeyboard-config

1 Summary: Fcitx - Free Chinese Input Toys for X
2 Name: fcitx
3 Version: 4.2.9.6
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: extra-cmake-modules
11 BuildRequires: gettext-devel
12 BuildRequires: pkgconfig(x11)
13 BuildRequires: pkgconfig(xft)
14 BuildRequires: pkgconfig(xpm)
15 BuildRequires: pkgconfig(xext)
16 BuildRequires: pkgconfig(dbus-glib-1)
17 BuildRequires: pkgconfig(xkbfile)
18 BuildRequires: pkgconfig(enchant)
19 BuildRequires: pkgconfig(iso-codes)
20 BuildRequires: pkgconfig(gobject-introspection-1.0)
21 BuildRequires: pkgconfig(xkeyboard-config)
22 BuildRequires: gtk+2-devel
23 BuildRequires: gtk+3-devel
24 BuildRequires: pkgconfig(opencc)
25 BuildRequires: wget
26 BuildRequires: pkgconfig(cairo)
27 BuildRequires: pkgconfig(pango)
28 BuildRequires: intltool
29 BuildRequires: icu-devel
30 BuildRequires: chrpath
31 BuildRequires: desktop-file-utils
32 BuildRequires: qt4-devel
33 Requires: locales-zh
34 Recommends: %{name}-gtk = %{version}
35 Recommends: %{name}-gtk3 = %{version}
36 Recommends: %{name}-configtool
37
38 %description
39 %{name} is an X input method allowing people to enter simplified Chinese
40 characters in X environment following XIM standard.
41
42 %package devel
43 Summary: fcitx development library
44 Group: Development/C
45 Requires: %{name} = %{version}
46 Requires: %{name}-gir = %{version}
47
48 %description devel
49 fcitx development files.
50
51 %package gtk
52 Summary: fcitx gtk module
53 Group: System/Internationalization
54 Requires: %{name} = %{version}
55 Requires(post): gtk+2.0
56 Requires(postun): gtk+2.0
57
58 %description gtk
59 fcitx gtk module.
60
61 %package gtk3
62 Summary: fcitx gtk3 module
63 Group: System/Internationalization
64 Requires: %{name} = %{version}
65 Requires(post): gtk+3.0
66 Requires(postun): gtk+3.0
67
68 %description gtk3
69 fcitx gtk module.
70
71 %package gir
72 Summary: GObject Introspection interface description for fcitx
73 Group: System/Libraries
74 Requires: %{name} = %{version}
75
76 %description gir
77 GObject Introspection interface description for fcitx.
78
79 %package qt4
80 Summary: Qt4 immodule for fcitx
81 Group: System/Internationalization
82 Requires: %{name} = %{version}
83
84 %description qt4
85 Qt4 immodule for fcitx.
86
87 %prep
88 %setup -q
89
90 %build
91 %cmake -DENABLE_QT_GUI=OFF -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF -DENABLE_XDGAUTOSTART=OFF
92 %make_build
93
94 %install
95 %make_install -C build
96
97 chrpath -d %{buildroot}%{_libdir}/*.so
98 desktop-file-install --dir %{buildroot}%{_datadir}/applications \
99 %{buildroot}%{_datadir}/applications/*.desktop
100
101 rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop
102
103 %find_lang %name
104
105 %files -f %name.lang
106 %attr(0644,-,-) %doc doc/*.txt doc/*.htm
107 %exclude /usr/share/doc/fcitx/Develop_Readme
108 %{_bindir}/*
109 %{_libdir}/*.so.*
110 %{_libdir}/%{name}
111 %{_datadir}/%{name}
112 %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service
113 %{_datadir}/mime/packages/*.xml
114 %{_mandir}/man1/*
115 %{_datadir}/applications/*.desktop
116 %{_iconsdir}/*/*/*/*
117
118 %files gtk
119 %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so
120
121 %files gtk3
122 %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so
123
124 %files gir
125 %{_libdir}/girepository-1.0/Fcitx-1.0.typelib
126
127 %files qt4
128 %_qt4_plugindir/inputmethods/qtim-fcitx.so
129
130 %files devel
131 %{_libdir}/*.so
132 %{_libdir}/pkgconfig/*.pc
133 %{_datadir}/gir-1.0/Fcitx-1.0.gir
134 %{_datadir}/cmake/%{name}
135 %{_includedir}/*

  ViewVC Help
Powered by ViewVC 1.1.30