3 %bcond_without doc # build without documentation
4 %bcond_with clisp # build using clisp instead of sbcl
6 # To build with an unpackaged Common Lisp implementation,
7 # pass --define bootstrap_cl /path/to/lisp/binary to builder.
9 Summary: The Steel Bank Common Lisp development environment
10 Summary(pl.UTF-8): Środowisko programowania Steel Bank Common Lisp
15 Group: Development/Languages
16 Source0: http://dl.sourceforge.net/sbcl/%{name}-%{version}-source.tar.bz2
17 # Source0-md5: 7256bed59a34b0a3efef540711bd3786
18 Patch0: %{name}-home.patch
19 Patch1: %{name}-threads.patch
20 URL: http://sbcl.sourceforge.net/
21 %if %{undefined bootstrap_cl}
29 BuildRequires: tetex-dvips
30 BuildRequires: texinfo-texi2dvi
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Steel Bank Common Lisp (SBCL) is a Open Source development environment
36 for Common Lisp based on CMUCL. It includes an integrated native compiler,
37 interpreter, and debugger.
39 %description -l pl.UTF-8
40 Steel Bank Common Lisp (SBCL) to środowisko programistyczne Open
41 Source dla Common Lispa oparte na CMUCL. Zawiera zintegrowany natywny
42 kompilator, interpreter i debugger.
45 Summary: The Steel Bank Common Lisp documentation (info)
46 Summary(pl.UTF-8): Dokumentacja Steel Bank Common Lisp (info)
47 Group: Development/Languages
50 Documentation of Steel Bank Common Lisp (SBCL) in info format.
52 %description doc-info -l pl.UTF-8
53 Dokumentacja Steel Bank Common Lisp (SBCL) w formacie info.
56 Summary: The Steel Bank Common Lisp documentation (HTML)
57 Summary(pl.UTF-8): Dokumentacja Steel Bank Common Lisp (HTML)
58 Group: Development/Languages
61 Documentation of Steel Bank Common Lisp (SBCL) in HTML format.
63 %description doc-html -l pl.UTF-8
64 Dokumentacja Steel Bank Common Lisp (SBCL) w formacie HTML.
67 Summary: The Steel Bank Common Lisp documentation (PDF)
68 Summary(pl.UTF-8): Dokumentacja Steel Bank Common Lisp (PDF)
69 Group: Development/Languages
72 Documentation of Steel Bank Common Lisp (SBCL) in PDF format.
74 %description doc-pdf -l pl.UTF-8
75 Dokumentacja Steel Bank Common Lisp (SBCL) w formacie PDF.
80 %ifarch %{ix86} %{x8664}
84 %if %{undefined bootstrap_cl}
86 %define bootstrap_cl "clisp"
88 %define bootstrap_cl "sbcl --disable-debugger"
96 export GNUMAKE CC CFLAGS
97 ./make.sh %{bootstrap_cl}
103 rm -rf $RPM_BUILD_ROOT
104 mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} \
105 $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT%{_infodir} \
106 $RPM_BUILD_ROOT/etc/env.d
107 env -u SBCL_HOME INSTALL_ROOT=`pwd`/_install %{_buildshell} ./install.sh
108 mv _install/lib/sbcl $RPM_BUILD_ROOT%{_libdir}/%{name}
109 mv _install/bin/sbcl $RPM_BUILD_ROOT%{_bindir}/%{name}
110 mv _install/share/man/* $RPM_BUILD_ROOT%{_mandir}
112 mv _install/share/info/*.info* $RPM_BUILD_ROOT%{_infodir}
115 echo SBCL_HOME=%{_libdir}/%{name} > $RPM_BUILD_ROOT/etc/env.d/SBCL_HOME
118 rm -rf $RPM_BUILD_ROOT
127 %post doc-info -p /sbin/postshell
128 -/usr/sbin/fix-info-dir -c %{_infodir}
131 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
135 %defattr(644,root,root,755)
136 %doc _install/share/doc/sbcl/[A-Z]*
137 %attr (755,root,root) %{_bindir}/%{name}
140 %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
144 %defattr(644,root,root,755)
148 %defattr(644,root,root,755)
149 %doc _install/share/doc/sbcl/html/*
152 %defattr(644,root,root,755)
153 %doc _install/share/doc/sbcl/*.pdf