emacspeak/emacspeak.spec

129 lines
4.0 KiB
RPMSpec

Name: emacspeak
Version: 60.0
Release: 2mamba
Summary: Emacspeak speech-enables Emacs to turn Emacs into a complete audio desktop
Group: System/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://emacspeak.sourceforge.net/
Source: https://github.com/tvraman/emacspeak/releases/download/%{version}/emacspeak-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libespeak-ng-devel
BuildRequires: libgcc
BuildRequires: libperl
BuildRequires: libstdc++6-devel
BuildRequires: libtcl-devel
BuildRequires: perl-HTML-TableExtract
BuildRequires: perl-devel
BuildRequires: perl-libwww
## AUTOBUILDREQ-END
Requires(post):%{__install_info}
BuildRequires: emacs-nox
%description
Emacspeak speech-enables Emacs to turn Emacs into a complete audio desktop.
%debug_package
%prep
%setup -q
sed -i "s|-m32||" servers/linux-outloud/Makefile
rm -f lisp/sudoku.el
# remove prebuilt x86_64 binary
rm -f etc/pickup-c/pickup
%build
make config
#:<< _EOF
%make
%make espeak outloud
make -C etc/pickup-c/
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/emacspeak
cp -pr bash-utils etc lisp media servers sounds stumpwm xsl %{buildroot}%{_datadir}/emacs/site-lisp/emacspeak/
make -C servers/native-espeak install LIBPARENTDIR=%{buildroot}%{_libdir}
ln -sf %{_libdir}/emacspeak/servers/native-espeak/tclespeak.so %{buildroot}%{_datadir}/emacs/site-lisp/emacspeak/servers/native-espeak/
mkdir -p %{buildroot}%{_bindir}
sed -e "s/FLAVOR/emacs/" -e "s!ELCDIR!%{_datadir}/emacs/site-lisp/emacspeak!" etc/emacspeak.sh > %{buildroot}%{_bindir}/emacspeak
chmod 0755 %{buildroot}%{_bindir}/emacspeak
mkdir -p %{buildroot}%{_infodir}
cp -p info/*.info* %{buildroot}%{_infodir}
# remove unwanted data files
( cd %{buildroot}%{_datadir}/emacs/site-lisp/emacspeak
rm etc/bootstrap.sh
rm -r etc/pickup-c
rm -r servers/*outloud*
rm servers/mac
rm servers/native-espeak/tclespeak.{cpp,o}
rm etc/COPYRIGHT
chmod a-x servers/.servers servers/tts-lib.tcl
find \( -name .nosearch -o -name Makefile \) -delete
)
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/emacspeak
%dir %{_libdir}/emacspeak
%{_libdir}/emacspeak/*
%dir %{_datadir}/emacs/site-lisp/emacspeak
%{_datadir}/emacs/site-lisp/emacspeak/*
%{_infodir}/emacspeak.info*
%{_infodir}/introducing-emacspeak.info*
%{_infodir}/turning-twenty.info*
%changelog
* Fri May 24 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 60.0-2mamba
- fix install section (from Fedora)
* Tue May 21 2024 Automatic Build System <autodist@openmamba.org> 60.0-1mamba
- automatic version update by autodist
* Wed Feb 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 59.0-2mamba
- fix requirements for /usr/local/bin/perl
* Mon Feb 12 2024 Automatic Build System <autodist@openmamba.org> 59.0-1mamba
- automatic version update by autodist
* Wed Sep 13 2023 Automatic Build System <autodist@mambasoft.it> 58.0-1mamba
- automatic version update by autodist
* Sun May 08 2022 Automatic Build System <autodist@mambasoft.it> 56.0-1mamba
- automatic version update by autodist
* Mon Jan 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 55.0-2mamba
- fix prebuilt x86_64 binary installed
* Tue Jan 11 2022 Automatic Build System <autodist@mambasoft.it> 55.0-1mamba
- automatic version update by autodist
* Sun Jul 25 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 54.0-1mamba
- update to 54.0
* Fri Feb 05 2021 Automatic Build System <autodist@mambasoft.it> 53.0-1mamba
- automatic version update by autodist
* Sun May 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 52.0-2mamba
- fix /usr/bin/tcl shebang in servers/ssh-espeak
* Sun May 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 52.0-1mamba
- update to 52.0
* Mon Oct 17 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 44.0-1mamba
- update to 44.0
* Tue Sep 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 30.0-1mamba
- package created by autospec