/[packages]/cauldron/sbcl/current/SPECS/sbcl.spec
ViewVC logotype

Contents of /cauldron/sbcl/current/SPECS/sbcl.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1320229 - (show annotations) (download)
Sun Oct 14 12:41:39 2018 UTC (5 years, 6 months ago) by wally
File size: 4187 byte(s)
- disable bootstrap build on aarch64
1 %ifarch %{arm}
2 %bcond_without bootstrap
3 %else
4 %bcond_with bootstrap
5 %endif
6
7 %bcond_without docs
8
9 %define sbcl_shell /bin/bash
10
11 %ifarch %{ix86}
12 %define sbcl_arch x86
13 %endif
14
15 %ifarch x86_64
16 %define sbcl_arch x86-64
17 %endif
18
19 %ifarch %{arm}
20 %define sbcl_arch arm
21 %if %{with bootstrap}
22 %define bootstrap_src -b 11
23 %define bootstrap_dir sbcl-1.4.11-armhf-linux
24 %endif
25 %endif
26
27 %ifarch aarch64
28 %define sbcl_arch arm64
29 %if %{with bootstrap}
30 %define bootstrap_src -b 12
31 %define bootstrap_dir sbcl-1.4.2-arm64-linux
32 %endif
33 %endif
34
35 Name: sbcl
36 Version: 1.4.12
37 Release: %mkrel 1
38 Summary: Steel Bank Common Lisp compiler and runtime system
39 License: Public Domain and MIT and BSD with advertising
40 Group: Development/Other
41 URL: http://sbcl.sourceforge.net/
42 Source0: https://downloads.sourceforge.net/sbcl/sbcl-%{version}-source.tar.bz2
43 Source1: https://downloads.sourceforge.net/sbcl/sbcl-%{version}-documentation-html.tar.bz2
44 Source11: https://downloads.sourceforge.net/sbcl/sbcl-1.4.11-armhf-linux-binary.tar.bz2
45 #Source12: https://downloads.sourceforge.net/sbcl/sbcl-1.4.2-arm64-linux-binary.tar.bz2
46 Patch1: sbcl-1.4.12-default-sbcl-home.patch
47 Patch2: sbcl-1.4.12-personality.patch
48 Patch3: sbcl-1.4.12-optflags.patch
49 Patch4: sbcl-1.4.12-LIB_DIR.patch
50 # Allow override of contrib test failure(s)
51 Patch7: sbcl-1.1.14-permissive.patch
52
53 ## upstreamable patches
54 Patch50: sbcl-1.3.0-generate_version.patch
55
56 # Modified from https://bugs.gentoo.org/468482
57 Patch100: sbcl-1.4.12-concurrency-test.patch
58
59 BuildRequires: gcc
60 BuildRequires: zlib-devel
61 # %%check/tests
62 BuildRequires: ed
63 BuildRequires: hostname
64 %if %{with docs}
65 # doc generation
66 BuildRequires: ghostscript
67 BuildRequires: texinfo
68 BuildRequires: time
69 %endif
70 %if %{without bootstrap}
71 BuildRequires: %{name}
72 %endif
73
74 %description
75 Steel Bank Common Lisp (SBCL) is a Open Source development environment for
76 Common Lisp. It includes an integrated native compiler, interpreter, and
77 debugger.
78
79
80 %prep
81 %autosetup -p1 %{?bootstrap_src}
82
83 # fix permissions (some have eXecute bit set)
84 find . -name '*.c' | xargs chmod 644
85
86 # set version.lisp-expr
87 sed -i.rpmver -e "s|\"%{version}\"|\"%{version}-%{release}\"|" version.lisp-expr
88
89 %build
90
91 export CFLAGS="%{optflags}"
92 export LDFLAGS="%{ldflags}"
93
94 export SBCL_HOME=%{_libdir}/%{name}
95 export DEFAULT_SBCL_HOME=%{_libdir}/%{name}
96 %{?sbcl_arch:export SBCL_ARCH=%{sbcl_arch}}
97
98 %{?sbcl_shell} \
99 ./make.sh \
100 --prefix=%{_prefix} \
101 --with-sb-core-compression \
102 %{?with_bootstrap:--xc-host="$(pwd)/../%{bootstrap_dir}/run-sbcl.sh"} \
103 %nil
104
105 # docs
106 %if %{with docs}
107 make -C doc/manual info
108
109 # Handle pre-generated docs
110 tar xvjf %{SOURCE1}
111 cp -av %{name}-%{version}/doc/manual/* doc/manual/
112 %endif
113
114 %install
115 unset SBCL_HOME
116 export INSTALL_ROOT=%{buildroot}%{_prefix}
117 export LIB_DIR=%{buildroot}%{_libdir}
118 %{?sbcl_shell} ./install.sh
119
120 # handle docs in files section
121 rm -rf %{buildroot}%{_docdir}
122
123 # 'test-passed' files from %%check
124 find %{buildroot} -name 'test-passed' | xargs rm -vf
125
126 %files
127 %license COPYING
128 %doc BUGS CREDITS NEWS
129 %{_bindir}/*
130 %dir %{_libdir}/%{name}/
131 %{_libdir}/%{name}/sbcl.core
132 %{_libdir}/%{name}/sbcl.mk
133 %dir %{_libdir}/%{name}/contrib
134 %{_libdir}/%{name}/contrib/asdf.*
135 %{_libdir}/%{name}/contrib/sb-aclrepl.*
136 %{_libdir}/%{name}/contrib/sb-bsd-sockets.*
137 %{_libdir}/%{name}/contrib/sb-capstone.*
138 %{_libdir}/%{name}/contrib/sb-cltl2.*
139 %{_libdir}/%{name}/contrib/sb-concurrency.*
140 %{_libdir}/%{name}/contrib/sb-cover.*
141 %{_libdir}/%{name}/contrib/sb-executable.*
142 %{_libdir}/%{name}/contrib/sb-gmp.*
143 %{_libdir}/%{name}/contrib/sb-grovel.*
144 %{_libdir}/%{name}/contrib/sb-introspect.*
145 %{_libdir}/%{name}/contrib/sb-md5.*
146 %{_libdir}/%{name}/contrib/sb-mpfr.*
147 %{_libdir}/%{name}/contrib/sb-posix.*
148 %{_libdir}/%{name}/contrib/sb-queue.*
149 %{_libdir}/%{name}/contrib/sb-rotate-byte.*
150 %{_libdir}/%{name}/contrib/sb-rt.*
151 %{_libdir}/%{name}/contrib/sb-simple-streams.*
152 %{_libdir}/%{name}/contrib/sb-sprof.*
153 %{_libdir}/%{name}/contrib/uiop.*
154 %{_mandir}/man?/*
155 %if %{with docs}
156 %doc doc/manual/sbcl.html
157 %doc doc/manual/asdf.html
158 %{_infodir}/asdf.info*
159 %{_infodir}/sbcl.info*
160 %endif

  ViewVC Help
Powered by ViewVC 1.1.30