2 # TODO: - rm not needed *.el
4 Summary: Emacspeak - speech output interface to Emacs
5 Summary(pl): Emacspeak - mówiony interfejs wyj¶ciowy dla Emacsa
10 Group: Applications/Sound
11 Source0: http://dl.sorceforge.net/emacspeak/%{name}-%{version}.tar.bz2
12 # Source0-md5: 3ff73f803dd2562018085cecdbdbef83
13 Patch0: %{name}-debian.patch
14 Patch1: %{name}-Makefile.patch
15 Patch2: %{name}-emacspeak.conf.patch
16 Patch3: %{name}-emacspeak.sh.patch
17 Patch4: %{name}-tclsh.patch
18 URL: http://emacspeak.sorceforge.net/
21 BuildRequires: texinfo
22 BuildRequires: perl-base
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 Emacspeak is a speech output system that will allow someone who
29 cannot see to work directly on a UNIX system. Emacspeak is built on
30 top of Emacs. Once you start emacs with emacspeak loaded, you get
31 spoken feedback for everything you do. Your mileage will vary
32 depending on how well you can use Emacs. There is nothing that you
33 cannot do inside Emacs :-). This package includes speech servers
34 written in tcl to support the DECtalk Express and DECtalk MultiVoice
35 speech synthesizers. For other synthesizers, look for separate
36 speech server packages such as emacspeak-ss and eflite.
41 %setup -q -n %{name}-%{version}.0
53 perl -pi-orig -e 's/^\@c\$$Id/@c $$Id/;
55 s/\@setfilename\./@setfilename ./' emacspeak.texi
57 perl -pi-orig -e 's/^\s\{8\}//' tts-server.texi
58 perl -pi-orig -e 's/^ @section/@section/' tts.texi
60 texi2html -monolithic emacspeak.texi
61 for x in emacspeak tts-server tts; do
62 mv $x.texi-orig $x.texi
64 lynx -dump -nolist emacspeak.html > emacspeak.txt
67 rm -rf $RPM_BUILD_ROOT
70 DESTDIR=$RPM_BUILD_ROOT
72 install -D debian/emacspeak.conf $RPM_BUILD_ROOT%{_sysconfdir}/emacspeak.conf
75 rm -rf $RPM_BUILD_ROOT
78 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
81 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
84 %defattr(644,root,root,755)
85 %doc README debian/DOC debian/README.Debian debian/*.html
86 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/emacspeak.conf
87 %attr(755,root,root) %{_bindir}/*
88 %{_emacs_lispdir}/emacspeak
89 %{_infodir}/emacspeak.info*