update espeak-ng.spec and add gcc-10.patch
This commit is contained in:
parent
9af26bae69
commit
ae380c1501
@ -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 <liping136@huawei.com> - 1.49.2-7
|
||||
- fix by upgrade to GCC-10
|
||||
|
||||
* Sun Feb 07 2020 huanghaitao <huanghaitao8@huawei.com> - 1.49.2-6
|
||||
- Swith rubygem-ronn-ng to drop rubygem-ronn
|
||||
|
||||
|
||||
11
gcc-10.patch
Normal file
11
gcc-10.patch
Normal file
@ -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 <language> 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;
|
||||
Loading…
x
Reference in New Issue
Block a user