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