[info=a85d3b6e7eb11b67763c217940c6f0aae64f1d591c0c29a46d88cd4dfc2fbd60]

OBS-URL: https://build.opensuse.org/package/show/devel:tools/hfst?expand=0&rev=21
This commit is contained in:
OBS User unknown 2025-02-25 20:19:30 +00:00 committed by Git OBS Bridge
commit b9643d1b6d
7 changed files with 272 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
_scmsync.obsinfo Normal file
View File

@ -0,0 +1,4 @@
mtime: 1740514753
commit: a85d3b6e7eb11b67763c217940c6f0aae64f1d591c0c29a46d88cd4dfc2fbd60
url: https://src.opensuse.org/jengelh/hfst
revision: master

3
build.specials.obscpio Normal file
View File

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

100
hfst.changes Normal file
View File

@ -0,0 +1,100 @@
-------------------------------------------------------------------
Tue Feb 25 20:18:53 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Deactivate tests on non-x86
-------------------------------------------------------------------
Sat Jan 18 15:56:21 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.16.2
* Removal of n-best paths search for log weight automata
* Added an experimental C interface library
- Delete hfst-sse.diff which made i586 tests fail.
-------------------------------------------------------------------
Wed Nov 20 10:58:42 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.16.1
* hfst-tokenize escapes both \r and \n now
* regexp parsing more robust with comments and linebreaks
* new tool "hfst-check-alpha" for checking and comparing
alphabets in automata and their metadata
* new tool "hfst-dump-alphabets" for reviewing alphabets easier
than hfst-summarize grepping
* new tool "hfst-kill-paths" for efficient path removal
- Delete 0001-build-fix-build-failure-with-ICU-75.patch,
hfst-nodate.diff (merged)
-------------------------------------------------------------------
Tue Jun 4 09:34:43 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
- Add 0001-build-fix-build-failure-with-ICU-75.patch
-------------------------------------------------------------------
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.
- Add hfst-sse.diff to get rid of forced SSE
-------------------------------------------------------------------
Thu May 27 10:02:31 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.15.5
* pmatch: modified tracking of entry points to allow for RTNs
in captures
* pmatch: fixed off-by-one bug in checking captures
- Remove hfst-split-libs.diff, hfst-wrong-flags.diff,
system-foma.diff (obsolete)
-------------------------------------------------------------------
Sat Feb 13 21:59:39 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.15.4
* No user visible changes
-------------------------------------------------------------------
Thu Dec 19 22:17:10 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update to release 3.15.2
* Fix off-by-one bug in checking captures in pmatch.
* hfst-pmatch2fst now implements eg @include"filename.txt" as a
preprocessing stage.
* hfst-pmatch2fst now implements Explode() and Implode() in
full generality.
* hfst-pmatch now allows printing weights (in location mode,
with --locate).
* Add tool hfst-eliminate-flags.
* Allow both escaped and unescaped zeros in multicharacters in
all lexc lexicon entries.
-------------------------------------------------------------------
Thu Aug 22 18:51:23 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Update to new upstream release 3.15.0
* Numerous improvements to pmatching and tokenization.
* Add tool hfst-eliminate-flags.
* Allow both escaped and unescaped zeros in multicharacters in
all lexc lexicon entries.
- Drop gcc7.diff, hfst-scripts-install.diff
-------------------------------------------------------------------
Tue Sep 5 00:44:15 UTC 2017 - jengelh@inai.de
- Add gcc7.diff
-------------------------------------------------------------------
Thu Apr 27 16:53:12 UTC 2017 - jengelh@inai.de
- Update to new upstream release 3.12.2
* Implement hfst-twolc as a single program instead of a script. Get
rid of hfst-twolc-system and hfst-twolc-loc tools.
- Remove hfst-badcode.diff (applied upstream)
-------------------------------------------------------------------
Thu Sep 11 22:28:33 UTC 2014 - jengelh@inai.de
- Initial package for build.opensuse.org (version 3.7.2)

138
hfst.spec Normal file
View File

@ -0,0 +1,138 @@
#
# spec file for package hfst
#
# Copyright (c) 2025 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: hfst
Version: 3.16.2
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
Group: Development/Tools/Other
URL: https://hfst.github.io/
Source: https://github.com/hfst/hfst/archive/refs/tags/v%version.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: flex
BuildRequires: foma-devel >= 0.9.18+git20210604
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkg-config
BuildRequires: python3-base
BuildRequires: readline-devel
BuildRequires: openfst-devel
BuildRequires: pkgconfig(icu-uc) >= 50
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(zlib)
Requires: grep
Requires: sed
%description
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 libhfst55
Summary: Helsinki Finite-State Transducer C++ API Library
License: GPL-3.0-only
Group: System/Libraries
%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.
%ifarch %ix86
On 32-bit x86, this package requires the presence of SSE2.
%endif
%package -n libhfst_c0
Summary: Helsinki Finite-State Transducer C API Library
License: GPL-3.0-only
Group: System/Libraries
%description -n libhfst_c0
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 devel
Summary: Development files for the Helsinki Finite-State Transducer
License: GPL-3.0-only
Group: Development/Libraries/C and C++
Requires: libhfst55 = %version
Requires: libhfst_c0 = %version
%description devel
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.
This subpackage contains the files necessary to build programs that
want to make use of the HFST library.
%prep
%autosetup -p1
%build
autoreconf -fiv
export CXXFLAGS="%optflags -std=c++17"
%configure --disable-static --with-readline \
--enable-all-tools --includedir="%_includedir/%name" \
--with-foma-upstream
%make_build
%install
%make_install
rm -fv "%buildroot/%_libdir"/*.la
# headers not installed
rm -fv "%buildroot/%_libdir/"{libfoma,libfst,libsfst}.so
%fdupes %buildroot/%_prefix
%ifarch %ix86 x86_64
%check
# https://github.com/hfst/hfst/issues/584 / other distros also do not run check
%make_build check -j1
%endif
%ldconfig_scriptlets -n libhfst55
%ldconfig_scriptlets -n libhfst_c0
%files
%_bindir/hfst*
%_mandir/man1/*.1*
%doc NEWS README
%license COPYING
%files -n libhfst55
%_libdir/libhfst.so.55*
%files -n libhfst_c0
%_libdir/libhfst_c.so.0*
%files devel
%_includedir/*
%_libdir/libhfst.so
%_libdir/libhfst_c.so
%_libdir/pkgconfig/*.pc
%_datadir/aclocal/
%changelog

BIN
v3.16.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.