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