fcitx-kkc-vl.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define ver 0.1.1
  2. %define rel 2
  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. Source1: https://raw.githubusercontent.com/fcitx/fcitx-kkc/5a98b507abdd6888e3124bca1448ad4e4d25b0ef/po/ja.po
  12. Patch0: https://github.com/m-shibata/fcitx-kkc/commit/49c0045cd5d0262d73d6006db9f6074707247717.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  14. BuildRequires: cmake
  15. BuildRequires: fcitx-devel >= 4.2.8
  16. BuildRequires: libkkc-devel >= 0.2.3
  17. Requires: fcitx
  18. Distribution: Vine Linux
  19. Vendor: Project Vine
  20. Packager: iwaim
  21. %description
  22. Japanese Kana Kanji Engine for Fcitx.
  23. %prep
  24. %setup -q
  25. %patch0 -p1
  26. %__cp %{SOURCE1} po/ja.po
  27. %build
  28. %__mkdir build
  29. pushd build
  30. %cmake ENABLE_QT=On ..
  31. make %{?_smp_mflags}
  32. popd
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. pushd build
  36. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  37. popd
  38. %find_lang %{name}
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %post
  42. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  43. %postun
  44. if [ $1 -eq 0 ] ; then
  45. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  46. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  47. fi
  48. %posttrans
  49. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  50. %files -f %{name}.lang
  51. %defattr(-,root,root,-)
  52. %doc COPYING
  53. %{_libdir}/fcitx/fcitx-kkc.so
  54. %{_libdir}/fcitx/qt/libfcitx-kkc-config.so
  55. %{_datadir}/fcitx/addon/fcitx-kkc.conf
  56. %{_datadir}/fcitx/configdesc/fcitx-kkc.desc
  57. %{_datadir}/fcitx/imicon/kkc.png
  58. %{_datadir}/fcitx/inputmethod/kkc.conf
  59. %dir %{_datadir}/fcitx/kkc
  60. %{_datadir}/fcitx/kkc/dictionary_list
  61. %{_datadir}/fcitx/kkc/rule
  62. %{_datadir}/icons/hicolor/64x64/apps/fcitx-kkc.png
  63. %dir %{_includedir}/fcitx/module/kkc
  64. %{_includedir}/fcitx/module/kkc/fcitx-kkc.h
  65. %changelog
  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