ibus-kkc-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. %define ver 1.5.19
  2. %define rel 1
  3. %define from_git 0
  4. %if %{from_git}
  5. %define githash e388f558
  6. %endif
  7. Summary: a Japanese Kana Kanji input engine for IBus
  8. Name: ibus-kkc
  9. Version: %{ver}
  10. %if %{from_git}
  11. Release: %{rel}.git%{githash}%{_dist_release}
  12. %else
  13. Release: %{rel}%{_dist_release}
  14. %endif
  15. License: GPLv3
  16. Group: System Environment/Libraries
  17. URL: https://bitbucket.org/libkkc/
  18. %if %{from_git}
  19. Source0: %{name}-%{githash}.tar.gz
  20. %else
  21. Source0: https://bitbucket.org/libkkc/ibus-kkc/downloads/%{name}-%{version}.tar.gz
  22. %endif
  23. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  24. BuildRequires: gtk3-devel
  25. BuildRequires: ibus-devel >= 1.4.0
  26. BuildRequires: libkkc-devel >= 0.1.0
  27. BuildRequires: desktop-file-utils
  28. %if %{from_git}
  29. BuildRequires: gnome-common
  30. %endif
  31. Requires: libkkc-data
  32. Requires: skkdic
  33. %description
  34. a Japanese Kana Kanji input engine for IBus.
  35. %prep
  36. %if %{from_git}
  37. %setup -q -n %{name}-%{githash}
  38. %else
  39. %setup -q
  40. %endif
  41. %build
  42. %if %{from_git}
  43. ./autogen.sh
  44. %endif
  45. %configure --enable-shared
  46. %__make
  47. %install
  48. %__rm -rf $RPM_BUILD_ROOT
  49. %makeinstall
  50. %{find_lang} %{name}
  51. %clean
  52. %__rm -rf $RPM_BUILD_ROOT
  53. %check
  54. %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/ibus-setup-kkc.desktop
  55. %post
  56. if [ -x %{_bindir}/update-desktop-database ] ; then
  57. %{_bindir}/update-desktop-database %{_datadir}/applications
  58. fi
  59. %postun
  60. if [ -x %{_bindir}/update-desktop-database ] ; then
  61. %{_bindir}/update-desktop-database %{_datadir}/applications
  62. fi
  63. %files -f %{name}.lang
  64. %defattr(-,root,root,-)
  65. %doc README ChangeLog COPYING AUTHORS NEWS
  66. %{_libexecdir}/ibus-engine-kkc
  67. %{_libexecdir}/ibus-setup-kkc
  68. %{_datadir}/applications/ibus-setup-kkc.desktop
  69. %dir %{_datadir}/ibus-kkc
  70. %dir %{_datadir}/ibus-kkc/icons
  71. %{_datadir}/ibus-kkc/icons/ibus-kkc.svg
  72. %{_datadir}/ibus/component/kkc.xml
  73. %changelog
  74. * Wed Dec 18 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.19-1
  75. - update to 1.5.19
  76. * Thu Nov 7 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.18-1
  77. - update to 1.5.18
  78. * Sat Jul 27 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.16-1
  79. - update to 1.5.16
  80. - update %%files
  81. * Tue Jun 18 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.14-1
  82. - update to 1.5.14
  83. - fix changelog: 1.15.10-1
  84. * Tue Mar 26 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.10-1
  85. - update to 1.5.10
  86. * Sat Mar 16 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.9-1
  87. - update to 1.5.9
  88. * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.8-1
  89. - update to 1.5.8
  90. * Sat Feb 23 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.7-1
  91. - update to 1.5.7
  92. * Mon Feb 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.6-1
  93. - update to 1.5.6
  94. * Tue Feb 5 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1
  95. - update to 1.5.5
  96. - update Summary and description: sync README
  97. * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.3-1
  98. - update to 1.5.3
  99. - update requires libkkc version: 0.1.0
  100. * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-3.gite388f558
  101. - update to git e388f558e3eff3e538fa48ee0c2275e7d743964c
  102. - add requires package version:
  103. - ibus-devel >= 1.4.0
  104. - libkkc-devel >= 0.0.3-3
  105. * Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-2.giteb042df4
  106. - update to git eb042df479cdad0d037e16016fda3d2cae99aaa1
  107. - add BuildRequires: gnome-common with git
  108. - add Requires: skkdic
  109. * Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-1
  110. - initial build for Vine Linux