libthai-vl.spec 4.0 KB

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