libthai-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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.20
  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. # compat32
  36. %package -n compat32-%{name}
  37. Summary: A set of Thai language support routines
  38. Group: System Environment/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. %description -n compat32-%{name}
  41. LibThai is a set of Thai language support routines aimed to ease
  42. developers’ tasks to incorporate Thai language support in their
  43. applications. It includes important Thai-specific functions e.g.
  44. word breaking, input and output methods as well as basic character
  45. and string supports. LibThai is an Open Source and collaborative
  46. effort initiated by Thai Linux Working Group and opened for all
  47. contributors.
  48. %package -n compat32-%{name}-devel
  49. Summary: Development tools for libthai
  50. Summary(ja): libthai の開発環境
  51. Group: Development/Libraries
  52. Requires: compat32-%{name} = %{version}-%{release}
  53. Requires: compat32-libdatrie-devel
  54. Requires: pkgconfig
  55. %description -n compat32-%{name}-devel
  56. Header files and libraries for building a extension library for the
  57. libthai.
  58. %prep
  59. %setup -q
  60. %build
  61. %configure \
  62. --disable-static
  63. %{__make} %{?_smp_mflags}
  64. %install
  65. %{__rm} -rf ${RPM_BUILD_ROOT}
  66. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  67. find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
  68. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  69. %clean
  70. %{__rm} -rf ${RPM_BUILD_ROOT}
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %files
  74. %defattr(-,root,root,-)
  75. %doc COPYING ChangeLog NEWS README
  76. %{_libdir}/%{name}.so.*
  77. %{_datadir}/%{name}
  78. %files devel
  79. %defattr(-,root,root,-)
  80. %{_includedir}/thai
  81. %{_libdir}/%{name}.so
  82. %{_libdir}/pkgconfig/%{name}.pc
  83. %if %{build_compat32}
  84. %files -n compat32-%{name}
  85. %defattr(-, root, root,-)
  86. %{_libdir}/%{name}.so.*
  87. %files -n compat32-%{name}-devel
  88. %defattr(-, root, root,-)
  89. %{_libdir}/%{name}.so
  90. %endif
  91. %changelog
  92. * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.20-1
  93. - new upstream release
  94. - remove %%{name}-doc subpackage
  95. * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.19-1
  96. - new upstream release
  97. * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.18-1
  98. - new upstream release
  99. * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.17-1
  100. - new upstream release
  101. * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.16-1
  102. - initial build for Vine Linux