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