fcitx-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. %define ver 4.2.9.4
  2. %define rel 1
  3. Summary: an input method framework with extension support
  4. Name: fcitx
  5. Version: %{ver}
  6. Release: %{rel}%{?_dist_release}
  7. License: GPLv2+
  8. Group: System Environment/Libraries
  9. URL: https://fcitx-im.org/
  10. Source0: http://download.fcitx-im.org/fcitx/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  12. BuildRequires: cmake
  13. BuildRequires: wget
  14. BuildRequires: libX11-devel
  15. BuildRequires: dbus-glib-devel
  16. BuildRequires: xorg-x11-proto-devel
  17. BuildRequires: xorg-x11-xtrans-devel
  18. BuildRequires: libxkbcommon-devel
  19. BuildRequires: pango-devel
  20. BuildRequires: cairo-devel
  21. BuildRequires: dbus-devel
  22. BuildRequires: libicu-devel
  23. BuildRequires: iso-codes
  24. BuildRequires: libxml2-devel
  25. BuildRequires: gtk2-devel
  26. BuildRequires: gtk3-devel
  27. BuildRequires: qt4-devel
  28. BuildRequires: enchant-devel
  29. BuildRequires: lua-devel
  30. BuildRequires: gobject-introspection-devel
  31. BuildRequires: extra-cmake-modules
  32. BuildRequires: libxkbfile-devel
  33. BuildRequires: xkeyboard-config
  34. Requires: %{name}-libs = %{version}-%{release}
  35. Requires: %{name}-data = %{version}-%{release}
  36. Distribution: Vine Linux
  37. Vendor: Project Vine
  38. Packager: iwaim
  39. %description
  40. Fcitx [ˈfaɪtɪks] is an input method framework with extension support.
  41. Currently it supports Linux and Unix systems like freebsd.
  42. It has three built-in Input Method Engine, Pinyin, QuWei and Table-based
  43. input methods.
  44. %package data
  45. Summary: Data files for Fcitx
  46. Group: System Environment/Libraries
  47. Requires: hicolor-icon-theme
  48. Requires: dbus
  49. %description data
  50. This package provides shared datas for Fxitx.
  51. %package libs
  52. Summary: Shared libraries for Fcitx
  53. Group: System Environment/Libraries
  54. %description libs
  55. This package provides shared libraries for Fcitx.
  56. %package devel
  57. Summary: Development files for Fcitx
  58. Group: Development/Libraries
  59. Requires: %{name} = %{version}-%{release}
  60. %description devel
  61. This package contains libraries and header files necessary for
  62. developing programs using Fcitx libraries.
  63. %package gtk2
  64. Summary: Fcitx IM module for GTK2
  65. Group: System Environment/Libraries
  66. Requires: %{name} = %{version}-%{release}
  67. %description gtk2
  68. This package contains Fcitx IM module for GTK2.
  69. %package gtk3
  70. Summary: Fcitx IM module for GTK3
  71. Group: System Environment/Libraries
  72. Requires: %{name} = %{version}-%{release}
  73. %description gtk3
  74. This package contains Fcitx IM module for GTK3.
  75. %package qt4
  76. Summary: Fcitx IM module for Qt4
  77. Group: System Environment/Libraries
  78. Requires: %{name} = %{version}-%{release}
  79. %description qt4
  80. This package contains Fcitx IM module for Qt4.
  81. %prep
  82. %setup -q
  83. %build
  84. %__mkdir build
  85. pushd build
  86. cmake .. \
  87. -DCMAKE_VERBOSE_MAKEFILE=ON \
  88. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  89. -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
  90. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
  91. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  92. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  93. -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
  94. -DENABLE_GTK3_IM_MODULE=On \
  95. -DENABLE_QT_IM_MODULE=On \
  96. -DENABLE_OPENCC=Off \
  97. -DENABLE_LUA=On \
  98. -DENABLE_GIR=On \
  99. -DENABLE_XDGAUTOSTART=Off \
  100. -DENABLE_PRESAGE=Off
  101. make %{?_smp_mflags}
  102. popd
  103. %install
  104. %__rm -rf $RPM_BUILD_ROOT
  105. pushd build
  106. make install INSTALL="install -p" DESTDIR=$RPM_BUILD_ROOT
  107. rm -f %{buildroot}%{_libdir}/*.la
  108. popd
  109. %{find_lang} %{name}
  110. %clean
  111. %__rm -rf $RPM_BUILD_ROOT
  112. %post
  113. update-desktop-database %{_datadir}/applications &>/dev/null || :
  114. %postun
  115. update-desktop-database %{_datadir}/applications &>/dev/null || :
  116. %post libs -p /sbin/ldconfig
  117. %postun libs -p /sbin/ldconfig
  118. %post data
  119. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  120. %postun data
  121. if [ $1 -eq 0 ] ; then
  122. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  123. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  124. fi
  125. %posttrans data
  126. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  127. %post gtk2
  128. %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules || :
  129. %postun gtk2
  130. %{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/%{_arch}/gtk.immodules || :
  131. %post gtk3
  132. %{_bindir}/gtk-query-immodules-3.0 --update-cache || :
  133. %postun gtk3
  134. %{_bindir}/gtk-query-immodules-3.0 --update-cache || :
  135. %files -f %{name}.lang
  136. %defattr(-,root,root,-)
  137. %doc README
  138. %{_bindir}/fcitx*
  139. %exclude %{_bindir}/fcitx4-config
  140. %{_bindir}/createPYMB
  141. %{_bindir}/mb2org
  142. %{_bindir}/mb2txt
  143. %{_bindir}/readPYBase
  144. %{_bindir}/readPYMB
  145. %{_bindir}/scel2org
  146. %{_bindir}/txt2mb
  147. %{_datadir}/applications/fcitx-configtool.desktop
  148. %{_datadir}/applications/fcitx-skin-installer.desktop
  149. %{_datadir}/applications/fcitx.desktop
  150. %{_datadir}/doc/fcitx
  151. %{_mandir}/man1/*.1*
  152. %{_datadir}/mime/packages/x-fskin.xml
  153. %files devel
  154. %defattr(-,root,root,-)
  155. %{_bindir}/fcitx4-config
  156. %{_libdir}/libfcitx*.so
  157. %{_libdir}/pkgconfig/fcitx-config.pc
  158. %{_libdir}/pkgconfig/fcitx-gclient.pc
  159. %{_libdir}/pkgconfig/fcitx-qt.pc
  160. %{_libdir}/pkgconfig/fcitx-utils.pc
  161. %{_libdir}/pkgconfig/fcitx.pc
  162. %{_includedir}/fcitx*
  163. %{_datadir}/cmake/fcitx
  164. %{_datadir}/gir-1.0/Fcitx-1.0.gir
  165. %files libs
  166. %defattr(-,root,root,-)
  167. %{_libdir}/fcitx
  168. %{_libdir}/libfcitx*.so.*
  169. %{_libdir}/girepository-1.0/Fcitx-1.0.typelib
  170. %files data
  171. %defattr(-,root,root,-)
  172. %{_datadir}/icons/hicolor/*/*/*.png
  173. %{_datadir}/icons/hicolor/scalable/apps/fcitx.svg
  174. %{_datadir}/icons/hicolor/scalable/apps/fcitx-*.svg
  175. %{_datadir}/fcitx
  176. %{_datadir}/dbus-1/services/org.fcitx.Fcitx.service
  177. %files gtk2
  178. %defattr(-,root,root,-)
  179. %{_libdir}/gtk-2.0/*/immodules/im-fcitx.so
  180. %files gtk3
  181. %defattr(-,root,root,-)
  182. %{_libdir}/gtk-3.0/*/immodules/im-fcitx.so
  183. %files qt4
  184. %defattr(-,root,root,-)
  185. %{_libdir}/qt4/plugins/inputmethods/qtim-fcitx.so
  186. %changelog
  187. * Wed Dec 20 2017 Toshiaki Ara <ara_t@384.jp> 4.2.9.4-1
  188. - update to 4.2.9.4
  189. - add BR: extra-cmake-modules
  190. - add BR: libxkbfile-devel
  191. - add BR: xkeyboard-config
  192. * Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.9.1-1
  193. - new upstream release.
  194. * Thu Jun 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.2.8.6-3
  195. - rebuilt with new toolchain.
  196. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.6-2
  197. - rebuild with icu-56.1
  198. * Tue Apr 28 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.6-1
  199. - update to 4.2.8.6
  200. * Mon Nov 24 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.5-1
  201. - update to 4.2.8.5
  202. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.4-2
  203. - rebuild with icu-54.1
  204. * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.2.8.3-2
  205. - rebuild with icu-52.1
  206. - move pkgconfig files to %%{name}-devel
  207. * Tue Nov 5 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 4.2.8.3-1
  208. - initial release