Репозиторий Sisyphus
Последнее обновление: 13 апреля 2021 | Пакетов: 17839 | Посещений: 20707193
en ru br
Репозитории ALT
S:50.0-alt1
5.1: 26.0-alt5.M51.1
4.1: 26.0-alt2.M41.1
4.0: 23.0-alt1
3.0: 19.0-alt2
www.altlinux.org/Changes

Группа :: Доступность
Пакет: emacspeak

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_with libtool15
%define _emacspeakdir %_emacslispdir/%name

Name: emacspeak
Version: 35.0
Release: alt2

License: GPL
Group: Accessibility
Summary: emacspeak - The Complete Audio Desktop with GNU/Emacs
Url: http://emacspeak.sourceforge.net
Packager: Emacs Maintainers Team <emacs at packages.altlinux.org>

Requires: emacs-common emacsen-startscripts emacs-gnus voiceman

BuildRequires: emacs-devel emacs23-common emacs23-leim emacs23-gnus
BuildRequires: gcc-c++
BuildRequires: tcl-devel
BuildRequires: perl-libwww perl-HTML-TableExtract
BuildRequires: libalsa-devel libespeak-devel
%if_with libtool15
BuildRequires: libtool_1.5
%endif

Source: %name-%version.tar.gz
Source1: site-start.el
Source2: profile.sh
Source3: %name-script

Patch1: emacspeak-34.0-alt.patch
Patch2: emacspeak-34.0-alt-cyrillic.patch
Patch3: emacspeak-34.0-alt-unspeakable.patch
Patch4: emacspeak-34.0-alt-shell-command-output.patch

%package servers
Group: Accessibility
Summary: Speech servers for the emacspeak
Requires: %name = %version-%release

%description
Emacspeak is a speech interface that allows visually impaired users to
interact independently and efficiently with the computer. Available free of
cost on the Internet, Emacspeak has dramatically changed how the author and
hundreds of blind and visually impaired users around the world interact with
the personal computer and the Internet. A rich suite of task-oriented
speech-enabled tools provides efficient speech-enabled access to the evolving
semantic WWW. When combined with Linux running on low-cost PC hardware,
Emacspeak/Linux provides a reliable, stable speech-friendly solution that
opens up the Internet to visually impaired users around the world.

%description servers
The espeak and outloud speech servers for %name from its original distribution.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%__subst 's:\$servers/linux-espeak:%_libdir/%name/linux-espeak:' servers/espeak
%__subst 's:\$servers/linux-outloud:%_libdir/%name/linux-outloud:' servers/outloud

%build
%if_with libtool15
export LIBTOOL_VERSION=1.5
%endif
make config SRC=`pwd`
make emacspeak prefix=%_prefix
cd servers/linux-outloud
make
cd ../linux-espeak
make
cd ../..
cd info
make info
make htm
cd ..

%install
make prefix=%buildroot%prefix install

#Config file installation;

%__install -d -m755 %buildroot%_emacs_sitestart_dir
%__install -pD -m 644 %SOURCE1 %buildroot%_emacs_sitestart_dir/emacspeak.el
%__install -pD -m 755 %SOURCE2 %buildroot/%_sysconfdir/profile.d/emacspeak.sh

#Speech servers;

%__install -d -m755 %buildroot%_libdir/%name
%__install -pD -m644 servers/linux-espeak/tclespeak.so %buildroot%_libdir/%name/linux-espeak/tclespeak.so
%__install -d -m755 %buildroot%_libdir/%name/linux-outloud
%__cp \
servers/linux-outloud/ALSA \
servers/linux-outloud/asoundrc \
servers/linux-outloud/atcleci.so \
servers/linux-outloud/eci.ini \
servers/linux-outloud/VIAVOICE \
%buildroot%_libdir/%name/linux-outloud/
%__rm -rf %buildroot%_emacspeakdir/servers
%__mkdir -p %buildroot%_emacspeakdir/servers

cat <<EOF > %buildroot%_emacspeakdir/servers/.servers
espeak
outloud
EOF

%__cp servers/espeak servers/outloud %buildroot%_emacspeakdir/servers/

# remove unneeded files

%__rm -rf %buildroot%_emacslispdir/emacspeak/user-guide
%__rm -rf %buildroot%_emacslispdir/emacspeak/install-guide
%__rm %buildroot%_emacslispdir/emacspeak/etc/NEWS*
%__rm %buildroot%_emacslispdir/emacspeak/etc/*.html
%__rm %buildroot%_emacslispdir/emacspeak/etc/emacspeak.*
%__rm %buildroot%_emacslispdir/emacspeak/etc/FAQ
%__rm %buildroot%_emacslispdir/emacspeak/etc/HELP
%__rm %buildroot%_emacslispdir/emacspeak/etc/COPYRIGHT
%__subst 's!%buildroot!!' %buildroot/usr/bin/emacspeak

# Removing since it uses rsh in script;

%__rm -f %buildroot%_emacspeakdir/etc/remote.txt
%__rm -f %buildroot%_emacspeakdir/servers/remote-tcl

%__install -pD -m755 %SOURCE3 %buildroot%_bindir/%name

%files
%doc install-guide user-guide info/html
%doc etc/NEWS* etc/*.html etc/emacspeak.* etc/FAQ etc/HELP etc/COPYRIGHT
%_bindir/*
%config(noreplace) %_emacs_sitestart_dir/*
%config %_sysconfdir/profile.d/*
%dir %_emacspeakdir
%_emacspeakdir/etc
%_emacspeakdir/js
%_emacspeakdir/lisp
%_emacspeakdir/realaudio
#%_emacspeakdir/sawfish
%_emacspeakdir/shoutcast
%_emacspeakdir/sounds
%_emacspeakdir/xsl
%dir %_emacspeakdir/servers
%_emacspeakdir/servers/.servers
%_infodir/*

%files servers
%_emacspeakdir/servers/espeak
%_emacspeakdir/servers/outloud
%_libdir/%name

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin