OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   20-Mar-2008 15:55:28
  Branch: HEAD                             Handle: 2008032014552800

  Added files:
    openpkg-src/festival    festival.patch festival.spec

  Log:
    first cut for packaging the Festival speech synthesizing tool (can be
    used from within Asterisk PBX to on-the-fly generate waves based on
    configuration text)

  Summary:
    Revision    Changes     Path
    1.1         +37 -0      openpkg-src/festival/festival.patch
    1.1         +195 -0     openpkg-src/festival/festival.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/festival/festival.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 festival.patch
  --- /dev/null 2008-03-20 15:55:00 +0100
  +++ festival.patch    2008-03-20 15:55:28 +0100
  @@ -0,0 +1,37 @@
  +--- speech_tools/include/EST_unix.h  Sun May 30 20:53:04 1999
  ++++ speech_tools/include/EST_unix.h  Mon Oct 11 05:40:15 1999
  +@@ -53,6 +53,7 @@
  + #   include <sys/wait.h>
  + #   include <sys/resource.h>
  + #   include <dirent.h>
  ++#   define unix 1
  + #elif defined(SYSTEM_IS_WIN32)
  + #   include <io.h>
  + #   include "win32/EST_unix_win32.h"
  +--- speech_tools/config/rules/install.mak~   Sun May 30 22:51:10 1999
  ++++ speech_tools/config/rules/install.mak    Wed Mar  9 03:11:35 2005
  +@@ -39,7 +39,7 @@
  + 
  + 
  + 
  +-PROJECT_HOME_PATH := $(shell mkdir -p $($(PROJECT_PREFIX)_HOME); cd 
$($(PROJECT_PREFIX)_HOME); pwd)
  ++PROJECT_HOME_PATH := $($(PROJECT_PREFIX)_HOME)
  + 
  + PROJECT_TOP_PATH := $(shell (cd $(TOP); pwd))
  + 
  +--- speech_tools/testsuite/matrix_regression.cc      Fri Apr 30 12:56:51 2004
  ++++ speech_tools/testsuite/matrix_regression.cc      Mon Mar 26 04:07:25 2007
  +@@ -55,7 +55,4 @@
  +   EST_TMatrix<int> m(5,5);
  + 
  +-  cout << "EST_TVector<int> size = " << sizeof(EST_TVector<int>) << " 
bytes.\n";
  +-  cout << "EST_TMatrix<int> size = " << sizeof(EST_TMatrix<int>) << " 
bytes.\n";
  +-
  +   for(int i=0; i<m.num_rows(); i++)
  +     for(int j=0; j<m.num_columns(); j++)
  +--- speech_tools/testsuite/correct/matrix_regression.out     Wed Apr  4 
07:55:32 2001
  ++++ speech_tools/testsuite/correct/matrix_regression.out     Mon Mar 26 
04:07:56 2007
  +@@ -1,3 +1 @@
  +-EST_TVector<int> size = 20 bytes.
  +-EST_TMatrix<int> size = 28 bytes.
  + Initial Matrix
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/festival/festival.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 festival.spec
  --- /dev/null 2008-03-20 15:55:00 +0100
  +++ festival.spec     2008-03-20 15:55:28 +0100
  @@ -0,0 +1,195 @@
  +##
  +##  festival.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package versions
  +%define       V_festival      1.96
  +%define       V_speech_tools  1.2.96
  +
  +#   package information
  +Name:         festival
  +Summary:      Speech Synthesis System
  +URL:          http://www.cstr.ed.ac.uk/projects/festival/
  +Vendor:       University of Edinburgh
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Audio
  +License:      X11-style
  +Version:      %{V_festival}
  +Release:      20080320
  +
  +#   list of sources
  +Source0:      
http://festvox.org/packed/festival/%{V_festival}/festival-%{V_festival}-beta.tar.gz
  +Source1:      
http://festvox.org/packed/festival/%{V_festival}/speech_tools-%{V_speech_tools}-beta.tar.gz
  +Source2:      
http://festvox.org/packed/festival/%{V_festival}/festlex_CMU.tar.gz
  +Source3:      
http://festvox.org/packed/festival/%{V_festival}/festlex_POSLEX.tar.gz
  +Source4:      
http://festvox.org/packed/festival/%{V_festival}/festlex_OALD.tar.gz
  +Source5:      
http://festvox.org/packed/festival/%{V_festival}/festvox_kallpc16k.tar.gz
  +Source6:      
http://festvox.org/packed/festival/%{V_festival}/festvox_kedlpc16k.tar.gz
  +Source7:      
http://festvox.org/packed/festival/%{V_festival}/festvox_kedlpc8k.tar.gz
  +Source8:      
http://festvox.org/packed/festival/%{V_festival}/festvox_us1.tar.gz
  +Source9:      
http://festvox.org/packed/festival/%{V_festival}/festvox_us2.tar.gz
  +Source10:     
http://festvox.org/packed/festival/%{V_festival}/festvox_us3.tar.gz
  +Source11:     
http://festvox.org/packed/festival/%{V_festival}/festvox_cmu_us_awb_arctic_hts.tar.gz
  +Source12:     
http://festvox.org/packed/festival/%{V_festival}/festvox_cmu_us_bdl_arctic_hts.tar.gz
  +Source13:     
http://festvox.org/packed/festival/%{V_festival}/festvox_cmu_us_jmk_arctic_hts.tar.gz
  +Source14:     
http://festvox.org/packed/festival/%{V_festival}/festvox_cmu_us_slt_arctic_hts.tar.gz
  +Patch0:       festival.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, make, gcc, gcc::with_cxx = yes
  +PreReq:       OpenPKG, openpkg >= 20040130
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    Festival offers a general framework for building speech synthesis
  +    systems as well as including examples of various modules. As a whole
  +    it offers full text to speech through a number APIs: from shell
  +    level, though a Scheme command interpreter, as a C++ library, from
  +    Java, and an Emacs interface. Festival is multi-lingual (currently
  +    English (British and American), and Spanish) though English is the
  +    most advanced. The system is written in C++ and uses the Edinburgh
  +    Speech Tools Library for low level architecture and has a Scheme
  +    (SIOD) based command interpreter for control. Documentation is given
  +    in the FSF texinfo format which can generate, a printed manual, info
  +    files and HTML.
  +
  +%track
  +    prog festival = {
  +        version   = %{version}
  +        url       = http://www.cstr.ed.ac.uk/downloads/festival/
  +        regex     = (1\.\d+|2\.\d+)
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -T -D -a 1
  +    %setup -q -T -D -a 2
  +    %setup -q -T -D -a 3
  +    %setup -q -T -D -a 4
  +    %setup -q -T -D -a 5
  +    %setup -q -T -D -a 6
  +    %setup -q -T -D -a 7
  +    %setup -q -T -D -a 8
  +    %setup -q -T -D -a 9
  +    %setup -q -T -D -a 10
  +    %setup -q -T -D -a 11
  +    %setup -q -T -D -a 12
  +    %setup -q -T -D -a 13
  +    %setup -q -T -D -a 14
  +    %patch -p0
  +
  +%build
  +    #   build speech tools
  +    ( cd speech_tools
  +      CC="%{l_cc}" \
  +      CXX="%{l_cxx}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CXXFLAGS="%{l_cxxflags -O}" \
  +      CPPFLAGS="%{l_cppflags}" \
  +      LDFLAGS="%{l_ldflags}" \
  +      ./configure \
  +          --prefix=%{l_prefix}
  +      %{l_make} %{l_mflags}
  +    ) || exit $?
  +
  +    #   build festival toolkit
  +    ( cd festival
  +      CC="%{l_cc}" \
  +      CXX="%{l_cxx}" \
  +      CFLAGS="%{l_cflags -O}" \
  +      CXXFLAGS="%{l_cxxflags -O}" \
  +      CPPFLAGS="%{l_cppflags}" \
  +      LDFLAGS="%{l_ldflags}" \
  +      ./configure \
  +          --prefix=%{l_prefix}
  +      %{l_make} %{l_mflags}
  +    ) || exit $?
  +
  +%install
  +    #   create installation hierarchy
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_shtool} mkdir -f -p -m 755 \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
  +        $RPM_BUILD_ROOT%{l_prefix}/libexec/festival \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/festival
  +
  +    #   install program files
  +    %{l_shtool} install -c -m 755 \
  +        festival/lib/etc/*/audsp \
  +        $RPM_BUILD_ROOT%{l_prefix}/libexec/festival/
  +    %{l_shtool} install -c -m 755 \
  +        festival/src/main/festival \
  +        festival/src/main/festival_client \
  +        $RPM_BUILD_ROOT%{l_prefix}/libexec/festival/
  +    ( echo "#!/bin/sh"
  +      echo "PATH=%{l_prefix}/libexec/festival:\$PATH"
  +      echo "export PATH"
  +      echo "exec %{l_prefix}/libexec/festival/festival \\"
  +      echo "    --libdir %{l_prefix}/lib/festival \$*"
  +    ) >festival.sh
  +    ( echo "#!/bin/sh"
  +      echo "PATH=%{l_prefix}/libexec/festival:\$PATH"
  +      echo "export PATH"
  +      echo "exec %{l_prefix}/libexec/festival/festival_client \\"
  +      echo "    %{l_prefix}/lib/festival \$*"
  +    ) >festival_client.sh
  +    %{l_shtool} install -c -m 755 \
  +        festival.sh $RPM_BUILD_ROOT%{l_prefix}/bin/festival
  +    %{l_shtool} install -c -m 755 \
  +        festival_client.sh $RPM_BUILD_ROOT%{l_prefix}/bin/festival_client
  +    %{l_shtool} install -c -m 644 \
  +        festival/doc/festival.1 \
  +        festival/doc/festival_client.1 \
  +        $RPM_BUILD_ROOT%{l_prefix}/man/man1/
  +    %{l_shtool} install -c -m 755 \
  +        -e 's;\(exec \).*\(/bin/festival --script\);\1%{l_prefix}\2;' \
  +        festival/examples/saytime \
  +        festival/examples/text2pos \
  +        festival/examples/text2wave \
  +        $RPM_BUILD_ROOT%{l_prefix}/bin/
  +
  +    #   install library files
  +    chmod -R u+w,a+r,og-w festival/lib
  +    find festival/lib -type d -print | xargs chmod 755
  +    cp -rp festival/lib/* $RPM_BUILD_ROOT%{l_prefix}/lib/festival/
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/lib/festival/etc
  +    ( echo "(set! system-voice-path '(\"%{l_prefix}/lib/festival/voices\"))"
  +      echo "(set! sgml_parse_progname \"nsgmls\")"
  +    ) >sitevars.scm
  +    %{l_shtool} install -c -m 644 \
  +        sitevars.scm \
  +        $RPM_BUILD_ROOT%{l_prefix}/lib/festival/sitevars.scm
  +
  +    #   determine installation files
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to