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