diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 07:14:38 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-04 07:14:38 -0800 |
commit | 6ee84529bd5f4a4d243815484f22c9aa417c1e91 (patch) | |
tree | af7727a689e600bf5eba46156849a0042a443fab | |
parent | e28c3fb0c3efaee49f10d1aa87e5eb9170cdf17a (diff) | |
download | libthai-6ee84529bd5f4a4d243815484f22c9aa417c1e91.tar.gz libthai-6ee84529bd5f4a4d243815484f22c9aa417c1e91.tar.bz2 libthai-6ee84529bd5f4a4d243815484f22c9aa417c1e91.zip |
add packaging
-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 |