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

Revision 6011, 3.6 KB checked in by Takemikaduchi, 12 years ago (diff)

new upstream release

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