Package emacspeak: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | %define _unpackaged_files_terminate_build 1 %define _emacspeakdir %_datadir/emacs/site-lisp/emacspeak Name: emacspeak Version: 50.0 Release: alt1 Summary: Speech output interface to Emacs. License: GPLv2+ and BSD Group: Accessibility Url: http://emacspeak.sourceforge.net # https://github.com/tvraman/emacspeak Source0: %name-%version.tar Source1: %name-profile.sh Source2: %name.conf Source3: enable-%name Patch0: %name-alt-langswitch.patch Patch1: %name-alt-lisp.patch Requires: voiceman BuildRequires: emacs26-speedbar BuildRequires: emacs26-erc BuildRequires: gcc-c++ BuildRequires: libalsa-devel BuildRequires: tcl-devel BuildRequires: makeinfo BuildRequires: perl-libwww BuildRequires: perl-HTML-TableExtract %description Emacspeak is a speech interface that allows visually impaired users to interact independently and efficiently with the computer. %prep %setup %patch0 -p1 %patch1 -p1 %build make config SRC=`pwd` make make -C servers/linux-outloud makeinfo -o info/ info/emacspeak.texi %install install -d %buildroot%_datadir/emacs/site-lisp install -d %buildroot%_emacspeakdir install -d %buildroot%_emacspeakdir/lisp install -d %buildroot%_emacspeakdir/lisp/g-client install -d %buildroot%_emacspeakdir/etc install -d %buildroot%_emacspeakdir/xsl install -d %buildroot%_emacspeakdir/sounds install -d %buildroot%_emacspeakdir/servers install -d %buildroot%_emacspeakdir/servers/linux-outloud install -d %buildroot%_libdir/%name/servers install -d %buildroot%_libdir/%name/servers/linux-outloud install -d %buildroot%_bindir install -d %buildroot%_sysconfdir/profile.d install -d %buildroot%_emacspeakdir/etc/forms install -d %buildroot%_emacspeakdir/etc/tables install -m 0644 lisp/*.el lisp/*.elc %buildroot%_emacspeakdir/lisp install -m 0644 lisp/g-client/*.el lisp/g-client/*.elc lisp/g-client/*.xsl \ %buildroot%_emacspeakdir/lisp/g-client cp -f etc/*.pl etc/*.sh etc/cbox* etc/pdf2text etc/cal2text etc/emacspeak.xpm \ etc/emacspeak.jpg %buildroot%_emacspeakdir/etc install -m 0644 xsl/*.xsl %buildroot%_emacspeakdir/xsl cp -fR sounds/classic sounds/pan-chimes sounds/3d \ %buildroot%_emacspeakdir/sounds install -m 0755 servers/.servers servers/espeak \ servers/speech-server servers/log-* \ servers/cloud* servers/ssh-* %buildroot%_emacspeakdir/servers install -m 0755 servers/linux-outloud/asoundrc \ servers/linux-outloud/*.cpp \ servers/linux-outloud/*.h \ servers/linux-outloud/eci.ini \ %buildroot%_emacspeakdir/servers/linux-outloud install -m 0755 servers/linux-outloud/atcleci.so \ %buildroot%_libdir/%name/servers/linux-outloud install -m 0755 %SOURCE1 %buildroot%_sysconfdir/profile.d/%name.sh install -m 0755 %SOURCE2 %buildroot%_sysconfdir/%name.conf install -m 0755 %SOURCE3 %buildroot%_bindir/enable-%name cp -fR media %buildroot%_emacspeakdir/media rm -f %buildroot%_emacspeakdir/media/.nosearch \ %buildroot%_emacspeakdir/media/*/.nosearch \ %buildroot%_emacspeakdir/sounds/*/.nosearch install -m 0644 etc/forms/*.el %buildroot%_emacspeakdir/etc/forms install -m 0644 etc/tables/*.tab %buildroot%_emacspeakdir/etc/tables install -m 0755 etc/%name.sh %buildroot%_bindir/%name %post chmod -R go+rX %_emacspeakdir/sounds chmod -R go+rX %_emacspeakdir/media %files %doc README* info/*info* %_bindir/%name %_bindir/enable-%name %_libdir/%name/servers/linux-outloud/*.so %_emacspeakdir/* %config %_sysconfdir/profile.d/* %config(noreplace) %_sysconfdir/%name.conf %changelog * Mon Jul 08 2019 Andrey Bychkov <mrdrew@altlinux.org> 50.0-alt1 - Build new version 50.0 |