Sync from SUSE:SLFO:Main libthai revision c206eaf38b2a63b8716ecf6f9e7737b7

This commit is contained in:
Adrian Schröter 2024-05-03 15:57:30 +02:00
commit 510b5dc20d
5 changed files with 365 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

3
baselibs.conf Normal file
View File

@ -0,0 +1,3 @@
libthai0
provides "libthai-<targettype> = <version>"
obsoletes "libthai-<targettype> < <version>"

BIN
libthai-0.1.29.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

231
libthai.changes Normal file
View File

@ -0,0 +1,231 @@
-------------------------------------------------------------------
Tue Dec 21 20:27:42 UTC 2021 - andy great <andythe_great@pm.me>
- Update to version 0.1.29.
* Rewritten thbrk test.
* More compliance with UAX#14 (Unicode Line Breaking Algorithm)
for thbrk.
* Fix a typo in TIS-620 character name in tis.h.
* Updated word break dictionary.
-------------------------------------------------------------------
Mon Aug 24 20:37:09 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 0.1.28:
* Fix missing includes in wchar-related headers.
* More C90 (ANSI C) compliance.
* Updated word break dictionary.
-------------------------------------------------------------------
Mon Mar 5 15:40:22 UTC 2018 - jengelh@inai.de
- Fix SRPM group. Update descriptions.
-------------------------------------------------------------------
Wed Feb 28 16:36:34 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
-------------------------------------------------------------------
Wed Nov 1 08:59:46 UTC 2017 - fezhang@suse.com
- Update to version 0.1.27:
+ Fix another reproducibility issue in the generated
documentation, caught by Debian Reproducible.
+ Updated word break dictionary.
-------------------------------------------------------------------
Fri Dec 16 17:20:50 UTC 2016 - zaitor@opensuse.org
- Update to version 0.1.26:
+ Updated word break dictionary.
-------------------------------------------------------------------
Fri Jul 1 15:29:20 UTC 2016 - zaitor@opensuse.org
- Update to version 0.1.25:
+ New word break APIs for more thread-safety.
+ Fix compilation error and warning with GCC 6.
+ Do not test word breaking if dictionary is disabled.
+ Updated word break dictionary.
-------------------------------------------------------------------
Mon Nov 30 08:58:06 UTC 2015 - dimstar@opensuse.org
- Update to version 0.1.24:
+ Fix infinite loop caused by optimization in previous version.
(deb#805703).
+ Updated word break dictionary.
-------------------------------------------------------------------
Thu Nov 12 23:22:47 UTC 2015 - zaitor@opensuse.org
- Update to version 0.1.23:
+ Correctly check doxygen version on configure.
+ Threadsafe word breaking.
+ Improve word breaking performance by 0.1%.
+ Updated word break dictionary.
-------------------------------------------------------------------
Fri May 15 07:31:58 UTC 2015 - dimstar@opensuse.org
- Update to version 0.1.22:
+ Updated word break dictionary.
+ Improve word breaking performance by 0.38%.
+ No timestamp on Doxygen-generated doc.
-------------------------------------------------------------------
Sat Aug 23 21:25:56 UTC 2014 - dimstar@opensuse.org
- Update to version 0.1.21:
+ Updated word break dictionary.
+ Improve word breaking performance by 8.61%.
-------------------------------------------------------------------
Sun Oct 27 13:38:15 UTC 2013 - zaitor@opensuse.org
- Update to version 0.1.20:
+ Updated word break dictionary.
+ Fix compiler warnings in test suites.
-------------------------------------------------------------------
Tue Feb 5 18:11:48 UTC 2013 - p.drouand@gmail.com
- Update to version 0.1.19:
+ New API th_validate_leveled() for IM correction with strictness
level.
+ Updated word break dictionary.
+ Switched to XZ tarball compression.
-------------------------------------------------------------------
Mon Jun 18 17:09:05 UTC 2012 - dimstar@opensuse.org
- Update to version 0.1.18:
+ Updated word break dictionary.
-------------------------------------------------------------------
Tue Feb 21 13:54:47 UTC 2012 - vuntz@opensuse.org
- Update to version 0.1.17:
+ Recognizes acronyms on word breaking.
+ Updated word break dictionary.
-------------------------------------------------------------------
Wed Jan 18 08:00:30 UTC 2012 - vuntz@opensuse.org
- Update to version 0.1.16:
+ Updated word break dictionary.
- Change versioned Obsoletes for libthai from <= to < now that we
have a new upstream version.
-------------------------------------------------------------------
Mon Jun 27 12:39:05 CEST 2011 - dimstar@opensuse.org
- Apply SLPP (bnc#674012):
+ Split out libthai0 subpackage
+ Move thbrk.tri in new libthai-data subpackage
+ Add libthai-data Requires to libthai0. This Requires use >=
%{version}, instead of =, since the data is not
parallel-installable with other versions. We can just hope the
data format will stay compatible (and the higher version will
be more complete).
- Change License tag to LGPL-2.1+, as per spdx.org.
- Do not require libdatrie-devel from the -devel package: it will
be added automatically the pkgconfig()-way.
- Adjust baselibs.conf to follow the SLPP name change.
- Change Group of the -devel package to be Development/Languages/C
and C++ instead of System/Libraries.
- Stop using source services. Factory is moving away from it and a
different approach to verify the authenticity of the tarballs is
being implemented (by using the Source URL).
- spec file cleanups.
-------------------------------------------------------------------
Fri Apr 29 22:58:05 UTC 2011 - dimstar@opensuse.org
- Update to 0.1.15:
+ Updated word break dictionary.
- Use source services: download_url, recompress, set_version.
-------------------------------------------------------------------
Tue Feb 22 15:21:51 CET 2011 - vuntz@opensuse.org
- Add missing baselibs.conf.
-------------------------------------------------------------------
Sun Feb 28 15:10:31 CET 2010 - dimstar@opensuse.org
- Update to version 0.1.14:
+ Fix crash on corrupted dictionary file; now it fails quietly
instead.
+ License clarification on individual source files.
+ Updated word break dictionary.
-------------------------------------------------------------------
Sun Jan 17 20:09:00 CET 2010 - vuntz@opensuse.org
- Update to version 0.1.13:
+ Fix integer overflow vulnerabilities (CVE-2009-4012).
+ Updated word break dictionary.
- Changes from version 0.1.12:
+ Improved unknown words boundary.
+ Add symbol versioning.
+ Updated word break dictionary.
- Changes from version 0.1.11:
+ Diminished link flags in pkg-config info, for less dependency
for clients.
+ More words in word break dictionary.
- Changes from version 0.1.10:
+ More dictionary capacity with libdatrie 0.2.
+ Dictionary clean-up on unload.
+ Some performance fine-tuning.
+ More words in word break dictionary.
- Drop warnings.patch: fixed upstream.
- Drop bug-569615_01_integer-overflow-vuln.patch: fixed upstream.
-------------------------------------------------------------------
Fri Jan 16 19:54:50 CET 2009 - crrodriguez@suse.de
- remove static libraries and "la" files
-------------------------------------------------------------------
Wed May 21 16:30:45 CEST 2008 - sbrabec@suse.cz
- Fixed devel depenendencies.
-------------------------------------------------------------------
Mon Apr 7 16:02:06 CEST 2008 - uli@suse.de
- update -> 0.1.9 (bug #326002)
* Rewritten itemization for line breaker, for conformance to UAX#14.
* Revised dictionary for compound words support.
* Improved handling of white spaces in word break routine, for better quality
line wrapping in Gecko libthai component.
* More words in word break dictionary.
* Excessive exported symbols are eliminated from library.
* Rewritten word break routines:
- Split dictionary from source, thus new dependency on libdatrie
- New word break routine from scratch, for maintainability
* Improved dictionary for word segmentation:
- New word list preparation process from multiple categories
- New contemporary words not included in Royal Institute dictionary,
as well as some proper names for countries and locations, etc.
- Fine-tuned dictionary to get rid of some potential ambiguities
* Documentation with doxygen.
* Add missing APIs.
* Fix compiler warnings.
* Improved word breaking. Space is now also considered a breakable point.
* More PUA support for Mac fonts rendering.
* Start maintaining library version info from now on.
- created devel subpackage
-------------------------------------------------------------------
Wed Jan 25 21:37:46 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Thu Sep 15 12:57:11 CEST 2005 - uli@suse.de
- initial package

105
libthai.spec Normal file
View File

@ -0,0 +1,105 @@
#
# spec file for package libthai
#
# Copyright (c) 2021 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: libthai
Version: 0.1.29
Release: 0
Summary: Thai Language Support Routines
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://linux.thai.net/plone/TLWG/libthai/
Source: https://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz
Source99: baselibs.conf
BuildRequires: libdatrie-devel
BuildRequires: pkgconfig
%description
LibThai is a set of Thai language support routines to aid
incorporation of Thai language support into 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
# SLPP applied since version 0.1.15.
# 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.
Group: System/Libraries
Requires: libthai-data >= %{version}
Provides: libthai = %{version}
Obsoletes: libthai < %{version}
%description -n libthai0
LibThai is a set of Thai language support routines to aid
incorporation of Thai language support into applications. It includes
important Thai-specific functions, such as word breaking, input and
output methods, and basic character and string support.
%package data
Summary: Data files for the Thai language support library
Group: System/Libraries
%description data
LibThai is a set of Thai language support routines to aid
incorporation of Thai language support into 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: Development files for the Thai language support library
Group: Development/Languages/C and C++
Requires: libthai0 = %{version}
%description devel
LibThai is a set of Thai language support routines to aid
incorporation of Thai language support into 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
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libthai0 -p /sbin/ldconfig
%postun -n libthai0 -p /sbin/ldconfig
%files -n libthai0
%{_libdir}/libthai.so.*
%files data
%{_datadir}/libthai/
%files devel
%{_includedir}/thai/
%{_libdir}/libthai.so
%{_libdir}/pkgconfig/*.pc
%changelog