SHA256
1
0
forked from pool/hfst

- Update to release 3.16

OBS-URL: https://build.opensuse.org/package/show/devel:tools/hfst?expand=0&rev=14
This commit is contained in:
Jan Engelhardt 2022-02-10 19:25:48 +00:00 committed by Git OBS Bridge
parent 05dd455db9
commit 0ded1c9920
5 changed files with 44 additions and 28 deletions

18
hfst-sse.diff Normal file
View File

@ -0,0 +1,18 @@
---
configure.ac | 3 ---
1 file changed, 3 deletions(-)
Index: hfst-3.16.0/configure.ac
===================================================================
--- hfst-3.16.0.orig/configure.ac
+++ hfst-3.16.0/configure.ac
@@ -661,9 +661,6 @@ AC_LANG_PUSH([C++])
AM_COND_IF([WANT_OPENFST_UPSTREAM], [CXXFLAGS="$CXXFLAGS -std=c++17"], [CXXFLAGS="$CXXFLAGS -std=c++14"])
# On 32bit x86, we need to use SSE for precise floating point arithmetics in OpenFST
-AX_CHECK_COMPILE_FLAG([-msse], [CXXFLAGS="$CXXFLAGS -msse"], [])
-AX_CHECK_COMPILE_FLAG([-msse2], [CXXFLAGS="$CXXFLAGS -msse2"], [])
-AX_CHECK_COMPILE_FLAG([-mfpmath=sse], [CXXFLAGS="$CXXFLAGS -mfpmath=sse"], [])
AC_CHECK_HEADERS([ext/slist])

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Feb 10 16:43:01 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.16
* hfst-pmatch archives now no longer include or parse redundant alphabets,
which in some cases can be a meaningful size and speed saving.
* C++14 is the minimal requirement.
* Drop legacy wrappers for foma and lexc.
-------------------------------------------------------------------
Thu May 27 10:02:31 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package hfst
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,7 +17,7 @@
Name: hfst
Version: 3.15.5
Version: 3.16.0
Release: 0
Summary: Helsinki Finite-State Transducer Technology
License: Apache-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND GPL-3.0-only
@ -25,7 +25,8 @@ Group: Development/Tools/Other
URL: https://hfst.github.io/
Source: https://github.com/hfst/hfst/archive/refs/tags/v%version.tar.gz
Patch4: hfst-nodate.diff
Patch1: hfst-nodate.diff
Patch2: hfst-sse.diff
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@ -39,7 +40,8 @@ BuildRequires: ncurses-devel
BuildRequires: pkg-config
BuildRequires: python3-base
BuildRequires: readline-devel
BuildRequires: pkgconfig(glib-2.0)
#BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(icu-uc) >= 50
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(zlib)
Requires: grep
@ -50,23 +52,12 @@ The Helsinki Finite-State Transducer software is intended for the
implementation of morphological analyzers and other tools which are
based on weighted and unweighted finite-state transducer technology.
%package -n libfoma-hfst0
Summary: Multi-purpose finite-state toolkit
License: GPL-2.0-only
Group: System/Libraries
%description -n libfoma-hfst0
Foma is a multi-purpose finite-state toolkit designed for
applications ranging from natural language processing and research in
automata theory. It should be upwardly compatible with Xerox xfst and
lexc, with the exception of binary file reading and writing.
%package -n libhfst54
%package -n libhfst55
Summary: Helsinki Finite-State Transducer Technology Libraries
License: GPL-3.0-only
Group: System/Libraries
%description -n libhfst54
%description -n libhfst55
The Helsinki Finite-State Transducer software is intended for the
implementation of morphological analyzers and other tools which are
based on weighted and unweighted finite-state transducer technology.
@ -75,7 +66,7 @@ based on weighted and unweighted finite-state transducer technology.
Summary: Development files for the Helsinki Finite-State Transducer
License: GPL-3.0-only
Group: Development/Libraries/C and C++
Requires: libhfst54 = %version
Requires: libhfst55 = %version
%description devel
The Helsinki Finite-State Transducer software is intended for the
@ -90,7 +81,7 @@ want to make use of the HFST library.
%build
autoreconf -fiv
%configure --disable-static --with-unicode-handler=glib --with-readline \
%configure --disable-static --with-readline \
--enable-all-tools --includedir="%_includedir/%name" \
--with-foma-upstream
%make_build
@ -105,10 +96,8 @@ rm -fv "%buildroot/%_libdir/"{libfoma,libfst,libsfst}.so
%check
%make_build check -j1
%post -n libfoma-hfst0 -p /sbin/ldconfig
%postun -n libfoma-hfst0 -p /sbin/ldconfig
%post -n libhfst54 -p /sbin/ldconfig
%postun -n libhfst54 -p /sbin/ldconfig
%post -n libhfst55 -p /sbin/ldconfig
%postun -n libhfst55 -p /sbin/ldconfig
%files
%_bindir/hfst*
@ -116,8 +105,8 @@ rm -fv "%buildroot/%_libdir/"{libfoma,libfst,libsfst}.so
%doc NEWS README
%license COPYING
%files -n libhfst54
%_libdir/libhfst.so.54*
%files -n libhfst55
%_libdir/libhfst.so.55*
%files devel
%_includedir/*

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:025332ab3717771b1d0849babf4bd9bd368b5395e441a557cfc9b5d52f88f2ec
size 23958294

3
v3.16.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ba8b29226189183414dd0da30b2267a917b483e8da60966b36ff956bd8eba2fd
size 23948916