From e14f75a845bc72fe90ea74d01cde2114a4c0ee66 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 3 Aug 2021 21:30:37 +0800 Subject: [PATCH] update espeak-ng.spec and add gcc-10.patch --- espeak-ng.spec | 8 ++++++-- gcc-10.patch | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 gcc-10.patch diff --git a/espeak-ng.spec b/espeak-ng.spec index 12efd8c..7f06c46 100644 --- a/espeak-ng.spec +++ b/espeak-ng.spec @@ -1,10 +1,11 @@ Name: espeak-ng Version: 1.49.2 -Release: 6 +Release: 7 Summary: eSpeak NG is an open source speech synthesizer License: GPLv3+ and Apache-2.0 URL: https://github.com/espeak-ng/espeak-ng Source0: https://github.com/espeak-ng/espeak-ng/archive/%{version}.tar.gz +Patch0: gcc-10.patch BuildRequires: make autoconf automake libtool pkgconfig rubygem-ronn-ng rubygem-kramdown pcaudiolib-devel Provides: espeak-ng-vim = %{version}-%{release} Obsoletes: espeak-ng-vim < %{version}-%{release} @@ -32,7 +33,7 @@ Obsoletes: espeak-ng-doc < %{version}-%{release} Documentation for espeak-ng. %prep -%autosetup -n espeak-ng-%{version} +%autosetup -n espeak-ng-%{version} -p1 rm -rf src/include/compat/endian.h src/compat/getopt.c android/ %build ./autogen.sh @@ -73,6 +74,9 @@ ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} src/espeak-ng ... %{_mandir}/man1/{speak-ng.1.gz,espeak-ng.1.gz} %changelog +* Tue Aug 03 2021 liping - 1.49.2-7 +- fix by upgrade to GCC-10 + * Sun Feb 07 2020 huanghaitao - 1.49.2-6 - Swith rubygem-ronn-ng to drop rubygem-ronn diff --git a/gcc-10.patch b/gcc-10.patch new file mode 100644 index 0000000..767fef6 --- /dev/null +++ b/gcc-10.patch @@ -0,0 +1,11 @@ +--- a/src/espeak-ng.c 2021-08-03 20:34:16.970088987 +0800 ++++ b/src/espeak-ng.c 2021-08-03 20:34:06.581921729 +0800 +@@ -115,7 +115,7 @@ static const char *help_text = + "\t If is omitted, then list all voices.\n" + "-h, --help Show this help.\n"; + +-int samplerate; ++static int samplerate; + int quiet = 0; + unsigned int samples_total = 0; + unsigned int samples_split = 0; -- Gitee