From 5c5cbe3255f96f9f01501ff00ea39d14453f1586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 19 Jul 2023 15:46:22 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 wordcut revision 09453f06c880eaeb1e34732d89122f97 --- .gitattributes | 23 ++++++ ...2315-locale-variable-used-before-set.patch | 22 +++++ wordcut-0.5.1b2.tar.gz | 3 + wordcut.changes | 63 ++++++++++++++ wordcut.spec | 82 +++++++++++++++++++ 5 files changed, 193 insertions(+) create mode 100644 .gitattributes create mode 100644 bugzilla-152315-locale-variable-used-before-set.patch create mode 100644 wordcut-0.5.1b2.tar.gz create mode 100644 wordcut.changes create mode 100644 wordcut.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/bugzilla-152315-locale-variable-used-before-set.patch b/bugzilla-152315-locale-variable-used-before-set.patch new file mode 100644 index 0000000..65a35ce --- /dev/null +++ b/bugzilla-152315-locale-variable-used-before-set.patch @@ -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~ diff --git a/wordcut-0.5.1b2.tar.gz b/wordcut-0.5.1b2.tar.gz new file mode 100644 index 0000000..301254a --- /dev/null +++ b/wordcut-0.5.1b2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd2d528023c335726b719f7e73843200e43f5e9b50efb4027e44b61027533e11 +size 408041 diff --git a/wordcut.changes b/wordcut.changes new file mode 100644 index 0000000..86e5317 --- /dev/null +++ b/wordcut.changes @@ -0,0 +1,63 @@ +------------------------------------------------------------------- +Tue May 30 10:55:00 UTC 2023 - Frederic Crozat + +- Update tarball url to proper location. + +------------------------------------------------------------------- +Mon Aug 23 13:01:35 UTC 2021 - Jan Engelhardt + +- 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 + diff --git a/wordcut.spec b/wordcut.spec new file mode 100644 index 0000000..1cd7764 --- /dev/null +++ b/wordcut.spec @@ -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