[packages/eflite] Rel 4

arekm arekm at pld-linux.org
Thu May 21 15:29:47 CEST 2026


commit 448e53a224e57cd46b0c4a1b6ccdabc54d02a745
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:29:31 2026 +0200

    Rel 4

 eflite-prototype.patch    | 20 ++++++++++++++++++++
 eflite-voice-symbol.patch | 15 +++++++++++++++
 eflite.spec               | 11 ++++++++---
 3 files changed, 43 insertions(+), 3 deletions(-)
---
diff --git a/eflite.spec b/eflite.spec
index b3fec8d..2dacf9a 100644
--- a/eflite.spec
+++ b/eflite.spec
@@ -3,15 +3,16 @@ Summary(pl.UTF-8):	FLite - serwer Emacspeak
 Summary(ru.UTF-8):	FLite сервер для Emacspeak
 Name:		eflite
 Version:	0.4.1
-Release:	2
+Release:	4
 License:	GPL
 Group:		Applications/Sound
 Source0:	http://dl.sourceforge.net/eflite/%{name}-%{version}.tar.gz
 # Source0-md5:	9c1a25990426ae1c6519ee1a4528dc03
 Patch0:		%{name}-doc.patch
 Patch1:		%{name}-DESTDIR.patch
+Patch2:		%{name}-prototype.patch
+Patch3:		%{name}-voice-symbol.patch
 URL:		http://eflite.sourceforge.net/
-BuildRequires:	emacs
 BuildRequires:	flite-devel >= 1.2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -29,6 +30,8 @@ Lite.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 %build
 export flite_dir="%{_libdir}"
@@ -37,7 +40,9 @@ export flite_include_dir="%{_includedir}/flite"
 	--with-vox=cmu_us_kal16 \
 	--with-audio=oss
 
-%{__make}
+%{__make} \
+	CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+	LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/eflite-prototype.patch b/eflite-prototype.patch
new file mode 100644
index 0000000..5a382f5
--- /dev/null
+++ b/eflite-prototype.patch
@@ -0,0 +1,20 @@
+--- eflite-0.4.1/es.c.orig
++++ eflite-0.4.1/es.c
+@@ -567,7 +567,7 @@
+   }
+   else if ((!strcmp (buf, "r") || !strcmp(buf, "tts_set_speech_rate")) && token[0])
+   {
+-    if (text_buffered) es_synthesize(client);
++    if (text_buffered) es_synthesize();
+     /* In the libspeech api, a rate of 1000 is defined as "normal."  Thus, fs.c
+ 	defines a rate of 1000 as equivalent to FLite's normal rate (about 175
+ 	wpm).  The following conversion is accurate for it but may not be
+@@ -577,7 +577,7 @@
+   }
+   else if ((!strcmp (buf, "v") || !strcmp(buf, "tts_set_speech_volume")) && token[0])
+   {
+-    if (text_buffered) es_synthesize(client);
++    if (text_buffered) es_synthesize();
+     client->param[S_VOLUME] = atoi(token[0]);
+   }
+   else if (!strcmp (buf, "reset"))
diff --git a/eflite-voice-symbol.patch b/eflite-voice-symbol.patch
new file mode 100644
index 0000000..a55dd22
--- /dev/null
+++ b/eflite-voice-symbol.patch
@@ -0,0 +1,15 @@
+Use the actual selected voice name when generating the REGISTER_VOX symbol.
+Newer flite releases ship a real cmu_us_kal16 library that exports
+register_cmu_us_kal16; the hardcoded sed-style substitution was a
+workaround for an old flite that only exported register_cmu_us_kal.
+--- eflite-0.4.1/Makefile.in.orig
++++ eflite-0.4.1/Makefile.in
+@@ -34,7 +34,7 @@ eflite: fs.o es.o soccon.o sockopen.o tone.o
+ 	$(CC) $(LDFLAGS) -o $@ $^ -lm $(LIBS) $(FLITE_LIBS) $(AUDIOLIBS)
+
+ fs.o: fs.c
+-	$(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(subst cmu_us_kal16,cmu_us_kal,$(FL_VOX)) -DSTANDALONE -DEFLITE -c -o $@ $<
++	$(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(FL_VOX) -DSTANDALONE -DEFLITE -c -o $@ $<
+
+ tone.o: tone.c
+ 	$(CC) $(CFLAGS) -I$(flite_include_dir) -DEFLITE -c -o $@ $<
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/eflite.git/commitdiff/448e53a224e57cd46b0c4a1b6ccdabc54d02a745



More information about the pld-cvs-commit mailing list