libskk-vl.spec 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %define pkg_name libskk
  2. %define pkg_version 1.0.3
  3. %define pkg_release 1%{?_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. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  18. BuildRequires: libgee-devel
  19. BuildRequires: json-glib-devel
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. libskk -- a library to deal with Japanese kana-to-kanji conversion method
  24. %package devel
  25. Summary: files for development of libskk
  26. Group: Development/Libraries
  27. Requires: libskk = %{version}-%{release}
  28. %description devel
  29. Development tools for libskk
  30. %prep
  31. %{__rm} -rf ${RPM_BUILD_ROOT}
  32. %setup -q
  33. %patch1
  34. %patch2
  35. %patch3
  36. %patch4
  37. %{__cp} -a tests/rules/test-sticky rules
  38. %build
  39. %configure
  40. %{__make} %{?_smp_mflags}
  41. %install
  42. %{__rm} -rf ${RPM_BUILD_ROOT}
  43. %{make_install}
  44. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la
  45. %clean
  46. %{__rm} -rf ${RPM_BUILD_ROOT}
  47. %post -p %{_syssbindir}/ldconfig
  48. %postun -p %{_syssbindir}/ldconfig
  49. %files
  50. %defattr(-, root, root)
  51. %doc AUTHORS ChangeLog COPYING NEWS README
  52. %{_bindir}/skk
  53. %{_libdir}/libskk.so.*
  54. %{_libdir}/girepository-1.0
  55. %{_datadir}/gir-1.0/
  56. %{_datadir}/libskk/
  57. %{_datadir}/locale/
  58. %{_datadir}/vala/
  59. %{_mandir}/man1/
  60. %files devel
  61. %defattr(-, root, root)
  62. %{_includedir}/libskk/*.h
  63. %{_libdir}/pkgconfig/*.pc
  64. %{_libdir}/libskk.so
  65. %changelog
  66. * Fri Dec 15 2017 Toshiaki Ara <ara_t@384.jp> 1.0.3-1
  67. - Initial release