1 Summary: Unix shell embedded within Scheme
2 Summary(pl.UTF-8): Uniksowa powłoka osadzona w Scheme
7 Group: Applications/Shells
8 #Source0Download: https://scsh.net/download/download.html
9 Source0: https://ftp.scsh.net/pub/scsh/0.6/%{name}-%{version}.tar.gz
10 # Source0-md5: 69c88ca86a8aaaf0f87d253b99d339b5
11 Patch0: %{name}-build.patch
12 Patch1: %{name}-link.patch
13 URL: https://scsh.net/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: rpmbuild(macros) >= 1.213
17 Requires(post,preun): grep
18 Requires(preun): fileutils
19 ExcludeArch: %{x8664} alpha ia64 ppc64 s390x sparc64
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Scsh is a variant of Scheme 48 (an R5RS compliant new-tech Scheme
26 system). Scsh is designed for writing real-life standalone Unix
27 programs and shell scripts. Scsh spans a wide range of application,
28 from "script" applications usually handled with perl or sh, to more
29 standard systems applications usually written in C.
31 %description -l pl.UTF-8
32 scsh to odmiana Scheme 48 (systemu new-tech Scheme zgodnego z R5RS).
33 scsh zostął zaprojektowany do pisania rzeczywistych, samodzielnych
34 programów i skryptów powłoki pod Uniksem. scsh obejmuje szeroki zakres
35 zastosowań, od aplikacji "skryptowych" zwykle obsługiwanych przy
36 pomocy Perla lub sh do bardziej standardowych aplikacji systemowych
40 Summary: Development scsh files
41 Summary(pl.UTF-8): Programistyczne pliki scsh
42 Group: Development/Libraries
45 Unix shell embedded within Scheme - development files.
47 %description devel -l pl.UTF-8
48 Pliki programistyczne scsh - uniksowej powłoki osadzonej w Scheme.
56 cp -f /usr/share/automake/config.sub .
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{doc,env},%{_includedir},%{_mandir}/man1}
66 DESTDIR=$RPM_BUILD_ROOT
68 %{__mv} $RPM_BUILD_ROOT%{_libdir}/%{name}/*.a $RPM_BUILD_ROOT%{_libdir}
70 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{name}/doc
73 rm -rf $RPM_BUILD_ROOT
77 if [ ! -f /etc/shells ]; then
78 echo "%{_bindir}/scsh" >> /etc/shells
80 grep -q '^%{_bindir}/scsh$' /etc/shells || echo "%{_bindir}/scsh" >> /etc/shells
84 if [ "$1" = "0" ]; then
86 grep -v '^%{_bindir}/scsh$' /etc/shells > /etc/shells.new
87 mv -f /etc/shells.new /etc/shells
91 %defattr(644,root,root,755)
92 %doc doc/*/html/* doc/*.txt
93 %attr(755,root,root) %{_bindir}/scsh
104 %{_libdir}/scsh/*.image
105 %attr(755,root,root) %{_libdir}/scsh/scshvm
106 %{_mandir}/man1/scsh.1*
109 %defattr(644,root,root,755)
110 %{_includedir}/scheme48.h
111 %{_includedir}/write-barrier.h
113 %{_libdir}/libscshvm.a