2007-01-16 00:23:23 +01:00
|
|
|
#
|
2011-02-22 20:26:36 +01:00
|
|
|
# spec file for package libthai
|
2007-01-16 00:23:23 +01:00
|
|
|
#
|
2013-03-13 23:46:51 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:23 +01:00
|
|
|
#
|
2009-01-19 02:10:56 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-04-09 00:19:42 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:23:23 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-04-09 00:19:42 +02:00
|
|
|
Name: libthai
|
2013-12-26 11:19:45 +01:00
|
|
|
Version: 0.1.20
|
2012-01-18 09:06:52 +01:00
|
|
|
Release: 0
|
2010-02-18 16:31:43 +01:00
|
|
|
Summary: Thai Language Support Routines
|
2012-01-18 09:06:52 +01:00
|
|
|
License: LGPL-2.1+
|
2008-04-09 00:19:42 +02:00
|
|
|
Group: System/Libraries
|
2012-01-18 09:06:52 +01:00
|
|
|
Url: http://linux.thai.net/plone/TLWG/libthai/
|
2013-03-13 23:46:51 +01:00
|
|
|
Source: http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz
|
2011-02-22 15:22:46 +01:00
|
|
|
Source99: baselibs.conf
|
2010-02-18 16:31:43 +01:00
|
|
|
BuildRequires: libdatrie-devel
|
|
|
|
BuildRequires: pkg-config
|
2008-04-09 00:19:42 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:23:23 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
LibThai is a set of Thai language support routines aimed to ease
|
|
|
|
developers' tasks to incorporate Thai language support in their
|
2008-04-09 00:19:42 +02:00
|
|
|
applications. It includes important Thai-specific functions, such as
|
|
|
|
word breaking, input and output methods, and basic character and string
|
|
|
|
support.
|
|
|
|
|
2011-07-07 14:06:53 +02:00
|
|
|
%package -n libthai0
|
|
|
|
Summary: Thai Language Support Routines
|
|
|
|
Group: System/Libraries
|
|
|
|
# SLPP applied since version 0.1.15.
|
|
|
|
Provides: libthai = %{version}
|
2012-01-18 09:06:52 +01:00
|
|
|
Obsoletes: libthai < %{version}
|
2011-07-07 14:12:45 +02:00
|
|
|
# libthai needs the data to run, but the data is not parallel-installable,
|
|
|
|
# hence the >= instead of =. We just hope the data format will stay the same in
|
|
|
|
# the future.
|
2011-07-07 14:06:53 +02:00
|
|
|
Requires: libthai-data >= %{version}
|
|
|
|
|
|
|
|
%description -n libthai0
|
|
|
|
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.
|
|
|
|
|
2008-04-09 00:19:42 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Thai Language Support Routines (development files)
|
2011-07-07 14:06:53 +02:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libthai0 = %{version}
|
2008-04-09 00:19:42 +02:00
|
|
|
|
|
|
|
%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.
|
2007-01-16 00:23:23 +01:00
|
|
|
|
|
|
|
%prep
|
2009-01-19 02:10:56 +01:00
|
|
|
%setup -q
|
2007-01-16 00:23:23 +01:00
|
|
|
|
|
|
|
%build
|
2009-01-19 02:10:56 +01:00
|
|
|
%configure --disable-static --with-pic
|
2011-07-07 14:06:53 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:23:23 +01:00
|
|
|
|
|
|
|
%install
|
2011-07-07 14:06:53 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
|
2007-01-16 00:23:23 +01:00
|
|
|
|
|
|
|
%clean
|
2010-02-18 16:31:43 +01:00
|
|
|
rm -rf %{buildroot}
|
2007-01-16 00:23:23 +01:00
|
|
|
|
2011-07-07 14:06:53 +02:00
|
|
|
%post -n libthai0 -p /sbin/ldconfig
|
2007-01-16 00:23:23 +01:00
|
|
|
|
2011-07-07 14:06:53 +02:00
|
|
|
%postun -n libthai0 -p /sbin/ldconfig
|
2007-01-16 00:23:23 +01:00
|
|
|
|
2011-07-07 14:06:53 +02:00
|
|
|
%files -n libthai0
|
2007-01-16 00:23:23 +01:00
|
|
|
%defattr(-,root,root)
|
2008-04-09 00:19:42 +02:00
|
|
|
%{_libdir}/libthai.so.*
|
2011-07-07 14:06:53 +02:00
|
|
|
|
|
|
|
%files data
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_datadir}/libthai/
|
2008-04-09 00:19:42 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-07-07 14:06:53 +02:00
|
|
|
%{_includedir}/thai/
|
2008-05-22 02:00:46 +02:00
|
|
|
%{_libdir}/libthai.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-16 00:23:23 +01:00
|
|
|
|
2008-04-09 00:19:42 +02:00
|
|
|
%changelog
|