fix install section (from Fedora) [release 60.0-2mamba;Fri May 24 2024]

This commit is contained in:
Silvan Calarco 2024-05-25 00:13:52 +02:00
parent a27642dbe5
commit f8a6a63d9f

View File

@ -1,5 +1,5 @@
Name: emacspeak Name: emacspeak
Version: 59.0 Version: 60.0
Release: 2mamba Release: 2mamba
Summary: Emacspeak speech-enables Emacs to turn Emacs into a complete audio desktop Summary: Emacspeak speech-enables Emacs to turn Emacs into a complete audio desktop
Group: System/Multimedia Group: System/Multimedia
@ -11,7 +11,6 @@ Source: https://github.com/tvraman/emacspeak/releases/download/%{version}
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libalsa-devel
BuildRequires: libespeak-ng-devel BuildRequires: libespeak-ng-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libperl BuildRequires: libperl
@ -32,8 +31,6 @@ Emacspeak speech-enables Emacs to turn Emacs into a complete audio desktop.
%prep %prep
%setup -q %setup -q
sed -i "s|-m32||" servers/linux-outloud/Makefile sed -i "s|-m32||" servers/linux-outloud/Makefile
sed -i "s|^#!/usr/bin/tcl$|#!/usr/bin/tclsh|" servers/ssh-espeak
sed -i "s|^#!/usr/local/bin/perl|#!/usr/bin/perl|" utils/*.pl
rm -f lisp/sudoku.el rm -f lisp/sudoku.el
# remove prebuilt x86_64 binary # remove prebuilt x86_64 binary
rm -f etc/pickup-c/pickup rm -f etc/pickup-c/pickup
@ -47,20 +44,53 @@ make -C etc/pickup-c/
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_libdir}/emacspeak
cp -a * %{buildroot}%{_libdir}/emacspeak/
rm -f %{buildroot}%{_infodir}/turning-twenty.info* 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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/emacspeak
%dir %{_libdir}/emacspeak %dir %{_libdir}/emacspeak
%{_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 %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 * Wed Feb 28 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 59.0-2mamba
- fix requirements for /usr/local/bin/perl - fix requirements for /usr/local/bin/perl