fcitx-vl.spec 6.0 KB

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