7 Commits

View File

@@ -1,28 +1,27 @@
%define libdatrie_version 0.2.5
Name: libthai
Version: 0.1.24
Release: 1mamba
Version: 0.1.29
Release: 2mamba
Summary: Thai language support routines
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://linux.thai.net/
Source0: ftp://linux.thai.net/pub/thailinux/software/libthai/libthai-%{version}.tar.xz
Source1: ftp://linux.thai.net/pub/thailinux/software/libthai/libdatrie-%{libdatrie_version}.tar.gz
URL: https://github.com/tlwg/libthai
Source: https://github.com/tlwg/libthai.git/v%{version}/libthai-%{version}.tar.bz2
Patch0: libthai-0.1.12-libdatrie-0.2.2-static-build.patch
Patch1: libthai-0.1.9-doxygen-segfault.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libdatrie-devel
## AUTOBUILDREQ-END
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: pkgconfig
## AUTOBUILDREQ-END
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libdatrie-devel
BuildRequires: libdatrie-tools
%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 e.g. word breaking, input and output methods as well as basic character and string supports. LibThai is an Open Source and collaborative effort initiated by Thai Linux Working Group and opened for all contributors.
@@ -34,8 +33,7 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
LibThai is a set of Thai language support routines.
This package contains libraries and header files need for development.
This package contains libraries and header files needed for development.
%package static
Group: Development/Libraries
@@ -44,33 +42,19 @@ Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
LibThai is a set of Thai language support routines.
This package contains static libraries needed for development.
This package contains static libraries need for development.
%debug_package
%prep
%setup -q -n %{name}-%{version} -a1
mv libdatrie-%{libdatrie_version} libdatrie
%patch0 -p1
#%patch1 -p1
%setup -q
echo "%{version}" > VERSION
./autogen.sh
%build
{
pushd libdatrie
mkdir m4
autoreconf -i -f
%configure
make
popd
}
export DATRIE_CFLAGS="-I$PWD/libdatrie"
export DATRIE_LIBS="$PWD/libdatrie/datrie/libdatrie.la"
export PATH="$PWD/libdatrie/tools:$PATH"
autoreconf -i -f
%configure
make
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@@ -107,6 +91,27 @@ rmdir %{buildroot}%{_docdir}/libthai
%{_libdir}/libthai.*a
%changelog
* Sun Feb 26 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.29-2mamba
- fix for empty version in pkg-config file
* Mon Dec 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.29-1mamba
- update to 0.1.29
* Mon Nov 30 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1.28-2mamba
- rebuilt with debug package
* Wed Sep 26 2018 Automatic Build System <autodist@mambasoft.it> 0.1.28-1mamba
- automatic version update by autodist
* Thu Nov 16 2017 Automatic Build System <autodist@mambasoft.it> 0.1.27-1mamba
- automatic update by autodist
* Mon Jan 23 2017 Automatic Build System <autodist@mambasoft.it> 0.1.26-1mamba
- automatic version update by autodist
* Fri Sep 16 2016 Automatic Build System <autodist@mambasoft.it> 0.1.25-1mamba
- automatic update by autodist
* Fri May 13 2016 Automatic Build System <autodist@mambasoft.it> 0.1.24-1mamba
- automatic version update by autodist