]> git.pld-linux.org Git - packages/festival.git/blame - festival.spec
- updated to 2.5.0
[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
87851bfb
JB
5Version: 2.5.0
6Release: 1
7b46f00c 7License: BSD-like (except for festival.el, which is on GPL)
7f8236b8 8Group: Applications/Sound
87851bfb
JB
9Source0: http://www.festvox.org/packed/festival/2.5/%{name}-%{version}-release.tar.gz
10# Source0-md5: 6cc3730fc5175f04d4d2f05e6bbab6b5
7f8236b8 11Patch0: %{name}-config.patch
8a62e766 12Patch1: %{name}-pulse.patch
7f8236b8 13URL: http://www.cstr.ed.ac.uk/projects/festival/
c7250833 14BuildRequires: automake
87851bfb 15BuildRequires: speech_tools-devel >= 2.5
e2e2ae78 16Requires: festival-voice
87851bfb 17Requires: speech_tools >= 2.5
412b14cc 18Suggests: festival-voice-english-slt-cg
7f8236b8 19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
1ac140fe
JB
21%ifarch alpha
22%define fostype alpha_Linux
23%else
24%define fostype unknown_Linux
25%endif
26
7f8236b8 27%description
28Festival offers a general framework for building speech synthesis
29systems as well as including examples of various modules. As a whole
30it offers full text to speech through a number APIs: from shell level,
31though a Scheme command interpreter, as a C++ library, from Java, and
32an Emacs interface. Festival is multi-lingual, though English is the
33most advanced.
34
9907578b
JR
35%description -l pl.UTF-8
36Festival jest platformą przeznaczoną do budowania systemów syntezy
37mowy oraz do łatwego testowania różnych modułów składających się na
38syntezator mowy. Można też używać programu jako maszynki czytającej
39pliki tekstowe. Festival jest wielojęzyczny, lecz język angielski jest
7f8236b8 40najbardziej zaawansowany.
41
42%package devel
83b8869d 43Summary: Festival developement environment
3122abc4 44Summary(pl.UTF-8): Festival - środowidko rozwojowe
7f8236b8 45Group: Applications/Sound
46
47%description devel
83b8869d 48Festival developement environment.
7f8236b8 49
9907578b
JR
50%description devel -l pl.UTF-8
51Festival - środowisko rozwojowe.
7f8236b8 52
53%prep
c42bd0e4 54%setup -q -n %{name}
7f8236b8 55%patch0 -p1
8a62e766
JR
56%patch1 -p1
57
58ln -s %{_libdir}/speech_tools/base_class src/modules/MultiSyn
59ln -s %{_libdir}/speech_tools/config/modules/pulse_audio.mak config/modules
7ff0f027 60
35eda2a1 61# cleanup backups after patching
c42bd0e4 62find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r rm -v
35eda2a1 63
7f8236b8 64%build
7e06206e 65cp -f /usr/share/automake/config.* .
534997ec 66%{__perl} -pi -e 's,^EST=.*,EST=%{_libdir}/speech_tools,' config/config.in
7f8236b8 67%configure2_13
8a62e766 68%{__make} -j1 \
7f8236b8 69 CC="%{__cc}" \
70 CXX="%{__cxx}" \
7ff0f027 71 ECHO_N='printf "%%s"' \
37e9bd82
JB
72 OPTIMISE_CCFLAGS="%{rpmcflags}" \
73 OPTIMISE_CXXFLAGS="%{rpmcflags}" \
74 OPTIMISE_LINK="%{rpmldflags}" \
e2e2ae78 75 REQUIRED_LIBDEPS=
412b14cc 76# REQUIRED_LIBDEPS is workaround not to need static speech_tools libraries
7f8236b8 77
7f8236b8 78%install
79rm -rf $RPM_BUILD_ROOT
f375072a 80install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}/lib/{voices/english,dicts},%{_libdir},%{_includedir}/%{name},%{_mandir}/man1}
7f8236b8 81
82# bin
c42bd0e4
ER
83install -p bin/festival_server* bin/text2wave $RPM_BUILD_ROOT%{_bindir}
84install -p src/main/festival{,_client} $RPM_BUILD_ROOT%{_bindir}
85cp -p doc/festival*.1 $RPM_BUILD_ROOT%{_mandir}/man1
7f8236b8 86
87# devel
c42bd0e4
ER
88cp -p src/lib/libFestival.a $RPM_BUILD_ROOT%{_libdir}
89cp -p src/include/*.h $RPM_BUILD_ROOT%{_includedir}/%{name}
7f8236b8 90
91# data
c42bd0e4
ER
92cp -a lib config examples $RPM_BUILD_ROOT%{_datadir}/%{name}
93%{__rm} $RPM_BUILD_ROOT%{_datadir}/festival/lib/etc/unknown_Linux/.made
94find $RPM_BUILD_ROOT%{_datadir}/%{name} -name Makefile | xargs rm -v
7f8236b8 95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%files
100%defattr(644,root,root,755)
87851bfb 101%doc ACKNOWLEDGMENTS COPYING NEWS README.md
412b14cc
JB
102%attr(755,root,root) %{_bindir}/festival
103%attr(755,root,root) %{_bindir}/festival_client
104%attr(755,root,root) %{_bindir}/festival_server
105%attr(755,root,root) %{_bindir}/festival_server_control
106%attr(755,root,root) %{_bindir}/text2wave
107%{_mandir}/man1/festival.1*
108%{_mandir}/man1/festival_client.1*
7f8236b8 109%dir %{_datadir}/%{name}
412b14cc 110%{_datadir}/%{name}/examples
f375072a 111%dir %{_datadir}/%{name}/lib
d9bb0acc 112%{_datadir}/%{name}/lib/VCLocalRules
f375072a 113%{_datadir}/%{name}/lib/festival.el
114%{_datadir}/%{name}/lib/sable-latin.ent
115%{_datadir}/%{name}/lib/scfg_wsj_wp20.gram
116%{_datadir}/%{name}/lib/sec.*.ngrambin
117%{_datadir}/%{name}/lib/speech.properties
412b14cc
JB
118%{_datadir}/%{name}/lib/*.dtd
119%{_datadir}/%{name}/lib/*.scm
120%dir %{_datadir}/%{name}/lib/etc
121%{_datadir}/%{name}/lib/etc/email_filter
122%dir %{_datadir}/%{name}/lib/etc/%{fostype}
123# XXX: ELF binary, fix it!
124%attr(755,root,root) %{_datadir}/%{name}/lib/etc/%{fostype}/audsp
125%dir %{_datadir}/%{name}/lib/multisyn
d9bb0acc 126%{_datadir}/%{name}/lib/multisyn/*.scm
412b14cc
JB
127# directories for festival data
128%dir %{_datadir}/%{name}/lib/dicts
7f8236b8 129
130%files devel
131%defattr(644,root,root,755)
3bbe6f7a 132%{_libdir}/libFestival.a
412b14cc 133%{_includedir}/%{name}
1ca0d4f0 134%dir %{_datadir}/%{name}
7f8236b8 135%{_datadir}/%{name}/config
This page took 0.138618 seconds and 4 git commands to generate.