]>
Commit | Line | Data |
---|---|---|
535364a4 | 1 | # NOTE: tests >100 processes, so ensure proper ulimit |
8e4ff5ca | 2 | # |
3 | # Conditional build: | |
4 | %bcond_without doc # build without documentation | |
5 | %bcond_with clisp # build using clisp instead of sbcl | |
6 | # | |
e22d414a | 7 | # To build with an unpackaged Common Lisp implementation, |
8 | # pass --define bootstrap_cl /path/to/lisp/binary to builder. | |
9 | # | |
6114c569 | 10 | Summary: The Steel Bank Common Lisp development environment |
18060869 | 11 | Summary(pl.UTF-8): Środowisko programowania Steel Bank Common Lisp |
6114c569 | 12 | Name: sbcl |
535364a4 | 13 | Version: 1.3.10 |
d117b6ac | 14 | Release: 1 |
6114c569 | 15 | License: MIT |
16 | Group: Development/Languages | |
c7dd8c2f | 17 | Source0: http://download.sourceforge.net/sbcl/%{name}-%{version}-source.tar.bz2 |
535364a4 JB |
18 | # Source0-md5: c8bd43e149109127651a6917976dda4a |
19 | Source10: http://download.sourceforge.net/sbcl/sbcl-1.2.7-x86-linux-binary.tar.bz2 | |
20 | # Source10-md5: f6a1b2137fbc74b4a8aaf338643f4ae2 | |
21 | Source11: http://download.sourceforge.net/sbcl/sbcl-1.3.10-x86-64-linux-binary.tar.bz2 | |
22 | # Source11-md5: 56fe67f916ccdd84e7b739d0a731cf9f | |
23 | # TODO (portability) - also available: | |
24 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.3.10-arm64-linux-binary.tar.bz2 | |
25 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.3.9-armhf-linux-binary.tar.bz2 | |
26 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.2.7-armel-linux-binary.tar.bz2 | |
27 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.2.7-powerpc-linux-binary.tar.bz2 | |
28 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.0.23-mips-linux-binary.tar.bz2 | |
29 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.0.28-mipsel-linux-binary.tar.bz2 | |
30 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.0.28-alpha-linux-binary.tar.bz2 | |
31 | #SourceXX: http://download.sourceforge.net/sbcl/sbcl-1.0.28-sparc-linux-binary.tar.bz2 | |
9edfda11 | 32 | Patch0: %{name}-tests.patch |
e6c34555 | 33 | Patch1: %{name}-threads.patch |
535364a4 | 34 | Patch2: %{name}-info.patch |
185e16eb | 35 | URL: http://sbcl.sourceforge.net/ |
c7dd8c2f | 36 | %{?with_clisp:BuildRequires: clisp} |
8e4ff5ca | 37 | %if %{with doc} |
38 | BuildRequires: tetex-dvips | |
39 | BuildRequires: texinfo-texi2dvi | |
40 | %endif | |
535364a4 JB |
41 | %if %{without clisp} |
42 | %{!?bootstrap_cl:ExclusiveArch: %{ix86} %{x8664}} | |
43 | # also: %{arm} aarch64 alpha mips mipsel ppc sparc | |
44 | %endif | |
6114c569 | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
46 | ||
47 | %description | |
48 | Steel Bank Common Lisp (SBCL) is a Open Source development environment | |
535364a4 JB |
49 | for Common Lisp based on CMUCL. It includes an integrated native |
50 | compiler, interpreter, and debugger. | |
6114c569 | 51 | |
e072deaa JR |
52 | %description -l pl.UTF-8 |
53 | Steel Bank Common Lisp (SBCL) to środowisko programistyczne Open | |
b68b5ff6 JB |
54 | Source dla Common Lispa oparte na CMUCL. Zawiera zintegrowany natywny |
55 | kompilator, interpreter i debugger. | |
6114c569 | 56 | |
33b06ddc | 57 | %package doc-info |
58 | Summary: The Steel Bank Common Lisp documentation (info) | |
18060869 | 59 | Summary(pl.UTF-8): Dokumentacja Steel Bank Common Lisp (info) |
33b06ddc | 60 | Group: Development/Languages |
61 | ||
62 | %description doc-info | |
63 | Documentation of Steel Bank Common Lisp (SBCL) in info format. | |
64 | ||
e072deaa | 65 | %description doc-info -l pl.UTF-8 |
33b06ddc | 66 | Dokumentacja Steel Bank Common Lisp (SBCL) w formacie info. |
67 | ||
68 | %package doc-html | |
69 | Summary: The Steel Bank Common Lisp documentation (HTML) | |
18060869 | 70 | Summary(pl.UTF-8): Dokumentacja Steel Bank Common Lisp (HTML) |
33b06ddc | 71 | Group: Development/Languages |
72 | ||
73 | %description doc-html | |
74 | Documentation of Steel Bank Common Lisp (SBCL) in HTML format. | |
75 | ||
e072deaa | 76 | %description doc-html -l pl.UTF-8 |
33b06ddc | 77 | Dokumentacja Steel Bank Common Lisp (SBCL) w formacie HTML. |
78 | ||
79 | %package doc-pdf | |
80 | Summary: The Steel Bank Common Lisp documentation (PDF) | |
18060869 | 81 | Summary(pl.UTF-8): Dokumentacja Steel Bank Common Lisp (PDF) |
33b06ddc | 82 | Group: Development/Languages |
83 | ||
84 | %description doc-pdf | |
85 | Documentation of Steel Bank Common Lisp (SBCL) in PDF format. | |
86 | ||
e072deaa | 87 | %description doc-pdf -l pl.UTF-8 |
33b06ddc | 88 | Dokumentacja Steel Bank Common Lisp (SBCL) w formacie PDF. |
89 | ||
6114c569 | 90 | %prep |
c7dd8c2f JR |
91 | %ifarch %{ix86} |
92 | %setup -q -a 10 | |
93 | %endif | |
94 | %ifarch %{x8664} | |
95 | %setup -q -a 11 | |
96 | %endif | |
9edfda11 | 97 | %patch0 -p1 |
e6c34555 | 98 | %ifarch %{ix86} %{x8664} |
99 | %patch1 -p1 | |
100 | %endif | |
2f19d43a | 101 | %patch2 -p1 |
6114c569 | 102 | |
c7dd8c2f JR |
103 | mkdir sbcl-bootstrap |
104 | cd sbcl-*-linux | |
105 | INSTALL_ROOT=`pwd`/../sbcl-bootstrap sh ./install.sh | |
106 | cd - | |
107 | ||
108 | # clean.sh is so stupid it removed sbcl-bootstrap contents | |
109 | %{__mv} clean.sh clean.sh.orig | |
110 | echo "#!/bin/sh" >clean.sh | |
111 | chmod 755 clean.sh | |
112 | ||
8e4ff5ca | 113 | %if %{with clisp} |
114 | %define bootstrap_cl "clisp" | |
e22d414a | 115 | %endif |
8e4ff5ca | 116 | |
6114c569 | 117 | %build |
535364a4 JB |
118 | export GNUMAKE="make" |
119 | export CC="%{__cc}" | |
120 | export CFLAGS="%{rpmcflags}" | |
c7dd8c2f JR |
121 | export SBCL_HOME=`pwd`/sbcl-bootstrap/lib/sbcl |
122 | export PATH=`pwd`/sbcl-bootstrap/bin:${PATH} | |
123 | ./make.sh \ | |
124 | --prefix=%{_prefix} \ | |
125 | %{?bootstrap_cl} | |
126 | ||
8e4ff5ca | 127 | %if %{with doc} |
535364a4 | 128 | %{__make} -C doc/manual -j1 |
8e4ff5ca | 129 | %endif |
6114c569 | 130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
c7dd8c2f JR |
133 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir},%{_infodir}} \ |
134 | $RPM_BUILD_ROOT/etc/env.d | |
135 | ||
e22d414a | 136 | env -u SBCL_HOME INSTALL_ROOT=`pwd`/_install %{_buildshell} ./install.sh |
c7dd8c2f JR |
137 | |
138 | %{__mv} _install/lib/sbcl $RPM_BUILD_ROOT%{_libdir}/%{name} | |
139 | %{__mv} _install/bin/sbcl $RPM_BUILD_ROOT%{_bindir}/%{name} | |
140 | %{__mv} _install/share/man/* $RPM_BUILD_ROOT%{_mandir} | |
e22d414a | 141 | %if %{with doc} |
c7dd8c2f | 142 | %{__mv} _install/share/info/*.info* $RPM_BUILD_ROOT%{_infodir} |
e22d414a | 143 | %endif |
144 | ||
145 | echo SBCL_HOME=%{_libdir}/%{name} > $RPM_BUILD_ROOT/etc/env.d/SBCL_HOME | |
6114c569 | 146 | |
147 | %clean | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
e22d414a | 150 | %post |
151 | %env_update | |
152 | ||
153 | %postun | |
154 | %env_update | |
155 | ||
156 | %if %{with doc} | |
c7dd8c2f | 157 | %post doc-info -p /sbin/postshell |
17eb1cbb | 158 | -/usr/sbin/fix-info-dir -c %{_infodir} |
33b06ddc | 159 | |
160 | %postun doc-info | |
33b06ddc | 161 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
e22d414a | 162 | %endif |
33b06ddc | 163 | |
6114c569 | 164 | %files |
165 | %defattr(644,root,root,755) | |
535364a4 JB |
166 | %doc _install/share/doc/sbcl/{BUGS,COPYING,CREDITS,NEWS} |
167 | %attr (755,root,root) %{_bindir}/sbcl | |
e22d414a | 168 | %{_libdir}/%{name} |
535364a4 JB |
169 | %{_mandir}/man1/sbcl.1* |
170 | %config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/SBCL_HOME | |
33b06ddc | 171 | |
8e4ff5ca | 172 | %if %{with doc} |
33b06ddc | 173 | %files doc-info |
174 | %defattr(644,root,root,755) | |
535364a4 JB |
175 | %{_infodir}/asdf.info* |
176 | %{_infodir}/sbcl.info* | |
33b06ddc | 177 | |
178 | %files doc-html | |
179 | %defattr(644,root,root,755) | |
c7dd8c2f | 180 | %doc _install/share/doc/sbcl/*.html |
33b06ddc | 181 | |
182 | %files doc-pdf | |
183 | %defattr(644,root,root,755) | |
e22d414a | 184 | %doc _install/share/doc/sbcl/*.pdf |
8e4ff5ca | 185 | %endif |