2 # TODO: do something with *.so and *.h files
4 Summary: Text to speech system
5 Summary(pl.UTF-8): Syntezator mowy
9 License: GPL v3, LGPL v2
10 Group: Applications/Sound
11 Source0: http://tts.polip.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5: 1861f6abcef4ed8be3c0d25190bc54d1
13 URL: http://milena.polip.com/
14 BuildRequires: enca-devel
15 BuildRequires: libao-devel
16 BuildRequires: mbrola-voice-pl
18 Requires: mbrola-voice-pl
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Polish text to speech system.
25 %description -l pl.UTF-8
26 Polski syntezator mowy.
29 Summary: Libraries and header files for milena development
30 Summary(pl.UTF-8): Biblioteki i pliki nagłówkowe dla milena
31 Group: Development/Libraries
34 This is the milena development package.
39 %{__sed} -i 's/export prefix=\/usr\/local/export prefix=$(DESTDIR)\/usr/' Makefile
40 %{__sed} -i 's/export speechd_dir=$(shell .\/find_speechd)/export speechd_dir=$(DESTDIR)$(shell .\/find_speechd)/' Makefile
41 %{__sed} -i 's/ldconfig//' Makefile
46 CFLAGS="%{rpmcflags}" \
48 mbrola=%{_bindir}/mbrola \
49 mbrola_voice=%{_datadir}/festival/lib/voices/polish/pl1_mbrola/pl1/pl1 \
50 speechd=%{_sysconfdir}/speech-dispatcher/modules \
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/milena,%{_libdir},%{_includedir},%{_sysconfdir}/speech-dispatcher/modules}
59 DESTDIR=$RPM_BUILD_ROOT
61 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %attr(755,root,root) %{_bindir}/*
70 %attr(755,root,root) %{_libdir}/libmilena*.so
72 %{_datadir}/milena-words
75 %defattr(644,root,root,755)
76 %{_includedir}/milena*.h