]> git.pld-linux.org Git - packages/festival.git/blame - festival.spec
Added pulseaudio support
[packages/festival.git] / festival.spec
CommitLineData
3bbe6f7a 1# TODO: kill ELF binary from %{_datadir}, see files
7f8236b8 2Summary: The Festival speech sythesis system
3122abc4 3Summary(pl.UTF-8): System syntezy mowy Festival
7f8236b8 4Name: festival
6a47c71b
JR
5Version: 2.1
6Release: 0.1
7b46f00c 7License: BSD-like (except for festival.el, which is on GPL)
7f8236b8 8Group: Applications/Sound
6a47c71b
JR
9Source0: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/%{name}-%{version}-release.tar.gz
10# Source0-md5: c93eb3e389ed171ab9abd46afe8897a8
11Source1: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_awb_cg.tar.gz
12# Source1-md5: 2c14269587ad018ee93176bb44f4c38b
13Source2: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_rms_cg.tar.gz
14# Source2-md5: a9514a9df32401774c074abec42ffb22
15Source3: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_cmu_us_slt_arctic_hts.tar.gz
16# Source3-md5: a9b53441968f6bc612b85c04bbc4cf0f
17Source4: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_kallpc16k.tar.gz
18# Source4-md5: 3869af78f473b616601cac3fa83cc14e
19Source5: http://www.cstr.ed.ac.uk/downloads/festival/%{version}/festvox_rablpc16k.tar.gz
20# Source5-md5: 34cb2478f5b8fa1ed02f5cbb496c1dcd
7f8236b8 21Patch0: %{name}-config.patch
8a62e766 22Patch1: %{name}-pulse.patch
7f8236b8 23URL: http://www.cstr.ed.ac.uk/projects/festival/
c7250833 24BuildRequires: automake
8a62e766 25BuildRequires: speech_tools-devel >= 2.1-3
7f8236b8 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
1ac140fe
JB
28%ifarch alpha
29%define fostype alpha_Linux
30%else
31%define fostype unknown_Linux
32%endif
33
7f8236b8 34%description
35Festival offers a general framework for building speech synthesis
36systems as well as including examples of various modules. As a whole
37it offers full text to speech through a number APIs: from shell level,
38though a Scheme command interpreter, as a C++ library, from Java, and
39an Emacs interface. Festival is multi-lingual, though English is the
40most advanced.
41
9907578b
JR
42%description -l pl.UTF-8
43Festival jest platformą przeznaczoną do budowania systemów syntezy
44mowy oraz do łatwego testowania różnych modułów składających się na
45syntezator mowy. Można też używać programu jako maszynki czytającej
46pliki tekstowe. Festival jest wielojęzyczny, lecz język angielski jest
7f8236b8 47najbardziej zaawansowany.
48
49%package devel
83b8869d 50Summary: Festival developement environment
3122abc4 51Summary(pl.UTF-8): Festival - środowidko rozwojowe
7f8236b8 52Group: Applications/Sound
53
54%description devel
83b8869d 55Festival developement environment.
7f8236b8 56
9907578b
JR
57%description devel -l pl.UTF-8
58Festival - środowisko rozwojowe.
7f8236b8 59
39a3fd15 60%package voices-english-mbrola-us
6fc03999 61Summary: Festival's files for voices us1, us2, us3
3122abc4 62Summary(pl.UTF-8): Pliki Festival do głosów us1, us2, us3
37e9bd82 63Group: Applications/Sound
6c4db6a8 64Requires: mbrola
39a3fd15 65
66%description voices-english-mbrola-us
6fc03999 67Files needed to use us1, us2, us3 voices from mbrola packages.
39a3fd15 68
9907578b
JR
69%description voices-english-mbrola-us -l pl.UTF-8
70Pliki potrzebne do użycia głosów us1, us2, us3 z pakietu mbrola.
6fc03999 71
72%package voices-english-mbrola-en
73Summary: Festival's files for voice en1
3122abc4 74Summary(pl.UTF-8): Pliki Festival do głosu en1
6fc03999 75Group: Applications/Sound
76Requires: mbrola
77
78%description voices-english-mbrola-en
79Files needed to use en1 voice from mbrola packages.
80
9907578b
JR
81%description voices-english-mbrola-en -l pl.UTF-8
82Pliki potrzebne do użycia głosu en1 z pakietu mbrola.
39a3fd15 83
7f8236b8 84%prep
6a47c71b 85%setup -q -n %{name} -b1 -b2 -b3 -b4 -b5
7f8236b8 86%patch0 -p1
8a62e766
JR
87%patch1 -p1
88
89ln -s %{_libdir}/speech_tools/base_class src/modules/MultiSyn
90ln -s %{_libdir}/speech_tools/config/modules/pulse_audio.mak config/modules
7ff0f027 91
7f8236b8 92%build
7e06206e 93cp -f /usr/share/automake/config.* .
534997ec 94%{__perl} -pi -e 's,^EST=.*,EST=%{_libdir}/speech_tools,' config/config.in
7f8236b8 95%configure2_13
8a62e766 96%{__make} -j1 \
7f8236b8 97 CC="%{__cc}" \
98 CXX="%{__cxx}" \
7ff0f027 99 ECHO_N='printf "%%s"' \
37e9bd82
JB
100 OPTIMISE_CCFLAGS="%{rpmcflags}" \
101 OPTIMISE_CXXFLAGS="%{rpmcflags}" \
102 OPTIMISE_LINK="%{rpmldflags}" \
91a42cc5 103 REQUIRED_LIBDEPS=
37e9bd82 104# REQUIRED_LIBDPES is workaround not to need static speech_tools libraries
7f8236b8 105
7f8236b8 106%install
107rm -rf $RPM_BUILD_ROOT
f375072a 108install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/lib/{voices/english,dicts},%{_libdir},%{_includedir}/%{name},%{_mandir}/man1}
7f8236b8 109
110# bin
111install bin/festival_server* bin/text2wave $RPM_BUILD_ROOT%{_bindir}
112install src/main/festival{,_client} $RPM_BUILD_ROOT%{_bindir}
113
114# devel
115install src/lib/libFestival.a $RPM_BUILD_ROOT%{_libdir}
116install src/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
117
118# data
119cp -r lib config examples $RPM_BUILD_ROOT%{_datadir}/%{name}
120find $RPM_BUILD_ROOT%{_datadir}/%{name} -name Makefile -exec rm \{\} \;
121
122install doc/festival{,_client}.1 $RPM_BUILD_ROOT%{_mandir}/man1
123
124%clean
125rm -rf $RPM_BUILD_ROOT
126
127%files
128%defattr(644,root,root,755)
129%doc ACKNOWLEDGMENTS COPYING NEWS README
130%{_mandir}/man1/*
131%attr(755,root,root) %{_bindir}/*
132%dir %{_datadir}/%{name}
f375072a 133%dir %{_datadir}/%{name}/lib
134%dir %{_datadir}/%{name}/lib/dicts
135%dir %{_datadir}/%{name}/lib/voices
136%dir %{_datadir}/%{name}/lib/voices/english
137%dir %{_datadir}/%{name}/lib/etc
1ac140fe 138%dir %{_datadir}/%{name}/lib/etc/%{fostype}
3bbe6f7a 139# XXX: ELF binary, fix it!
1ac140fe 140%attr(755,root,root) %{_datadir}/%{name}/lib/etc/%{fostype}/audsp
f375072a 141%{_datadir}/%{name}/lib/etc/email_filter
142%{_datadir}/%{name}/lib/*.scm
143%{_datadir}/%{name}/lib/Sable.v0_2.dtd
144%{_datadir}/%{name}/lib/festival.el
145%{_datadir}/%{name}/lib/sable-latin.ent
146%{_datadir}/%{name}/lib/scfg_wsj_wp20.gram
147%{_datadir}/%{name}/lib/sec.*.ngrambin
148%{_datadir}/%{name}/lib/speech.properties
7f8236b8 149%{_datadir}/%{name}/examples
150
151%files devel
152%defattr(644,root,root,755)
153%{_includedir}/%{name}
3bbe6f7a 154%{_libdir}/libFestival.a
1ca0d4f0 155%dir %{_datadir}/%{name}
7f8236b8 156%{_datadir}/%{name}/config
37e9bd82 157
7caec737 158# no mbrola on amd64
159%ifarch %{ix86} ppc alpha sparc
37e9bd82
JB
160%files voices-english-mbrola-us
161%defattr(644,root,root,755)
162%{_datadir}/%{name}/lib/voices/english/us1_mbrola
163%{_datadir}/%{name}/lib/voices/english/us2_mbrola
164%{_datadir}/%{name}/lib/voices/english/us3_mbrola
6fc03999 165
166%files voices-english-mbrola-en
167%defattr(644,root,root,755)
168%{_datadir}/%{name}/lib/voices/english/en1_mbrola
7caec737 169%endif
This page took 0.111022 seconds and 4 git commands to generate.