[packages/espeak] Up to 1.48.15
arekm
arekm at pld-linux.org
Sat Mar 14 21:26:43 CET 2026
commit e1b9dad0d685a7a3b926ff7002bac39ceec13522
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Mar 14 21:26:33 2026 +0100
Up to 1.48.15
char_cast.patch | 11 +++++++++++
espeak.spec | 20 +++++++++++++-------
flags.patch | 43 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 67 insertions(+), 7 deletions(-)
---
diff --git a/espeak.spec b/espeak.spec
index 09d4433..3c614a5 100644
--- a/espeak.spec
+++ b/espeak.spec
@@ -1,13 +1,15 @@
Summary: eSpeak - speech synthesizer for English and other languages
Summary(pl.UTF-8): eSpeak - syntezator mowy dla języka angielskiego i innych
Name: espeak
-Version: 1.48.04
+Version: 1.48.15
Release: 1
License: GPL v3+
Group: Applications/Sound
-Source0: http://downloads.sourceforge.net/espeak/%{name}-%{version}-source.zip
-# Source0-md5: cadd7482eaafe9239546bdc09fa244c3
-URL: http://espeak.sourceforge.net/
+Source0: https://downloads.sourceforge.net/espeak/%{name}-%{version}-source.zip
+# Source0-md5: a933baef9cd6528f2e019e59582797bd
+Patch0: char_cast.patch
+Patch1: flags.patch
+URL: https://espeak.sourceforge.net/
BuildRequires: libstdc++-devel
BuildRequires: portaudio-devel >= 19
BuildRequires: pulseaudio-devel
@@ -114,7 +116,9 @@ eSpeak - static libraries.
eSpeak - biblioteki statyczne.
%prep
-%setup -q -n %{name}-%{version}-source
+%setup -q -n %{name}-%{version}
+%patch 0 -p1
+%patch 1 -p1
# remove pernicious headers to avoid using them during build instead of %{_includedir}/portaudio.h system header
%{__rm} src/portaudio{18,19,}.h
@@ -125,7 +129,9 @@ sed -i -e 's/-fpic/-fPIC/g' src/Makefile
%build
%{__make} -C src \
CXX="%{__cxx}" \
+ CPPFLAGS="%{rpmcppflags}" \
CXXFLAGS="%{rpmcxxflags}" \
+ LDFLAGS="%{rpmldflags}" \
AUDIO=runtime
%install
@@ -150,11 +156,11 @@ rm -rf $RPM_BUILD_ROOT
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libespeak.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libespeak.so.1
+%ghost %{_libdir}/libespeak.so.1
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libespeak.so
+%{_libdir}/libespeak.so
%{_includedir}/espeak
%files static
diff --git a/char_cast.patch b/char_cast.patch
new file mode 100644
index 0000000..d7b2c1a
--- /dev/null
+++ b/char_cast.patch
@@ -0,0 +1,11 @@
+--- a/src/tr_languages.cpp
++++ b/src/tr_languages.cpp
+@@ -198,7 +198,7 @@ static const unsigned short chars_ignore
+ 0x200d, 1, // zero width joiner
+ 0, 0 };
+
+-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8
++const char string_ordinal[] = {(char)0xc2,(char)0xba,0}; // masculine ordinal character, UTF-8
+
+
+ static Translator* NewTranslator(void)
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..4420691
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,43 @@
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -93,13 +93,13 @@ SRCS3 = espeak.cpp
+ OBJS3=$(patsubst %.cpp,%.o,$(SRCS3))
+ LIBS3=-lstdc++ -L . -lespeak
+
+-CXXFLAGS=-O2
++CXXFLAGS?=-O2
+
+
+ all: $(BIN_NAME) $(LIB_NAME) $(STATIC_LIB_NAME) $(BIN2_NAME)
+
+ .cpp.o:
+- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
+
+ $(BIN_NAME): $(OBJS1)
+ $(CXX) $(LDFLAGS) -o $@ $(OBJS1) $(LIBS1)
+@@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME)
+
+
+ x_%.o: %.cpp
+- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \
++ $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \
+ -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o
+
+ $(LIB_NAME): $(OBJS2)
+--- a/platforms/big_endian/Makefile
++++ b/platforms/big_endian/Makefile
+@@ -1,11 +1,11 @@
+ CC = gcc
+
+-CFLAGS += -g3 -Wall -O0
++CFLAGS ?= -g3 -Wall -O0
+
+ all: espeak-phoneme-data
+
+ espeak-phoneme-data: espeak-phoneme-data.c
+- $(CC) $(CFLAGS) -o $@ $<
++ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $<
+
+ clean:
+ rm -f espeak-phoneme-data
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/espeak.git/commitdiff/e1b9dad0d685a7a3b926ff7002bac39ceec13522
More information about the pld-cvs-commit
mailing list