libskk-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. %define pkg_name libskk
  2. %define pkg_version 1.0.3
  3. %define pkg_release 2%{?_dist_release}
  4. Summary: A library to deal with Japanese kana-to-kanji conversion method
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: GPLv3+
  9. Group: System Environment/Libraries
  10. URL: https://github.com/ueno/libskk
  11. Source0: https://github.com/ueno/libskk/releases/download/1.0.2/%{name}-%{version}.tar.xz
  12. # unable stick-shift using "Henkan" key
  13. Patch1: rules_Makefile.am.patch
  14. Patch2: rules_Makefile.in.patch
  15. Patch3: libskk_key-event.c.patch
  16. Patch4: test-sticky-hiragana.json.patch
  17. Patch5: libskk-add-keymap.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  19. BuildRequires: libgee-devel
  20. BuildRequires: json-glib-devel
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. libskk -- a library to deal with Japanese kana-to-kanji conversion method
  25. %package devel
  26. Summary: files for development of libskk
  27. Group: Development/Libraries
  28. Requires: libskk = %{version}-%{release}
  29. %description devel
  30. Development tools for libskk
  31. %prep
  32. %{__rm} -rf ${RPM_BUILD_ROOT}
  33. %setup -q
  34. %patch1
  35. %patch2
  36. %patch3
  37. %patch4
  38. %patch5
  39. %{__cp} -a tests/rules/test-sticky rules
  40. %build
  41. %configure
  42. %{__make} %{?_smp_mflags}
  43. %install
  44. %{__rm} -rf ${RPM_BUILD_ROOT}
  45. %{make_install}
  46. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la
  47. %clean
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %post -p %{_syssbindir}/ldconfig
  50. %postun -p %{_syssbindir}/ldconfig
  51. %files
  52. %defattr(-, root, root)
  53. %doc AUTHORS ChangeLog COPYING NEWS README
  54. %{_bindir}/skk
  55. %{_libdir}/libskk.so.*
  56. %{_libdir}/girepository-1.0
  57. %{_datadir}/gir-1.0/
  58. %{_datadir}/libskk/
  59. %{_datadir}/locale/
  60. %{_datadir}/vala/
  61. %{_mandir}/man1/
  62. %files devel
  63. %defattr(-, root, root)
  64. %{_includedir}/libskk/*.h
  65. %{_libdir}/pkgconfig/*.pc
  66. %{_libdir}/libskk.so
  67. %changelog
  68. * Thu Jul 19 2018 Toshiaki Ara <ara_t@384.jp> 1.0.3-2
  69. - add Patch5 to input some Zenkaku characters
  70. * Fri Dec 15 2017 Toshiaki Ara <ara_t@384.jp> 1.0.3-1
  71. - Initial release