libthai-vl.spec 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define _unpackaged_files_terminate_build 1
  3. Summary: A set of Thai language support routines
  4. Name: libthai
  5. Version: 0.1.27
  6. Release: 1%{?_dist_release}
  7. Source0: http://linux.thai.net/pub/thailinux/software/%{name}/%{name}-%{version}.tar.xz
  8. License: GPLv2
  9. Group: System Environment/Libraries
  10. URL: http://linux.thai.net/projects/libthai
  11. BuildRequires: doxygen
  12. BuildRequires: libdatrie-devel
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Obsoletes: %{name}-doc < 0.1.20
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. LibThai is a set of Thai language support routines aimed to ease
  20. developers’ tasks to incorporate Thai language support in their
  21. applications. It includes important Thai-specific functions e.g.
  22. word breaking, input and output methods as well as basic character
  23. and string supports. LibThai is an Open Source and collaborative
  24. effort initiated by Thai Linux Working Group and opened for all
  25. contributors.
  26. %package devel
  27. Summary: Development tools for libthai
  28. Summary(ja): libthai の開発環境
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: libdatrie-devel
  32. Requires: pkgconfig
  33. %description devel
  34. Header files and libraries for building a extension library for the
  35. libthai.
  36. %package docs
  37. Summary: Documentation for %{name}
  38. Summary(ja): %{name} 用のドキュメント
  39. Group: Documentation
  40. Requires: %{name} = %{version}-%{release}
  41. BuildArch: noarch
  42. %description docs
  43. This package contains documentation for %{name}.
  44. # compat32
  45. %package -n compat32-%{name}
  46. Summary: A set of Thai language support routines
  47. Group: System Environment/Libraries
  48. Requires: %{name} = %{version}-%{release}
  49. %description -n compat32-%{name}
  50. LibThai is a set of Thai language support routines aimed to ease
  51. developers’ tasks to incorporate Thai language support in their
  52. applications. It includes important Thai-specific functions e.g.
  53. word breaking, input and output methods as well as basic character
  54. and string supports. LibThai is an Open Source and collaborative
  55. effort initiated by Thai Linux Working Group and opened for all
  56. contributors.
  57. %package -n compat32-%{name}-devel
  58. Summary: Development tools for libthai
  59. Summary(ja): libthai の開発環境
  60. Group: Development/Libraries
  61. Requires: compat32-%{name} = %{version}-%{release}
  62. Requires: compat32-libdatrie-devel
  63. Requires: pkgconfig
  64. %description -n compat32-%{name}-devel
  65. Header files and libraries for building a extension library for the
  66. libthai.
  67. %prep
  68. %setup -q
  69. %build
  70. %configure \
  71. --disable-static
  72. %{__make} %{?_smp_mflags}
  73. %install
  74. %{__rm} -rf ${RPM_BUILD_ROOT}
  75. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  76. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  77. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  78. %clean
  79. %{__rm} -rf ${RPM_BUILD_ROOT}
  80. %post -p /sbin/ldconfig
  81. %postun -p /sbin/ldconfig
  82. %files
  83. %defattr(-,root,root,-)
  84. %doc COPYING ChangeLog NEWS README
  85. %{_libdir}/%{name}.so.*
  86. %{_datadir}/%{name}
  87. %files devel
  88. %defattr(-,root,root,-)
  89. %{_includedir}/thai
  90. %{_libdir}/%{name}.so
  91. %{_libdir}/pkgconfig/%{name}.pc
  92. %files docs
  93. %defattr(-,root,root,-)
  94. %{_docdir}/%{name}
  95. %if %{build_compat32}
  96. %files -n compat32-%{name}
  97. %defattr(-, root, root,-)
  98. %{_libdir}/%{name}.so.*
  99. %files -n compat32-%{name}-devel
  100. %defattr(-, root, root,-)
  101. %{_libdir}/%{name}.so
  102. %endif
  103. %changelog
  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