3 %bcond_with arts # aRts support
4 %bcond_with esd # EsounD support
6 Summary: Text to speech system
7 Summary(pl.UTF-8): Syntezator mowy
12 Group: Applications/Sound
13 Source0: http://www.rivendell.eu.org/%{name}-%{version}.tgz
14 # Source0-md5: e41665cc88c096473d48ff2fd32c4646
15 Patch0: %{name}-dsp-handle-fix.patch
16 Patch1: %{name}-Makefile.patch
17 %{?with_arts:BuildRequires: artsc-devel}
18 %{?with_esd:BuildRequires: esound-devel}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Polish text to speech system based on rsynth.
24 %description -l pl.UTF-8
25 Polski syntezator mowy stworzony na podstawie rsynth.
33 %{__make} -f Makefile_plain \
35 CFLAGS="%{rpmcflags} %{rpmcppflags} %{?with_arts:`artsc-config --cflags`}" \
36 OPTDEFS="%{?with_arts:-DUSE_ARTS=1} %{?with_esd:-DUSE_ESD=1}" \
37 OPTLIBS="%{?with_arts:`artsc-config --libs`} %{?with_esd:-lesd}"
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_bindir},%{_examplesdir}/%{name}-%{version}}
43 install %{name} $RPM_BUILD_ROOT%{_bindir}
44 tail -n +3 <pars.def >$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/sayrc.example
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
51 %attr(755,root,root) %{_bindir}/powiedz
52 %{_examplesdir}/%{name}-%{version}