fcitx-kkc-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. %define ver 0.1.2
  2. %define rel 1
  3. Summary: Japanese Kana Kanji Engine for Fcitx
  4. Name: fcitx-kkc
  5. Version: %{ver}
  6. Release: %{rel}%{_dist_release}
  7. License: GPLv3
  8. Group: System Environment/Libraries
  9. URL: https://fcitx-im.org
  10. Source0: http://download.fcitx-im.org/fcitx-kkc/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  12. BuildRequires: cmake
  13. BuildRequires: fcitx-devel >= 4.2.8
  14. BuildRequires: libkkc-devel >= 0.2.3
  15. Requires: fcitx
  16. Distribution: Vine Linux
  17. Vendor: Project Vine
  18. Packager: iwaim
  19. %description
  20. Japanese Kana Kanji Engine for Fcitx.
  21. %prep
  22. %setup -q
  23. %build
  24. %__mkdir build
  25. pushd build
  26. %cmake ENABLE_QT=On ..
  27. make %{?_smp_mflags}
  28. popd
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. pushd build
  32. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  33. popd
  34. %find_lang %{name}
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %post
  38. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  39. %postun
  40. if [ $1 -eq 0 ] ; then
  41. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  42. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  43. fi
  44. %posttrans
  45. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  46. %files -f %{name}.lang
  47. %defattr(-,root,root,-)
  48. %doc COPYING
  49. %{_libdir}/fcitx/fcitx-kkc.so
  50. %{_libdir}/fcitx/qt/libfcitx-kkc-config.so
  51. %{_datadir}/fcitx/addon/fcitx-kkc.conf
  52. %{_datadir}/fcitx/configdesc/fcitx-kkc.desc
  53. %{_datadir}/fcitx/imicon/kkc.png
  54. %{_datadir}/fcitx/inputmethod/kkc.conf
  55. %dir %{_datadir}/fcitx/kkc
  56. %{_datadir}/fcitx/kkc/dictionary_list
  57. %{_datadir}/fcitx/kkc/rule
  58. %{_datadir}/icons/hicolor/64x64/apps/fcitx-kkc.png
  59. %dir %{_includedir}/fcitx/module/kkc
  60. %{_includedir}/fcitx/module/kkc/fcitx-kkc.h
  61. %changelog
  62. * Mon Jun 1 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.2-1
  63. - update to 0.1.2
  64. - drop unnecessary patch (Patch0): upstream merged
  65. - drop unnecessary ja.po (Source0): upstream merged
  66. * Sat May 2 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.1-2
  67. - update ja.po from upstream
  68. - add 'fix the check for the keymap conflict was inverted' patch (Patch0)
  69. - clean up spec file
  70. * Sun Jun 15 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.1-1
  71. - update to 0.1.1
  72. * Sun Dec 22 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.1.0-1.git51112956
  73. - initial relase