libthai-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: A set of Thai language support routines
  3. Name: libthai
  4. Version: 0.1.28
  5. Release: 1%{?_dist_release}
  6. Group: localization,system
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv2
  10. URL: https://linux.thai.net/projects/libthai/
  11. Source0: https://github.com/tlwg/libthai/releases/download/v%{version}/%{name}-%{version}.tar.xz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: doxygen
  14. BuildRequires: libdatrie-devel
  15. Obsoletes: %{name}-doc < 0.1.20
  16. %description
  17. LibThai is a set of Thai language support routines aimed to ease
  18. developers’ tasks to incorporate Thai language support in their
  19. applications. It includes important Thai-specific functions e.g.
  20. word breaking, input and output methods as well as basic character
  21. and string supports. LibThai is an Open Source and collaborative
  22. effort initiated by Thai Linux Working Group and opened for all
  23. contributors.
  24. %package devel
  25. Summary: Development tools for libthai
  26. Summary(ja): libthai の開発環境
  27. Group: programming
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: libdatrie-devel
  30. Requires: pkgconfig
  31. %description devel
  32. Header files and libraries for building a extension library for the
  33. libthai.
  34. %package docs
  35. Summary: Documentation for %{name}
  36. Summary(ja): %{name} 用のドキュメント
  37. Group: documentation
  38. Requires: %{name} = %{version}-%{release}
  39. BuildArch: noarch
  40. %description docs
  41. This package contains documentation for %{name}.
  42. # compat32
  43. %package -n compat32-%{name}
  44. Summary: A set of Thai language support routines
  45. Group: localization,system,legacy
  46. Requires: %{name} = %{version}-%{release}
  47. %description -n compat32-%{name}
  48. LibThai is a set of Thai language support routines aimed to ease
  49. developers’ tasks to incorporate Thai language support in their
  50. applications. It includes important Thai-specific functions e.g.
  51. word breaking, input and output methods as well as basic character
  52. and string supports. LibThai is an Open Source and collaborative
  53. effort initiated by Thai Linux Working Group and opened for all
  54. contributors.
  55. %package -n compat32-%{name}-devel
  56. Summary: Development tools for libthai
  57. Summary(ja): libthai の開発環境
  58. Group: programming,legaxy
  59. Requires: compat32-%{name} = %{version}-%{release}
  60. Requires: compat32-libdatrie-devel
  61. Requires: pkgconfig
  62. %description -n compat32-%{name}-devel
  63. Header files and libraries for building a extension library for the
  64. libthai.
  65. %debug_package
  66. %prep
  67. %setup -q
  68. %build
  69. %configure \
  70. --disable-static
  71. %{__make} %{?_smp_mflags}
  72. %install
  73. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  74. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  75. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  76. %clean
  77. %{__rm} -rf ${RPM_BUILD_ROOT}
  78. %files
  79. %defattr(-,root,root,-)
  80. %license COPYING
  81. %doc AUTHORS ChangeLog NEWS README
  82. %{_libdir}/%{name}.so.*
  83. %{_datadir}/%{name}
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %{_includedir}/thai
  87. %{_libdir}/%{name}.so
  88. %{_libdir}/pkgconfig/%{name}.pc
  89. %files docs
  90. %defattr(-,root,root,-)
  91. %{_docdir}/%{name}
  92. %if %{build_compat32}
  93. %files -n compat32-%{name}
  94. %defattr(-, root, root,-)
  95. %{_libdir}/%{name}.so.*
  96. %files -n compat32-%{name}-devel
  97. %defattr(-, root, root,-)
  98. %{_libdir}/%{name}.so
  99. %endif
  100. %changelog
  101. * Fri Mar 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.28-1
  102. - new upstream release.
  103. - dropped scriptlets.
  104. * Sun Jan 07 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.27-1
  105. - new upstream release.
  106. * Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.23-1
  107. - new upstream release
  108. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.21-1
  109. - new upstream release
  110. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.20-1
  111. - new upstream release
  112. - remove %%{name}-doc subpackage
  113. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.19-1
  114. - new upstream release
  115. * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.18-1
  116. - new upstream release
  117. * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.17-1
  118. - new upstream release
  119. * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.16-1
  120. - initial build for Vine Linux