libthai-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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.17
  5. Release: 1%{?_dist_release}
  6. Source0: http://linux.thai.net/pub/thailinux/software/%{name}/%{name}-%{version}.tar.gz
  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. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: Takemikaduchi
  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: Development/Libraries
  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 doc
  35. Summary: Documentation for libthai
  36. Summary(ja): libthai 用のドキュメント
  37. Group: Documentation
  38. Requires: %{name} = %{version}-%{release}
  39. BuildArch: noarch
  40. %description doc
  41. This package contains documentation for libthai
  42. # compat32
  43. %package -n compat32-%{name}
  44. Summary: A set of Thai language support routines
  45. Group: System Environment/Libraries
  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: Development/Libraries
  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. %prep
  66. %setup -q
  67. %build
  68. %configure \
  69. --disable-static
  70. %{__make} %{?_smp_mflags}
  71. %install
  72. %{__rm} -rf ${RPM_BUILD_ROOT}
  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. %post -p /sbin/ldconfig
  79. %postun -p /sbin/ldconfig
  80. %files
  81. %defattr(-,root,root,-)
  82. %doc COPYING ChangeLog NEWS README
  83. %{_libdir}/%{name}.so.*
  84. %{_datadir}/%{name}
  85. %files devel
  86. %defattr(-,root,root,-)
  87. %{_includedir}/thai
  88. %{_libdir}/%{name}.so
  89. %{_libdir}/pkgconfig/%{name}.pc
  90. %files doc
  91. %defattr(-,root,root,-)
  92. %{_docdir}/%{name}
  93. %if %{build_compat32}
  94. %files -n compat32-%{name}
  95. %defattr(-, root, root,-)
  96. %{_libdir}/%{name}.so.*
  97. %files -n compat32-%{name}-devel
  98. %defattr(-, root, root,-)
  99. %{_libdir}/%{name}.so
  100. %{_libdir}/pkgconfig/%{name}.pc
  101. %endif
  102. %changelog
  103. * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.17-1
  104. - new upstream release
  105. * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.16-1
  106. - initial build for Vine Linux