source: projects/specs/trunk/lib/libt/libthai/libthai-vl.spec @ 11341

Revision 11341, 4.2 KB checked in by tomop, 6 years ago (diff)

libthai-0.1.27-1

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2%define _unpackaged_files_terminate_build 1
3
4Summary:        A set of Thai language support routines
5Name:           libthai
6Version:        0.1.27
7Release:        1%{?_dist_release}
8Source0:        http://linux.thai.net/pub/thailinux/software/%{name}/%{name}-%{version}.tar.xz
9License:        GPLv2
10Group:          System Environment/Libraries
11URL:            http://linux.thai.net/projects/libthai
12
13BuildRequires:  doxygen
14BuildRequires:  libdatrie-devel
15
16BuildRoot:      %{_tmppath}/%{name}-%{version}-root
17
18Obsoletes:      %{name}-doc < 0.1.20
19
20Vendor:         Project Vine
21Distribution:   Vine Linux
22Packager:       Takemikaduchi
23
24%description
25LibThai is a set of Thai language support routines aimed to ease
26developers’ tasks to incorporate Thai language support in their
27applications. It includes important Thai-specific functions e.g.
28word breaking, input and output methods as well as basic character
29and string supports. LibThai is an Open Source and collaborative
30effort initiated by Thai Linux Working Group and opened for all
31contributors.
32
33
34%package                devel
35Summary:        Development tools for libthai
36Summary(ja):    libthai の開発環境
37Group:          Development/Libraries
38Requires:       %{name} = %{version}-%{release}
39Requires:       libdatrie-devel
40Requires:       pkgconfig
41
42%description    devel
43Header files and libraries for building a extension library for the
44libthai.
45
46
47%package        docs
48Summary:        Documentation for %{name}
49Summary(ja):    %{name} 用のドキュメント
50Group:          Documentation
51Requires:       %{name} = %{version}-%{release}
52BuildArch:      noarch
53
54%description    docs
55This package contains documentation for %{name}.
56
57
58# compat32
59%package -n compat32-%{name}
60Summary:        A set of Thai language support routines
61Group:          System Environment/Libraries
62Requires:       %{name} = %{version}-%{release}
63
64%description -n compat32-%{name}
65LibThai is a set of Thai language support routines aimed to ease
66developers’ tasks to incorporate Thai language support in their
67applications. It includes important Thai-specific functions e.g.
68word breaking, input and output methods as well as basic character
69and string supports. LibThai is an Open Source and collaborative
70effort initiated by Thai Linux Working Group and opened for all
71contributors.
72
73
74%package -n compat32-%{name}-devel
75Summary:        Development tools for libthai
76Summary(ja):    libthai の開発環境
77Group:          Development/Libraries
78Requires:       compat32-%{name} = %{version}-%{release}
79Requires:       compat32-libdatrie-devel
80Requires:       pkgconfig
81
82%description -n compat32-%{name}-devel
83Header files and libraries for building a extension library for the
84libthai.
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
103find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
104find $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
127%files docs
128%defattr(-,root,root,-)
129%{_docdir}/%{name}
130
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
143* Sun Jan 07 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.27-1
144- new upstream release.
145
146* Thu Oct 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.23-1
147- new upstream release
148
149* Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.21-1
150- new upstream release
151
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
156* Wed Apr 17 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.19-1
157- new upstream release
158
159* Wed Sep 26 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.18-1
160- new upstream release
161
162* Sat Mar 31 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.17-1
163- new upstream release
164
165* Wed Jan 04 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1.16-1
166- initial build for Vine Linux
167
Note: See TracBrowser for help on using the repository browser.