Sync from SUSE:SLFO:Main wordcut revision 09453f06c880eaeb1e34732d89122f97

This commit is contained in:
Adrian Schröter 2024-05-04 01:55:34 +02:00
commit d646f0323e
5 changed files with 193 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

View File

@ -0,0 +1,22 @@
diff -ru wordcut-0.5.1b2.orig/wordcut/wordcut_dict_dump.c wordcut-0.5.1b2/wordcut/wordcut_dict_dump.c
--- wordcut-0.5.1b2.orig/wordcut/wordcut_dict_dump.c 2003-09-11 08:23:08.000000000 +0200
+++ wordcut-0.5.1b2/wordcut/wordcut_dict_dump.c 2006-02-23 18:25:52.000000000 +0100
@@ -4,7 +4,7 @@
static char dump_buffer[1000];
static void dump_(uint8_t *data,int p,int c) {
- uint8_t header=data[p],size;
+ uint8_t header=data[p],size=data[p+1];
int i;
@@ -19,8 +19,6 @@
}
printf ("\n");
}
- size=data[p+1];
-
if (size > 0) {
if (header & 0x2) {
wordcut-0.5.1b2/wordcutだけに発見: wordcut_dict_dump.c.~1~

BIN
wordcut-0.5.1b2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

63
wordcut.changes Normal file
View File

@ -0,0 +1,63 @@
-------------------------------------------------------------------
Tue May 30 10:55:00 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
- Update tarball url to proper location.
-------------------------------------------------------------------
Mon Aug 23 13:01:35 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Remove --with-pic which has no effect with --disable-static.
- Implement shared library policy.
- Delete practically empty documentation files.
-------------------------------------------------------------------
Sat Oct 4 17:23:36 UTC 2014 - crrodriguez@opensuse.org
- Cleanup buildrequires, no libraries other than glibc are needed.
-------------------------------------------------------------------
Tue Jun 5 16:08:43 UTC 2012 - i@marguerite.su
- fix sles builds.
-------------------------------------------------------------------
Thu Nov 24 10:21:07 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Fri Dec 18 00:38:55 CET 2009 - jengelh@medozas.de
- enable parallel building
-------------------------------------------------------------------
Wed Dec 26 07:58:37 CET 2007 - crrodriguez@suse.de
- fix library-without-ldconfig-*
- remove static libraries and libtool archives with empty dependency_libs
-------------------------------------------------------------------
Tue Sep 5 17:47:32 CEST 2006 - meissner@suse.de
- set CFLAGS/CXXFLAGS correctly for configure.
-------------------------------------------------------------------
Wed Mar 01 11:37:00 CET 2006 - mfabian@suse.de
- add "Provides: locale(th)".
-------------------------------------------------------------------
Thu Feb 23 18:27:00 CET 2006 - mfabian@suse.de
- Bugzilla #152315: "local variable used before set".
-------------------------------------------------------------------
Wed Jan 25 21:42:51 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Aug 16 16:36:57 CEST 2004 - mfabian@suse.de
- new package: wordcut, version 0.5.1b2

82
wordcut.spec Normal file
View File

@ -0,0 +1,82 @@
#
# spec file for package wordcut
#
# Copyright (c) 2023 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/
#
%define lname libwordcut0
Name: wordcut
Version: 0.5.1b2
Release: 0
Summary: Thai word segmentation utility
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://thaiwordseg.sourceforge.net/
Source0: https://downloads.sourceforge.net/project/thaiwordseg/wordcut/wordcut-%{version}/wordcut-%{version}.tar.gz
Patch0: bugzilla-152315-locale-variable-used-before-set.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool
BuildRequires: pkgconfig
Provides: locale(th)
%description
Thai word segmentation utility.
%package -n %{lname}
Summary: Thai word segmentation utility
Group: System/Libraries
%description -n %{lname}
Thai word segmentation utility.
%package devel
Summary: Header files for wordcut, a Thai word segmentation utility
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
Requires: glibc-devel
%description devel
This package contains files necessary to build against libwordcut.
%prep
%autosetup -p1
%build
autoreconf --force --install --verbose
%configure --disable-static
%make_build
%install
%make_install
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files
%license COPYING
%{_bindir}/*
%dir %{_datadir}/wordcut/
%{_datadir}/wordcut/*
%files -n %{lname}
%{_libdir}/libwordcut.so.*
%files devel
%{_includedir}/*
%{_libdir}/libwordcut.so
%{_libdir}/pkgconfig/*
%exclude %{_libdir}/*.la
%changelog