summaryrefslogtreecommitdiff
path: root/packaging/libthai.spec
blob: 74136a00601e1cade3f7cd8929f4b3a7c26cfc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
Name:           libthai
Version:        0.1.18
Release:        0
License:        LGPL-2.1+
Summary:        Thai Language Support Routines
Url:            http://linux.thai.net/plone/TLWG/libthai/
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
Source99:       baselibs.conf
BuildRequires:  libdatrie-devel
BuildRequires:  pkg-config
Requires:       libthai-data >= %{version}

%description
LibThai is a set of Thai language support routines aimed to ease
developers' tasks to incorporate Thai language support in their
applications. It includes important Thai-specific functions, such as
word breaking, input and output methods, and basic character and string
support.

%package data
Summary:        Thai Language Support Routines - Data files
Group:          System/Libraries

%description data
LibThai is a set of Thai language support routines aimed to ease
developers' tasks to incorporate Thai language support in their
applications. It includes important Thai-specific functions, such as
word breaking, input and output methods, and basic character and string
support.

This package contains the data files for libthai.

%package devel
Summary:        Thai Language Support Routines (development files)
Group:          Development/Languages/C and C++
Requires:       libthai = %{version}

%description devel
LibThai is a set of Thai language support routines aimed to ease
developers' tasks to incorporate Thai language support in their
applications. It includes important Thai-specific functions, such as
word breaking, input and output methods, and basic character and string
support.

This package contains headers and libraries required for developing
software using libthai.

%prep
%setup -q

%build
%configure --disable-static --with-pic
make %{?_smp_mflags}

%install
%make_install


%post  -p /sbin/ldconfig

%postun  -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/libthai.so.*

%files data
%defattr(-, root, root)
%{_datadir}/libthai/

%files devel
%defattr(-,root,root)
%{_includedir}/thai/
%{_libdir}/libthai.so
%{_libdir}/pkgconfig/*.pc

%changelog