| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | |
|---|
| 3 | Summary: A set of Thai language support routines |
|---|
| 4 | Name: libthai |
|---|
| 5 | Version: 0.1.20 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | Source0: http://linux.thai.net/pub/thailinux/software/%{name}/%{name}-%{version}.tar.xz |
|---|
| 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 | |
|---|
| 17 | Obsoletes: %{name}-doc < 0.1.20 |
|---|
| 18 | |
|---|
| 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 | |
|---|
| 33 | %package devel |
|---|
| 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 | |
|---|
| 46 | # compat32 |
|---|
| 47 | %package -n compat32-%{name} |
|---|
| 48 | Summary: A set of Thai language support routines |
|---|
| 49 | Group: System Environment/Libraries |
|---|
| 50 | Requires: %{name} = %{version}-%{release} |
|---|
| 51 | |
|---|
| 52 | %description -n compat32-%{name} |
|---|
| 53 | LibThai is a set of Thai language support routines aimed to ease |
|---|
| 54 | developers’ tasks to incorporate Thai language support in their |
|---|
| 55 | applications. It includes important Thai-specific functions e.g. |
|---|
| 56 | word breaking, input and output methods as well as basic character |
|---|
| 57 | and string supports. LibThai is an Open Source and collaborative |
|---|
| 58 | effort initiated by Thai Linux Working Group and opened for all |
|---|
| 59 | contributors. |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | %package -n compat32-%{name}-devel |
|---|
| 63 | Summary: Development tools for libthai |
|---|
| 64 | Summary(ja): libthai の開発環境 |
|---|
| 65 | Group: Development/Libraries |
|---|
| 66 | Requires: compat32-%{name} = %{version}-%{release} |
|---|
| 67 | Requires: compat32-libdatrie-devel |
|---|
| 68 | Requires: pkgconfig |
|---|
| 69 | |
|---|
| 70 | %description -n compat32-%{name}-devel |
|---|
| 71 | Header files and libraries for building a extension library for the |
|---|
| 72 | libthai. |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | |
|---|
| 76 | %prep |
|---|
| 77 | %setup -q |
|---|
| 78 | |
|---|
| 79 | |
|---|
| 80 | %build |
|---|
| 81 | %configure \ |
|---|
| 82 | --disable-static |
|---|
| 83 | |
|---|
| 84 | %{__make} %{?_smp_mflags} |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | %install |
|---|
| 88 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 89 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
|---|
| 90 | |
|---|
| 91 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
|---|
| 92 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
|---|
| 93 | |
|---|
| 94 | |
|---|
| 95 | %clean |
|---|
| 96 | %{__rm} -rf ${RPM_BUILD_ROOT} |
|---|
| 97 | |
|---|
| 98 | %post -p /sbin/ldconfig |
|---|
| 99 | |
|---|
| 100 | %postun -p /sbin/ldconfig |
|---|
| 101 | |
|---|
| 102 | |
|---|
| 103 | %files |
|---|
| 104 | %defattr(-,root,root,-) |
|---|
| 105 | %doc COPYING ChangeLog NEWS README |
|---|
| 106 | %{_libdir}/%{name}.so.* |
|---|
| 107 | %{_datadir}/%{name} |
|---|
| 108 | |
|---|
| 109 | %files devel |
|---|
| 110 | %defattr(-,root,root,-) |
|---|
| 111 | %{_includedir}/thai |
|---|
| 112 | %{_libdir}/%{name}.so |
|---|
| 113 | %{_libdir}/pkgconfig/%{name}.pc |
|---|
| 114 | |
|---|
| 115 | %if %{build_compat32} |
|---|
| 116 | %files -n compat32-%{name} |
|---|
| 117 | %defattr(-, root, root,-) |
|---|
| 118 | %{_libdir}/%{name}.so.* |
|---|
| 119 | |
|---|
| 120 | %files -n compat32-%{name}-devel |
|---|
| 121 | %defattr(-, root, root,-) |
|---|
| 122 | %{_libdir}/%{name}.so |
|---|
| 123 | %endif |
|---|
| 124 | |
|---|
| 125 | |
|---|
| 126 | %changelog |
|---|
| 127 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.20-1 |
|---|
| 128 | - new upstream release |
|---|
| 129 | - remove %%{name}-doc subpackage |
|---|
| 130 | |
|---|
| 131 | * Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.19-1 |
|---|
| 132 | - new upstream release |
|---|
| 133 | |
|---|
| 134 | * Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.18-1 |
|---|
| 135 | - new upstream release |
|---|
| 136 | |
|---|
| 137 | * Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.17-1 |
|---|
| 138 | - new upstream release |
|---|
| 139 | |
|---|
| 140 | * Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.16-1 |
|---|
| 141 | - initial build for Vine Linux |
|---|
| 142 | |
|---|