Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
festival-german
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 16
[-]
[+]
Added
festival.spec
@@ -0,0 +1,340 @@ +# +# spec file for package festival (Version 1.96) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild +# usedforbuild aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cpp41 cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gcc-c++ gcc41 gcc41-c++ gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc41 libltdl libmudflap41 libnscd libstdc++41 libstdc++41-devel libtool libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions pkgconfig popt procinfo procps psmisc pwdutils rcs readline rpm sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel + +Name: festival +BuildRequires: gcc-c++ pkgconfig libgcc unzip ncurses ncurses-devel +URL: http://www.cstr.ed.ac.uk/projects/festival/ +License: X11/MIT, Other License(s), see package +Group: Productivity/Text/Convertors +Autoreqprov: on +Version: 1.96 +Release: 25 +Summary: The Festival Speech Synthesis System +Source0: festival-%{version}-beta.tar.bz2 +Source1: speech_tools-1.2.95-beta.tar.bz2 +Source2: festlex_CMU.tar.bz2 +Source3: festvox_kallpc16k.tar.bz2 +Source4: festlex_POSLEX.tar.bz2 +Source5: sysconfig.festival +Source6: rcfestival +Source7: ims_german_1.2c-os.tgz +Source8: ims_german_1.2c-doc.tgz +Source9: festival_lexfix.tgz +Source10: mbr301h.zip +Source11: de1-980227.zip +Source12: de2-990106.zip +Source13: de3-000307.zip +Source14: de4.zip +Source15: de5.zip +Source16: de6.zip +Source17: de7.zip +Source18: de8.zip +# festival patches +Patch0: %{name}-%{version}.patch +Patch1: festival-1.95-gcc4.patch +Patch2: festival-1.95-examples.patch +Patch3: festival-text2wave-manpage.patch +Patch4: festival-1.95-libdir.patch +Patch7: festival-1.95-audsp.patch +# speech-tools patches +Patch10: speech_tools-1.2.95-includes.patch +Patch11: speech_tools-1.2.95-gcc4.patch +Patch12: speech_tools-1.2.95-config.patch +Patch13: speech_tools-1.2.95-gcc41.patch +Patch14: speech_tools-1.2.95-returnvalue.patch +# ims patches +Patch15: ims_german_config.diff +Patch16: mbrola_sitevars.diff +Patch17: ims_german_siteinit.diff +Patch18: ims_german_voices_opensource.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +Requires: mbrola mbrola-voices-german + +%if 0%{?suse_version} +PreReq: %fillup_prereq +%endif + +%description +Festival is a multilingual speech synthesis system developed at CSTR. +It offers a full text-to-speech system with various APIs as well as an +environment for development and research of speech synthesis +techniques. It is written in C++ and has a Scheme-based command +interpreter for general control. + + + +Authors: +-------- + Alan W Black <awb@cs.cmu.edu> + Rob Clark <robert@cstr.ed.ac.uk> + Korin Richmond <korin@cstr.ed.ac.uk> + +%debug_package +%package devel +Summary: Development Package for Festival +Group: Productivity/Text/Convertors +Autoreqprov: on +Requires: %name == %version + +%description devel +Files needed for developing software that uses Festival. + + + +Authors: +-------- + Alan W Black <awb@cs.cmu.edu> + Rob Clark <robert@cstr.ed.ac.uk> + Korin Richmond <korin@cstr.ed.ac.uk> + + +%package -n mbrola +Summary: mbrola +Version: 3.01 +Release: 1 +Group: Productivity/Text/Convertors +URL: http://tcts.fpms.ac.be/synthesis/ +%description -n mbrola +mbrola TTS +##################################################################### +%package -n mbrola-voices-german +Summary: german voices for mbrola +Version: 3.01 +Release: 1 +Group: Productivity/Text/Convertors +URL: http://tcts.fpms.ac.be/synthesis/ +%description -n mbrola-voices-german +mbrola german voices +##################################################################### +%prep +%setup -q -b 7 -b 8 -b 9 -b 1 -b 2 -b 3 -b 4 -q -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -n festival +%patch0 +%patch1 +%patch2 -p1 +%patch3 -p1 +%patch4 +%patch7 +%patch15 -p1 +%patch16 -p1 +%patch17 -p1 +%patch18 +cd ../speech_tools +%patch10 -p1 +%patch11 -p1 +%patch12 +%patch13 -p1 +%patch14 -p1 + +%build +# festival +./configure --prefix=%_prefix \ + --libdir=%_libdir \ + --datadir=%_datadir/festival \ + --sysconfdir=%_sysconfdir +# speech tools +cd ../speech_tools +./configure --prefix=%_prefix \ + --libdir=%_libdir \ + --datadir=%_datadir/festival \ + --sysconfdir=%_sysconfdir +%if 0%{?suse_version} + +%if %{suse_version} > 1000 +make CC="gcc -fPIC $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend -ffriend-injection" +%else +make CC="gcc -fPIC $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend" +%endif +%else +make CC="gcc -fPIC $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend" +%endif + +cd ../festival +%if 0%{?suse_version} +%if %{suse_version} > 1000 +make CC="gcc -fPIC $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend -ffriend-injection" +%else +make CC="gcc -fPIC $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend" +%endif +%else +make CC="gcc -fPIC $RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS -fPIC -Wno-non-template-friend" +%endif +make doc + +%install +make install DESTDIR=$RPM_BUILD_ROOT +cd ../speech_tools +make install DESTDIR=$RPM_BUILD_ROOT +cd ../festival +# install binarys +install -D bin/text2wave $RPM_BUILD_ROOT%_bindir/text2wave +install -m 755 bin/festival* $RPM_BUILD_ROOT%_bindir/ +install -m 755 examples/saytime $RPM_BUILD_ROOT%_bindir/ +mkdir -p $RPM_BUILD_ROOT%_prefix/local/mbrola +for (( a=1; a<=8;a++ )) ; do +mkdir -p $RPM_BUILD_ROOT%_prefix/local/mbrola/de${a} +install -m 644 de${a}/de${a} $RPM_BUILD_ROOT%_prefix/local/mbrola/de${a}/ +done +install -m 755 mbrola-linux-i386 $RPM_BUILD_ROOT%_prefix/local/mbrola/mbrola +# install manpages +install -D -m 644 doc/festival.1 $RPM_BUILD_ROOT%_mandir/man1/festival.1 +install -m 644 doc/festival_client.1 $RPM_BUILD_ROOT%_mandir/man1/ +install -m 644 doc/text2wave.1 $RPM_BUILD_ROOT%_mandir/man1/ +# install configs +install -D lib/festival.scm $RPM_BUILD_ROOT%_sysconfdir/festival.scm +# install dictionarys +install -D lib/dicts/cmu/cmudict-0.4.out $RPM_BUILD_ROOT%_datadir/%name/dicts/cmu/cmudict-0.4.out +install -m 644 lib/dicts/cmu/*.scm $RPM_BUILD_ROOT%_datadir/%name/dicts/cmu/ +install -m 644 lib/dicts/wsj.wp39.poslexR $RPM_BUILD_ROOT%_datadir/%name/dicts/ +install -m 644 lib/dicts/wsj.wp39.tri.ngrambin $RPM_BUILD_ROOT%_datadir/%name/dicts/