Accepting request 127373 from home:embar-:mbrola-lt

Add espeakedit program to work with espeak data in GUI

OBS-URL: https://build.opensuse.org/request/show/127373
OBS-URL: https://build.opensuse.org/package/show/Education/espeakedit?expand=0&rev=1
This commit is contained in:
Lars Vogdt
2012-07-09 08:02:38 +00:00
committed by Git OBS Bridge
commit 3a4710f07d
7 changed files with 175 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
espeakedit-1.46.02.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74e2694a3ea6c1e32f4c9102b93c881eabb37aeaf911c9d13aff23ab13ca85b1
size 7306662

22
espeakedit.1 Normal file
View File

@@ -0,0 +1,22 @@
.TH ESPEAKEDIT 1 "April 5, 2010"
.SH NAME
espeakedit \- eSpeak voice editor
.SH SYNOPSIS
.B espeakedit
.RI [ --compile ]
.SH DESCRIPTION
\fBespeakedit\fP is an graphical editor for the eSpeak speech synthesizer.
.SH OPTIONS
.TP
.B \--compile
Compile phoneme data in espeak-data/phsource
and dictionary data in espeak-data/dictsource
.SH SEE ALSO
.BR espeak (1),
.br
More information can be found in /usr/share/doc/espeakedit/docs/editor.html
.SH AUTHOR
espeakedit was written by Jonathan Duddington.
.PP
This manual page was written by Samuel Thibault <sthibault@debian.org>,
for the Debian project (and may be used by others).

4
espeakedit.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Jul 07 19:40:40 UTC 2012 - embar@super.lt
- Version 1.46.02

88
espeakedit.spec Normal file
View File

@@ -0,0 +1,88 @@
#
# spec file for package espeakedit
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: espeakedit
Version: 1.46.02
Release: 0
%define _version %{version}-source
License: GPL-3.0+
Summary: Software speech synthesizer (text-to-speech)
Url: http://espeak.sourceforge.net
Group: Productivity/Other
Source: %{name}-%{version}.zip
Source1: espeakedit.1
Patch0: makefile_rpmoptflags_wxversion.patch
BuildRequires: gcc-c++
BuildRequires: portaudio-devel
BuildRequires: pulseaudio-devel
BuildRequires: unzip
BuildRequires: wxWidgets-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
eSpeak is a software speech synthesizer for English, and some other languages.
eSpeakEdit provides a User Interface to edit the eSpeak voices.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
#%patch1 -p1
# Don't use the included binary voice dictionaries; we compile these from
# source
#%{__rm} espeak-data/*_dict
# Build against portaudio v19 (see ReadMe)
%{__cp} -f src/portaudio19.h src/portaudio.h
%ifarch i386 i486 i586 i686
sed "s/lib64/lib/g" -i src/Makefile
%endif
%build
cd src
make %{?_smp_mflags} CFLAGS="%{optflags}"
cd ..
# Build the TTS voice dictionaries
export ESPEAK_DATA_PATH=%{_builddir}/%{name}-%{version}
#cd dictsource
#for voice in $(../src/speak --voices | awk '{print $2}{print $5}' | egrep -v Language\|File\|/ | uniq); do
# ../src/speak --compile=$voice;
#done
%install
cd src
mkdir -p %{buildroot}/%{_bindir}/
cp espeakedit %{buildroot}/%{_bindir}/
cd ..
# Remove static libraries
#%{__rm} %{buildroot}%{_libdir}/*.a
# Install manpage
%{__install} -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/espeakedit.1
# Rename docs subdir for installation with %doc
%{__mv} docs/ html/
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-,root,root,755)
%{_bindir}/espeakedit
%doc %{_mandir}/man1/espeakedit.1.*
%changelog

View File

@@ -0,0 +1,34 @@
--- ./src/Makefile.orig 2011-09-14 14:59:35.000000000 +0300
+++ ./src/Makefile 2012-05-24 08:57:37.070235001 +0300
@@ -10,23 +10,21 @@
OBJS=$(patsubst %.cpp,%.o,$(SRCS))
-WX_LIBS = -pthread -lwx_gtk2u_xrc-2.6 -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 \
- -lwx_gtk2u_adv-2.6 -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
-
+WX_VERSION = 2.8
+WX_LIBS = -pthread -L /usr/lib64/wx-$(WX_VERSION)-stl/ -lwx_gtk2u_xrc-$(WX_VERSION) -lwx_gtk2u_qa-$(WX_VERSION) -lwx_gtk2u_html-$(WX_VERSION) -lwx_gtk2u_adv-$(WX_VERSION) -lwx_gtk2u_core-$(WX_VERSION) -lwx_baseu_xml-$(WX_VERSION) -lwx_baseu_net-$(WX_VERSION) -lwx_baseu-$(WX_VERSION)
+WX_INCLUDES = -I/usr/lib64/wx-$(WX_VERSION)-stl/wx/include/gtk2-unicode-release-$(WX_VERSION) -I/usr/include/wx-$(WX_VERSION)
+
LIBS=-lstdc++ -lportaudio
-CPPFLAGS = -Wall -g -fexceptions -I/usr/lib/wx/include/gtk2-unicode-release-2.6
- -I/usr/include/wx-2.6 \
- -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
- -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
+DEFS = -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
-CXXFLAGS = -O2 -Wall -fexceptions -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 \
- -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
+CXXFLAGS = -O2 -Wall -fexceptions -I/usr/lib64/wx-$(WX_VERSION)-stl/wx/include/gtk2-unicode-release-$(WX_VERSION) -I/usr/include/wx-$(WX_VERSION) \
+ -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DLD_DYNAMIC_WEAK=0 -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
all: espeakedit
.cpp.o:
- $(CXX) $(CXXFLAGS) -I. -c -fno-exceptions $<
+ $(CXX) $(CXXFLAGS) $(WX_INCLUDES) $(DEFS) -I. -c -fno-exceptions $<
espeakedit: $(OBJS)
$(CXX) -o $@ $(OBJS) $(LIBS) $(WX_LIBS)