libthai/libthai.spec

118 lines
3.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libthai
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libthai
Version: 0.1.24
Release: 0
Summary: Thai Language Support Routines
License: LGPL-2.1+
Group: System/Libraries
Url: http://linux.thai.net/plone/TLWG/libthai/
Source: http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: libdatrie-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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 -n libthai0
Summary: Thai Language Support Routines
Group: System/Libraries
# SLPP applied since version 0.1.15.
Provides: libthai = %{version}
Obsoletes: libthai < %{version}
# 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.
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.
%package devel
Summary: Thai Language Support Routines (development files)
Group: Development/Languages/C and C++
Requires: libthai0 = %{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
find %{buildroot}%{_libdir} -type f -name "*.la" -delete -print
%clean
rm -rf %{buildroot}
%post -n libthai0 -p /sbin/ldconfig
%postun -n libthai0 -p /sbin/ldconfig
%files -n libthai0
%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