Sync from SUSE:SLFO:Main hfst-ospell revision c920569511551792c53b2422fc6b018e
This commit is contained in:
commit
b7a018deac
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
|
1
baselibs.conf
Normal file
1
baselibs.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
libhfstospell11
|
27
gcc10-Fix-a-typo-in-wide-string-conversion-function-49.patch
Normal file
27
gcc10-Fix-a-typo-in-wide-string-conversion-function-49.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From a9d5afb14aa71893f142dfd3ae735e8930aa0f8a Mon Sep 17 00:00:00 2001
|
||||||
|
From: Martin Liska <mliska@suse.cz>
|
||||||
|
Date: Mon, 16 Mar 2020 11:32:10 +0100
|
||||||
|
Subject: [PATCH] Fix a typo in wide string conversion function (#49).
|
||||||
|
|
||||||
|
Revert a hunk from:
|
||||||
|
04e4843e4c66beb61b756f3ceb2ac94628142185.
|
||||||
|
---
|
||||||
|
main.cc | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/main.cc b/main.cc
|
||||||
|
index abecf46..e4fd676 100644
|
||||||
|
--- a/main.cc
|
||||||
|
+++ b/main.cc
|
||||||
|
@@ -61,7 +61,7 @@ static bool suggest_reals = false;
|
||||||
|
#ifdef WINDOWS
|
||||||
|
static std::string wide_string_to_string(const std::wstring & wstr)
|
||||||
|
{
|
||||||
|
- int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)§wstr.size(), NULL, 0, NULL, NULL);
|
||||||
|
+ int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL);
|
||||||
|
std::string str( size_needed, 0 );
|
||||||
|
WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), &str[0], size_needed, NULL, NULL);
|
||||||
|
return str;
|
||||||
|
--
|
||||||
|
2.26.0
|
||||||
|
|
21
gcc13-fix.patch
Normal file
21
gcc13-fix.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
From 7481bffbf622bc9aee3547183fbe8db9cf8b22ce Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tino Didriksen <mail@tinodidriksen.com>
|
||||||
|
Date: Sun, 3 Jul 2022 23:16:52 +0200
|
||||||
|
Subject: [PATCH] Include cstdint (fixes #57)
|
||||||
|
|
||||||
|
---
|
||||||
|
hfst-ol.h | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/hfst-ol.h b/hfst-ol.h
|
||||||
|
index 0a83ec5..ee59b14 100644
|
||||||
|
--- a/hfst-ol.h
|
||||||
|
+++ b/hfst-ol.h
|
||||||
|
@@ -28,6 +28,7 @@
|
||||||
|
#include <climits>
|
||||||
|
#include <cstdio>
|
||||||
|
#include <cstdlib>
|
||||||
|
+#include <cstdint>
|
||||||
|
#include <iostream>
|
||||||
|
#include <cstring>
|
||||||
|
#include <set>
|
45
hfst-ospell.changes
Normal file
45
hfst-ospell.changes
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 9 07:04:33 UTC 2023 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Add upstream patch gcc13-fix.patch in order to support GCC 13.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 27 14:25:33 UTC 2020 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Fix boo#1158318 by
|
||||||
|
gcc10-Fix-a-typo-in-wide-string-conversion-function-49.patch.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 16 13:08:18 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.5.1 bsc#1164440:
|
||||||
|
* change correction finding order (fixes issue #28)
|
||||||
|
* require C++1y (C++14)
|
||||||
|
* observe ICU namespacing (fixes issue #42)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 20 12:27:04 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Add hack for icu 61 and newer -DU_USING_ICU_NAMESPACE=1
|
||||||
|
* This needs to be removed when properly fixed upstream
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 20 12:19:28 UTC 2018 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Version update to 0.5.0:
|
||||||
|
* rename hfst_ol namespace to hfst_ospell to avoid conflicts
|
||||||
|
* improve distinguishing between lemmas and tags in analysis
|
||||||
|
* fix issue #37
|
||||||
|
* avoid shadowing multicharacter ascii-beginning symbols
|
||||||
|
* use minimal XML parsing to get locale, title, and description for Voikko and other frontends
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 18 17:57:05 UTC 2018 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
- Add baselibs.conf: build libhfstospell10-32bit, which is required
|
||||||
|
by libvoikko1-32bit.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 25 15:24:37 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Initial commit, required by libvoikko
|
99
hfst-ospell.spec
Normal file
99
hfst-ospell.spec
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
#
|
||||||
|
# spec file for package hfst-ospell
|
||||||
|
#
|
||||||
|
# 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 _name hfstospell
|
||||||
|
%define libname libhfstospell11
|
||||||
|
Name: hfst-ospell
|
||||||
|
Version: 0.5.1
|
||||||
|
Release: 0
|
||||||
|
Summary: Spell checker library and tool based on HFST
|
||||||
|
License: Apache-2.0
|
||||||
|
Group: Productivity/Text/Spell
|
||||||
|
URL: https://hfst.github.io/
|
||||||
|
Source0: https://github.com/hfst/%{name}/releases/download/v%{version}/%{_name}-%{version}.tar.gz
|
||||||
|
Source99: baselibs.conf
|
||||||
|
Patch0: gcc10-Fix-a-typo-in-wide-string-conversion-function-49.patch
|
||||||
|
Patch1: gcc13-fix.patch
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
BuildRequires: pkgconfig(icu-i18n)
|
||||||
|
BuildRequires: pkgconfig(libarchive)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Minimal HFST optimized lookup format based spell checker library and
|
||||||
|
a demonstrational implementation of command line based spell checker.
|
||||||
|
|
||||||
|
%package -n %{libname}
|
||||||
|
Summary: HFST spell checker runtime libraries
|
||||||
|
Group: System/Libraries
|
||||||
|
Provides: libhfstospell = %{version}-%{release}
|
||||||
|
Obsoletes: libhfstospell < %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n %{libname}
|
||||||
|
HFST spell checker Runtime libraries for hfst-ospell
|
||||||
|
|
||||||
|
%package -n hfst-ospell-devel
|
||||||
|
Summary: HFST spell checker development files
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
|
Requires: hfst-ospell = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n hfst-ospell-devel
|
||||||
|
Development headers and libraries for hfst-ospell
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{_name}-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
# disable libxml++ as upstream requires version 2.6
|
||||||
|
# disable tinyxml2 as upstream requires version < 3.0
|
||||||
|
export CXXFLAGS="%{optflags} -DU_USING_ICU_NAMESPACE=1"
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--disable-silent-rules \
|
||||||
|
--without-libxmlpp \
|
||||||
|
--without-tinyxml2
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
|
|
||||||
|
%check
|
||||||
|
make %{?_smp_mflags} check
|
||||||
|
|
||||||
|
%post -n %{libname} -p /sbin/ldconfig
|
||||||
|
%postun -n %{libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS NEWS README
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
|
%files -n %{libname}
|
||||||
|
%license COPYING
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files -n hfst-ospell-devel
|
||||||
|
%{_includedir}/*
|
||||||
|
%{_libdir}/pkgconfig/*
|
||||||
|
%{_libdir}/*.so
|
||||||
|
|
||||||
|
%changelog
|
BIN
hfstospell-0.5.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
hfstospell-0.5.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user