ibus-kkc-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. %define ver 1.5.21
  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. * Mon Jul 7 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.21-1
  75. - update to 1.5.21
  76. * Sun Jun 15 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.20-1
  77. - update to 1.5.20
  78. * Wed Dec 18 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.19-1
  79. - update to 1.5.19
  80. * Thu Nov 7 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.18-1
  81. - update to 1.5.18
  82. * Sat Jul 27 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.16-1
  83. - update to 1.5.16
  84. - update %%files
  85. * Tue Jun 18 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 1.5.14-1
  86. - update to 1.5.14
  87. - fix changelog: 1.15.10-1
  88. * Tue Mar 26 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.10-1
  89. - update to 1.5.10
  90. * Sat Mar 16 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.9-1
  91. - update to 1.5.9
  92. * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.8-1
  93. - update to 1.5.8
  94. * Sat Feb 23 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.7-1
  95. - update to 1.5.7
  96. * Mon Feb 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.6-1
  97. - update to 1.5.6
  98. * Tue Feb 5 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1
  99. - update to 1.5.5
  100. - update Summary and description: sync README
  101. * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.3-1
  102. - update to 1.5.3
  103. - update requires libkkc version: 0.1.0
  104. * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-3.gite388f558
  105. - update to git e388f558e3eff3e538fa48ee0c2275e7d743964c
  106. - add requires package version:
  107. - ibus-devel >= 1.4.0
  108. - libkkc-devel >= 0.0.3-3
  109. * Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-2.giteb042df4
  110. - update to git eb042df479cdad0d037e16016fda3d2cae99aaa1
  111. - add BuildRequires: gnome-common with git
  112. - add Requires: skkdic
  113. * Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-1
  114. - initial build for Vine Linux