]> git.pld-linux.org Git - packages/festival.git/blame - festival.spec
- release 7
[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
00b46de2 5Version: 1.4.4
5e760c92 6%define rel 7
00b46de2 7%define _snap 20030803
ef6685df 8Release: 0.%{_snap}.%{rel}
7b46f00c 9License: BSD-like (except for festival.el, which is on GPL)
7f8236b8 10Group: Applications/Sound
00b46de2
PS
11#Source0: http://www.cstr.ed.ac.uk/download/festival/%{version}/%{name}-%{version}-release.tar.gz
12Source0: http://www.festvox.org/packed/festival/latest/festival-%{version}-current%{_snap}.tar.gz
13# Source0-md5: ffaa7533b3f50791aabfbf1cee09ca85
39a3fd15 14Source1: http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_us1.tar.gz
a6a49c4b 15# Source1-md5: d0c3e727003e715a65daf01003101813
39a3fd15 16Source2: http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_us2.tar.gz
a6a49c4b 17# Source2-md5: fbcc8baacbff3aa2aaaf5a93701bb5e0
39a3fd15 18Source3: http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_us3.tar.gz
a6a49c4b 19# Source3-md5: 06dbfe2edaab6ffa31deeaf522e0c33e
6fc03999 20Source4: http://www.cstr.ed.ac.uk/download/festival/%{version}/festvox_en1.tar.gz
a6a49c4b 21# Source4-md5: 66e3bc07751d7e31826185649c5ada5a
7f8236b8 22Patch0: %{name}-config.patch
315b0d23 23Patch1: %{name}-asterisk.patch
8cea2f0b 24Patch2: %{name}-gcc4.patch
7f8236b8 25URL: http://www.cstr.ed.ac.uk/projects/festival/
c7250833 26BuildRequires: automake
37e9bd82 27BuildRequires: speech_tools-devel
7f8236b8 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
1ac140fe
JB
30%ifarch alpha
31%define fostype alpha_Linux
32%else
33%define fostype unknown_Linux
34%endif
35
7f8236b8 36%description
37Festival offers a general framework for building speech synthesis
38systems as well as including examples of various modules. As a whole
39it offers full text to speech through a number APIs: from shell level,
40though a Scheme command interpreter, as a C++ library, from Java, and
41an Emacs interface. Festival is multi-lingual, though English is the
42most advanced.
43
9907578b
JR
44%description -l pl.UTF-8
45Festival jest platformą przeznaczoną do budowania systemów syntezy
46mowy oraz do łatwego testowania różnych modułów składających się na
47syntezator mowy. Można też używać programu jako maszynki czytającej
48pliki tekstowe. Festival jest wielojęzyczny, lecz język angielski jest
7f8236b8 49najbardziej zaawansowany.
50
51%package devel
83b8869d 52Summary: Festival developement environment
3122abc4 53Summary(pl.UTF-8): Festival - środowidko rozwojowe
7f8236b8 54Group: Applications/Sound
55
56%description devel
83b8869d 57Festival developement environment.
7f8236b8 58
9907578b
JR
59%description devel -l pl.UTF-8
60Festival - środowisko rozwojowe.
7f8236b8 61
39a3fd15 62%package voices-english-mbrola-us
6fc03999 63Summary: Festival's files for voices us1, us2, us3
3122abc4 64Summary(pl.UTF-8): Pliki Festival do głosów us1, us2, us3
37e9bd82 65Group: Applications/Sound
6c4db6a8 66Requires: mbrola
39a3fd15 67
68%description voices-english-mbrola-us
6fc03999 69Files needed to use us1, us2, us3 voices from mbrola packages.
39a3fd15 70
9907578b
JR
71%description voices-english-mbrola-us -l pl.UTF-8
72Pliki potrzebne do użycia głosów us1, us2, us3 z pakietu mbrola.
6fc03999 73
74%package voices-english-mbrola-en
75Summary: Festival's files for voice en1
3122abc4 76Summary(pl.UTF-8): Pliki Festival do głosu en1
6fc03999 77Group: Applications/Sound
78Requires: mbrola
79
80%description voices-english-mbrola-en
81Files needed to use en1 voice from mbrola packages.
82
9907578b
JR
83%description voices-english-mbrola-en -l pl.UTF-8
84Pliki potrzebne do użycia głosu en1 z pakietu mbrola.
39a3fd15 85
7f8236b8 86%prep
6fc03999 87%setup -q -n %{name} -b1 -b2 -b3 -b4
7f8236b8 88%patch0 -p1
315b0d23 89%patch1 -p1
8cea2f0b 90%patch2 -p1
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
96%{__make} \
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.146011 seconds and 4 git commands to generate.