Summary: Fcitx - Free Chinese Input Toys for X Name: fcitx Version: 4.2.9 Release: %mkrel 3 License: GPLv2+ Group: System/Internationalization URL: https://fcitx-im.org Source0: http://download.fcitx-im.org/fcitx/%name-%{version}_dict.tar.xz BuildRequires: cmake BuildRequires: extra-cmake-modules BuildRequires: gettext-devel BuildRequires: libx11-devel BuildRequires: libxft-devel BuildRequires: xpm-devel BuildRequires: libxext-devel BuildRequires: dbus-glib-devel BuildRequires: pkgconfig(xkbfile) BuildRequires: enchant-devel BuildRequires: pkgconfig(iso-codes) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: gtk+2-devel BuildRequires: gtk+3-devel BuildRequires: opencc-devel BuildRequires: wget BuildRequires: cairo-devel BuildRequires: pango-devel BuildRequires: intltool BuildRequires: icu-devel BuildRequires: chrpath BuildRequires: desktop-file-utils BuildRequires: qt4-devel Requires: locales-zh %description %{name} is an X input method allowing people to enter simplified Chinese characters in X environment following XIM standard. %package devel Summary: fcitx development library Group: Development/C Requires: %{name} = %{version} Requires: %{name}-gir = %{version} %description devel fcitx development files. %package gtk Summary: fcitx gtk module Group: System/Internationalization Requires: %{name} = %{version} Requires(post): gtk+2.0 Requires(postun): gtk+2.0 %description gtk fcitx gtk module. %package gtk3 Summary: fcitx gtk3 module Group: System/Internationalization Requires: %{name} = %{version} Requires(post): gtk+3.0 Requires(postun): gtk+3.0 %description gtk3 fcitx gtk module. %package gir Summary: GObject Introspection interface description for fcitx Group: System/Libraries Requires: %{name} = %{version} %description gir GObject Introspection interface description for fcitx. %package qt4 Summary: Qt4 immodule for fcitx Group: System/Internationalization Requires: %{name} = %{version} %description qt4 Qt4 immodule for fcitx. %prep %setup -q %build %cmake -DENABLE_GTK2_IM_MODULE=ON -DENABLE_GTK3_IM_MODULE=ON -DCMAKE_SKIP_RPATH=OFF -DENABLE_XDGAUTOSTART=OFF %make %install %makeinstall_std -C build chrpath -d %{buildroot}%{_libdir}/*.so desktop-file-install --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop %find_lang %name %files -f %name.lang %attr(0644,-,-) %doc doc/*.txt doc/*.htm %exclude /usr/share/doc/fcitx/Develop_Readme %{_bindir}/* %{_libdir}/*.so.* %{_libdir}/%{name} %{_datadir}/%{name} %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service %{_datadir}/mime/packages/*.xml %{_mandir}/man1/* %{_datadir}/applications/*.desktop %{_iconsdir}/*/*/*/* %files gtk %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so %files gtk3 %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so %files gir %{_libdir}/girepository-1.0/Fcitx-1.0.typelib %files qt4 %_qt4_plugindir/inputmethods/qtim-fcitx.so %files devel %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_datadir}/gir-1.0/Fcitx-1.0.gir %{_datadir}/cmake/%{name} %{_includedir}/*