[packages/hfst] - up to 3.14.0

arekm arekm at pld-linux.org
Fri Jul 6 20:42:54 CEST 2018


commit dc6d107a121b6d26ad7c91bf9b7e693b68254d1d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jul 6 20:42:47 2018 +0200

    - up to 3.14.0

 build.patch   | 249 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 hfst-pc.patch |   8 +-
 hfst.spec     |  13 +--
 3 files changed, 260 insertions(+), 10 deletions(-)
---
diff --git a/hfst.spec b/hfst.spec
index 4d3ec07..129859f 100644
--- a/hfst.spec
+++ b/hfst.spec
@@ -6,14 +6,15 @@
 Summary:	Helsinki Finite-State Transducer (library and application suite)
 Summary(pl.UTF-8):	Helsinki Finite-State Transducer (biblioteka i zestaw aplikacji)
 Name:		hfst
-Version:	3.11.0
-Release:	5
+Version:	3.14.0
+Release:	1
 License:	LGPL v3 (library), GPL v3 (tools)
 Group:		Applications/Text
 #Source0Download: https://github.com/hfst/hfst/releases
 Source0:	https://github.com/hfst/hfst/releases/download/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	6cbdddcb9ef28aa5681081a8a1dc6b54
+# Source0-md5:	08a93b43867037d2d0ef883022aabe1d
 Patch0:		%{name}-pc.patch
+Patch1:		build.patch
 URL:		http://www.ling.helsinki.fi/kieliteknologia/tutkimus/hfst/
 # bundled library is used
 #BuildRequires:	SFST-devel
@@ -124,6 +125,7 @@ Wiązanie Pythona 3 do biblioteki HFST.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -139,6 +141,7 @@ Wiązanie Pythona 3 do biblioteki HFST.
 	--enable-proc \
 	--disable-silent-rules \
 	--enable-tagger \
+	--enable-train-tagger \
 	--enable-xfst \
 	%{?with_readline:--with-readline} \
 	--with-unicode-handler=glib
@@ -183,12 +186,10 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS NEWS README THANKS
 %attr(755,root,root) %{_bindir}/hfst-*
 %attr(755,root,root) %{_bindir}/hfst_foma
-%attr(755,root,root) %{_bindir}/htwolcpre*
 %attr(755,root,root) %{_libdir}/libhfst.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libhfst.so.46
+%attr(755,root,root) %ghost %{_libdir}/libhfst.so.51
 %dir %{_datadir}/hfst
 %{_mandir}/man1/hfst-*.1*
-%{_mandir}/man1/htwolcpre?.1*
 
 %files tagger
 %defattr(644,root,root,755)
diff --git a/build.patch b/build.patch
new file mode 100644
index 0000000..d849bfa
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,249 @@
+--- hfst-3.14.0/back-ends/foma/Makefile.am~	2017-05-22 14:58:33.000000000 +0200
++++ hfst-3.14.0/back-ends/foma/Makefile.am	2018-07-06 09:22:44.784803183 +0200
+@@ -15,7 +15,7 @@ libfoma_la_SOURCES = int_stack.c define.
+         coaccessible.c io.c utf8.c spelling.c dynarray.c mem.c stringhash.c \
+         trie.c lex.lexc.c lex.yy.c regex.c
+ 
+-hfst_foma_LDADD = $(top_builddir)/back-ends/foma/libfoma.la
++hfst_foma_LDADD = libfoma.la
+ 
+ if WANT_READLINE
+ hfst_foma_LDFLAGS=-lreadline -lz
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst-foma.1	2018-07-06 10:02:25.367588228 +0200
+@@ -0,0 +1,38 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH HFST-FOMA "1" "February 2014" "HFST" "User Commands"
++.SH NAME
++hfst-foma \- =Imitates xfst using foma and a wrapper script
++.SH SYNOPSIS
++.B hfst-foma
++[\fIOPTIONS\fR...]
++.SH DESCRIPTION
++Imitates xfst using foma and a wrapper script
++.SS "Common options:"
++.TP
++\fB\-h\fR
++Print help message
++.TP
++\fB\-V\fR
++Print version info
++.TP
++\fB\-F\fR
++Parameter is HFST format name
++.PP
++If \-F is not given, OpenFst's tropical format will be used.
++The possible values for \-F are { foma, openfst\-tropical, openfst\-log, sfst }.
++Input files are always treated as UTF\-8.
++.SH "REPORTING BUGS"
++Report bugs to <hfst\-bugs at helsinki.fi> or directly to our bug tracker at:
++<https://sourceforge.net/tracker/?atid=1061990&group_id=224521&func=browse>
++.PP
++hfst\-foma home page:
++<https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstFoma>
++.br
++General help using HFST software:
++<https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstHome>
++.SH COPYRIGHT
++Copyright \(co 2014 University of Helsinki,
++License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst-foma-wrapper.1	2018-07-06 18:04:32.272398240 +0200
+@@ -0,0 +1,11 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH UNKNOWN "1" "October 2014" "HFST" "User Commands"
++.SH NAME
++Unknown \- =
++.SH SYNOPSIS
++.B hfst-foma-wrapper.sh
++[\fI-h|-V\fR] [\fI-v|-s|-q\fR] [\fI-f FORMAT\fR] [\fI-F STACK_FILES\fR] [\fISCRIPTS\fR]
++.SH DESCRIPTION
++Unknown command line switch , try \fB\-h\fR for help
++.PP
++Usage: ../scripts/hfst\-foma\-wrapper.sh [\-h|\-V] [\-v|\-s|\-q] [\-f FORMAT] [\-F STACK_FILES] [SCRIPTS]
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst-lexc-wrapper.1	2018-07-06 18:24:19.436840285 +0200
+@@ -0,0 +1,63 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH HFST-LEXC-WRAPPER "1" "December 2015" "HFST" "User Commands"
++.SH NAME
++hfst-lexc-wrapper \- =Compile lexc files into transducer or imitate Xerox lexc
++.SH SYNOPSIS
++.B hfst-lexc-wrapper
++[\fIOPTIONS\fR...] [\fIINFILE1\fR...]]
++.SH DESCRIPTION
++Compile lexc files into transducer or imitate Xerox lexc
++This is a wrapper around foma lexc, and does not support weights
++For a native hfst tool with weights, use hfst\-lexc instead
++.SS "Common options:"
++.TP
++\fB\-h\fR, \fB\-\-help\fR
++Print help message
++.TP
++\fB\-V\fR, \fB\-\-version\fR
++Print version info
++.TP
++\fB\-v\fR, \fB\-\-verbose\fR
++Print verbosely while processing
++.TP
++\fB\-q\fR, \fB\-\-quiet\fR
++Only print fatal erros and requested output
++.TP
++\fB\-s\fR, \fB\-\-silent\fR
++Alias of \fB\-\-quiet\fR
++.SS "Input/Output options:"
++.TP
++\fB\-f\fR, \fB\-\-format\fR=\fIFORMAT\fR
++compile into FORMAT transducer
++.TP
++\fB\-o\fR, \fB\-\-output\fR=\fIOUTFILE\fR
++write result into OUTFILE
++.TP
++\fB\-X\fR, \fB\-\-xerox\fR, \fB\-\-readline\fR
++imitate Xerox lexc user interface
++.PP
++If INFILE or OUTFILE are omitted or \-, standard streams will be used
++The possible values for FORMAT are { sfst, openfst\-tropical, openfst\-log,
++foma, optimized\-lookup\-unweighted, optimized\-lookup\-weighted }.
++.SH EXAMPLES
++.TP
++hfst\-lexc\-wrapper \fB\-o\fR cat.hfst cat.lexc
++Compile single\-file lexicon
++.TP
++hfst\-lexc\-wrapper \fB\-o\fR L.hfst Root.lexc 2.lexc 3.lexc
++Compile multi\-file lexicon
++.SH "REPORTING BUGS"
++Report bugs to <hfst\-bugs at helsinki.fi> or directly to our bug tracker at:
++<https://sourceforge.net/tracker/?atid=1061990&group_id=224521&func=browse>
++.PP
++hfst\-lexc\-wrapper home page:
++<https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstLexcWrapper>
++.br
++General help using HFST software:
++<https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstHome>
++.SH COPYRIGHT
++Copyright \(co 2010 University of Helsinki,
++License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/tools/src/hfst-tagger/src/hfst-train-tagger.sh	2018-07-06 19:37:54.992498763 +0200
+@@ -0,0 +1,5 @@
++#! /bin/sh
++
++BINDIR/hfst-open-input-file-for-tagger "$@" |
++BINDIR/hfst_tagger_compute_data_statistics.py "$@" |
++BINDIR/hfst-build-tagger "$@"
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/tools/src/hfst-tagger/src/hfst-train-tagger.bat	2018-07-06 19:38:15.473214668 +0200
+@@ -0,0 +1,2 @@
++ at echo off
++HFST_INSTALLATION_DIRECTORY\hfst-open-input-file-for-tagger.exe %* | python HFST_INSTALLATION_DIRECTORY\hfst_tagger_compute_data_statistics.py %* | HFST_INSTALLATION_DIRECTORY\hfst-build-tagger.exe %*
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst-train-tagger.1	2018-07-06 19:58:07.882082536 +0200
+@@ -0,0 +1,47 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH HFST-TRAIN-TAGGER "1" "December 2015" "HFST" "User Commands"
++.SH NAME
++hfst-train-tagger \- =
++.SH SYNOPSIS
++.B hfst-train-tagger
++[\fIOPTIONS\fR...] [\fIINFILE\fR]
++.SH DESCRIPTION
++Compile training data file into an hfst part\-of\-speech tagger.
++.SS "Common options:"
++.TP
++\fB\-h\fR, \fB\-\-help\fR
++Print help message
++.TP
++\fB\-V\fR, \fB\-\-version\fR
++Print version info
++.TP
++\fB\-v\fR, \fB\-\-verbose\fR
++Print verbosely while processing
++.TP
++\fB\-q\fR, \fB\-\-quiet\fR
++Only print fatal erros and requested output
++.TP
++\fB\-s\fR, \fB\-\-silent\fR
++Alias of \fB\-\-quiet\fR
++.SS "Input/Output options:"
++.TP
++\fB\-i\fR, \fB\-\-input\fR=\fIINFILE\fR
++Read input transducer from INFILE
++.TP
++\fB\-o\fR, \fB\-\-output\fR=\fIOUTFILE\fR
++Write output transducer to OUTFILE
++.SH "REPORTING BUGS"
++Report bugs to <hfst\-bugs at helsinki.fi> or directly to our bug tracker at:
++<https://sourceforge.net/tracker/?atid=1061990&group_id=224521&func=browse>
++.PP
++hfst\-train\-tagger home page:
++<https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstTrainTagger>
++.br
++General help using HFST software:
++<https://kitwiki.csc.fi/twiki/bin/view/KitWiki//HfstHome>
++.SH COPYRIGHT
++Copyright \(co 2010 University of Helsinki,
++License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst-open-input-file-for-tagger.1	2018-07-06 20:15:54.219684614 +0200
+@@ -0,0 +1,15 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH HFST-OPEN-INPUT-FILE-FOR-TAGGER "1" "October 2014" "HFST" "User Commands"
++.SH NAME
++hfst-open-input-file-for-tagger \- =
++.SH SYNOPSIS
++.B hfst-open-input-file-for-tagger
++[\fIOPTIONS\fR...] [\fIINFILE\fR]
++.SH DESCRIPTION
++A program used by hfst-train-tagger, not intended to be used directly.
++.SH COPYRIGHT
++Copyright \(co 2010 University of Helsinki,
++License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst_tagger_compute_data_statistics.py.1	2018-07-06 20:17:03.832089688 +0200
+@@ -0,0 +1,15 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH HFST_TAGGER_COMPUTE_DATA_STATISTICS.PY "1" "October 2014" "HFST" "User Commands"
++.SH NAME
++hfst_tagger_compute_data_statistics.py \- =
++.SH SYNOPSIS
++.B hfst_tagger_compute_data_statistics.py
++[\fIOPTIONS\fR...] [\fIINFILE\fR]
++.SH DESCRIPTION
++A script used by hfst-train-tagger, not intended to be used directly.
++.SH COPYRIGHT
++Copyright \(co 2010 University of Helsinki,
++License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
+--- /dev/null	2011-06-01 08:46:43.490033582 +0200
++++ hfst-3.14.0/man/hfst-build-tagger.1	2018-07-06 20:17:51.097056002 +0200
+@@ -0,0 +1,15 @@
++.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.4.
++.TH HFST-BUILD-TAGGER "1" "October 2014" "HFST" "User Commands"
++.SH NAME
++hfst-build-tagger \- =
++.SH SYNOPSIS
++.B hfst-build-tagger
++[\fIOPTIONS\fR...] [\fIINFILE\fR]
++.SH DESCRIPTION
++A program used by hfst-train-tagger, not intended to be used directly.
++.SH COPYRIGHT
++Copyright \(co 2010 University of Helsinki,
++License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>
++.br
++This is free software: you are free to change and redistribute it.
++There is NO WARRANTY, to the extent permitted by law.
diff --git a/hfst-pc.patch b/hfst-pc.patch
index 79f9f25..5836ab8 100644
--- a/hfst-pc.patch
+++ b/hfst-pc.patch
@@ -1,8 +1,8 @@
---- hfst-3.2.0/libhfst/hfst.pc.in.orig	2011-07-30 15:37:58.000000000 +0200
-+++ hfst-3.2.0/libhfst/hfst.pc.in	2011-08-02 19:24:49.316577950 +0200
-@@ -7,4 +7,4 @@
+--- hfst-3.14.0/libhfst/hfst.pc.in~	2017-03-08 12:58:26.000000000 +0100
++++ hfst-3.14.0/libhfst/hfst.pc.in	2018-07-06 09:12:26.281756872 +0200
+@@ -7,4 +7,4 @@ Name: hfst
  Description: Finite-state transducer library bridge for multiple FLOSS packages
  Version: @LIBHFST_VERSION@
- Libs: -L${libdir} -l at LIBHFST_NAME@ @LIBS@
+ Libs: -L${libdir} -l at LIBHFST_NAME@
 -Cflags: -I${includedir}/hfst/ @GLIB_CFLAGS@
 +Cflags: -I${includedir}/hfst @GLIB_CFLAGS@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/hfst.git/commitdiff/dc6d107a121b6d26ad7c91bf9b7e693b68254d1d



More information about the pld-cvs-commit mailing list