ibus-kkc-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. %define ver 1.5.10
  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. %dir %{_datadir}/ibus-kkc/setup
  73. %{_datadir}/ibus-kkc/setup/ibus-kkc-preferences.ui
  74. %{_datadir}/ibus/component/kkc.xml
  75. %changelog
  76. * Tue Mar 26 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.10-1
  77. - update to 1.5.10-1
  78. * Sat Mar 16 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.9-1
  79. - update to 1.5.9
  80. * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.8-1
  81. - update to 1.5.8
  82. * Sat Feb 23 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.7-1
  83. - update to 1.5.7
  84. * Mon Feb 11 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.6-1
  85. - update to 1.5.6
  86. * Tue Feb 5 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.5-1
  87. - update to 1.5.5
  88. - update Summary and description: sync README
  89. * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.3-1
  90. - update to 1.5.3
  91. - update requires libkkc version: 0.1.0
  92. * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-3.gite388f558
  93. - update to git e388f558e3eff3e538fa48ee0c2275e7d743964c
  94. - add requires package version:
  95. - ibus-devel >= 1.4.0
  96. - libkkc-devel >= 0.0.3-3
  97. * Tue Jan 29 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-2.giteb042df4
  98. - update to git eb042df479cdad0d037e16016fda3d2cae99aaa1
  99. - add BuildRequires: gnome-common with git
  100. - add Requires: skkdic
  101. * Mon Jan 28 2013 IWAI, Masaharu <iwai@alib.jp> 1.5.2-1
  102. - initial build for Vine Linux