diff options
-rw-r--r-- | packaging/baselibs.conf | 3 | ||||
-rw-r--r-- | packaging/libthai.spec | 78 |
2 files changed, 81 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf new file mode 100644 index 0000000..6fe56d3 --- /dev/null +++ b/packaging/baselibs.conf @@ -0,0 +1,3 @@ +libthai0 + provides "libthai-<targettype> = <version>" + obsoletes "libthai-<targettype> < <version>" diff --git a/packaging/libthai.spec b/packaging/libthai.spec new file mode 100644 index 0000000..74136a0 --- /dev/null +++ b/packaging/libthai.spec @@ -0,0 +1,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 |