From 8e578ffaefb8e15c1527d0a9002003ddcd2b5214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Thu, 15 Oct 2020 00:05:41 +0200 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/espeak-ng#fa46b9aca0b8a466cd2d9ec46f3d8cfee8971d88 --- .gitignore | 3 + ...mplerate-clashing-with-LTO-in-gcc-10.patch | 25 +++ espeak-ng.spec | 155 ++++++++++++++++++ sources | 1 + 4 files changed, 184 insertions(+) create mode 100644 0001-fix-699-avoid-samplerate-clashing-with-LTO-in-gcc-10.patch create mode 100644 espeak-ng.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..b91bf1d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,3 @@ +/1.49.1.tar.gz +/1.49.2.tar.gz +/1.50.tar.gz diff --git a/0001-fix-699-avoid-samplerate-clashing-with-LTO-in-gcc-10.patch b/0001-fix-699-avoid-samplerate-clashing-with-LTO-in-gcc-10.patch new file mode 100644 index 0000000..f4a71be --- /dev/null +++ b/0001-fix-699-avoid-samplerate-clashing-with-LTO-in-gcc-10.patch @@ -0,0 +1,25 @@ +From e11cd42b03d1628f7a0cf45c9406123282e25c63 Mon Sep 17 00:00:00 2001 +From: "Reece H. Dunn" +Date: Thu, 9 Jan 2020 21:11:42 +0000 +Subject: [PATCH] fix #699: avoid samplerate clashing with LTO in gcc 10. + +--- + src/espeak-ng.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/espeak-ng.c b/src/espeak-ng.c +index 10b8a887..3a7838cf 100644 +--- a/src/espeak-ng.c ++++ b/src/espeak-ng.c +@@ -117,7 +117,7 @@ static const char *help_text = + "--load Load voice from a file in current directory by name.\n" + "-h, --help Show this help.\n"; + +-int samplerate; ++static int samplerate; + bool quiet = false; + unsigned int samples_total = 0; + unsigned int samples_split = 0; +-- +2.20.1 + diff --git a/espeak-ng.spec b/espeak-ng.spec new file mode 100644 index 0000000..026fad1 --- /dev/null +++ b/espeak-ng.spec @@ -0,0 +1,155 @@ +Name: espeak-ng +Version: 1.50 +Release: 4%{?dist} +Summary: eSpeak NG Text-to-Speech + +License: GPLv3+ +URL: https://github.com/espeak-ng/espeak-ng +Source0: %{url}/archive/%{version}.tar.gz + +BuildRequires: gcc make autoconf automake libtool pkgconfig +BuildRequires: rubygem-ronn rubygem-kramdown +BuildRequires: pcaudiolib-devel + +Patch0: 0001-fix-699-avoid-samplerate-clashing-with-LTO-in-gcc-10.patch + +%description +The eSpeak NG (Next Generation) Text-to-Speech program is an open source speech +synthesizer that supports over 70 languages. It is based on the eSpeak engine +created by Jonathan Duddington. It uses spectral formant synthesis by default +which sounds robotic, but can be configured to use Klatt formant synthesis +or MBROLA to give it a more natural sound. + +%package devel +Summary: Development files for espeak-ng +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Development files for eSpeak NG, a software speech synthesizer. + +%package vim +Summary: Vim syntax highlighting for espeak-ng data files +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description vim +%{summary}. + +%package doc +Summary: Documentation for espeak-ng +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +Documentation for eSpeak NG, a software speech synthesizer. + +%prep +%autosetup -p1 +# Remove unused files to make sure we've got the License tag right +rm -rf src/include/compat/endian.h src/compat/getopt.c android/ + +%build +./autogen.sh +%configure +%make_build src/espeak-ng src/speak-ng +make +# Force utf8 for docs building +LC_ALL=C.UTF-8 make docs + +%install +%make_install +rm -vf %{buildroot}%{_libdir}/libespeak-ng-test.so* +rm -vf %{buildroot}%{_libdir}/*.{a,la} +# Remove files conflicting with espeak +rm -vf %{buildroot}%{_bindir}/{speak,espeak} +rm -vrf %{buildroot}%{_includedir}/espeak +# Move Vim files +mv %{buildroot}%{_datadir}/vim/addons %{buildroot}%{_datadir}/vim/vimfiles +rm -vrf %{buildroot}%{_datadir}/vim/registry + +%check +ESPEAK_DATA_PATH=`pwd` LD_LIBRARY_PATH=src:${LD_LIBRARY_PATH} src/espeak-ng ... + +%ldconfig_scriptlets + +%files +%license COPYING +%license COPYING.IEEE +%doc README.md +%doc CHANGELOG.md +%{_bindir}/speak-ng +%{_bindir}/espeak-ng +%{_libdir}/libespeak-ng.so.1 +%{_libdir}/libespeak-ng.so.1.* +%{_datadir}/espeak-ng-data +%{_mandir}/man1/speak-ng.1.gz +%{_mandir}/man1/espeak-ng.1.gz + +%files devel +%{_libdir}/pkgconfig/espeak-ng.pc +%{_libdir}/libespeak-ng.so +%{_includedir}/espeak-ng + +%files vim +%{_datadir}/vim/vimfiles/ftdetect/espeakfiletype.vim +%{_datadir}/vim/vimfiles/syntax/espeaklist.vim +%{_datadir}/vim/vimfiles/syntax/espeakrules.vim + +%files doc +%doc docs/*.html + +%changelog +* Mon Jul 27 2020 Fedora Release Engineering - 1.50-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 13 2020 Tom Stellard - 1.50-3 +- Use make macros +- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro + +* Tue Jan 28 2020 Fedora Release Engineering - 1.50-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Jan 27 2020 Ondřej Lysoněk - 1.50-1 +- New version +- Resolves: rhbz#1778315 + +* Wed Jul 24 2019 Fedora Release Engineering - 1.49.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1.49.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Nov 19 2018 Zbigniew Jędrzejewski-Szmek - 1.49.2-5 +- Use C.UTF-8 locale + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Thu Jul 19 2018 Ondřej Lysoněk - 1.49.2-4 +- Remove some unsed files in %%prep + +* Fri Jul 13 2018 Fedora Release Engineering - 1.49.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 1.49.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Oct 03 2017 Ondřej Lysoněk - 1.49.2-1 +- New version + +* Wed Aug 02 2017 Fedora Release Engineering - 1.49.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.49.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.49.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 24 2017 Ondřej Lysoněk 1.49.1-2 +- Corrected use of the ISA macro +- Included the COPYING.IEEE file + +* Tue Jan 24 2017 Ondřej Lysoněk 1.49.1-1 +- New version + +* Fri Sep 16 2016 Ondřej Lysoněk 1.49.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..14cc764 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (1.50.tar.gz) = 297dd80a6cdae3e2b8acf6823475220ce89d6a5fb68ea303156ad52cb3e7388049b6921759d4ed4e3d2e2ebd19bf931259e454f74a2ac0b7ecf4ce56c1d60c0c