/[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 1533909 - (show annotations) (download)
Sun Feb 16 12:20:50 2020 UTC (4 years, 2 months ago) by wally
File size: 4094 byte(s)
- new version 2.0.1
1 %ifarch %{arm}
2 %bcond_with 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: 2.0.1
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-2.0.1-LIB_DIR.patch
50
51 ## upstreamable patches
52 Patch50: sbcl-2.0.1-generate_version.patch
53
54 # Modified from https://bugs.gentoo.org/468482
55 Patch100: sbcl-1.4.12-concurrency-test.patch
56
57 BuildRequires: gcc
58 BuildRequires: zlib-devel
59 # %%check/tests
60 BuildRequires: ed
61 BuildRequires: hostname
62 %if %{with docs}
63 # doc generation
64 BuildRequires: ghostscript
65 BuildRequires: texinfo
66 BuildRequires: time
67 %endif
68 %if %{without bootstrap}
69 BuildRequires: %{name}
70 %endif
71
72 %description
73 Steel Bank Common Lisp (SBCL) is a Open Source development environment for
74 Common Lisp. It includes an integrated native compiler, interpreter, and
75 debugger.
76
77
78 %prep
79 %autosetup -p1 %{?bootstrap_src}
80
81 # fix permissions (some have eXecute bit set)
82 find . -name '*.c' | xargs chmod 644
83
84 # set version.lisp-expr
85 sed -i.rpmver -e "s|\"%{version}\"|\"%{version}-%{release}\"|" version.lisp-expr
86
87 %build
88
89 export CFLAGS="%{optflags}"
90 export LDFLAGS="%{ldflags}"
91
92 export SBCL_HOME=%{_libdir}/%{name}
93 export DEFAULT_SBCL_HOME=%{_libdir}/%{name}
94 %{?sbcl_arch:export SBCL_ARCH=%{sbcl_arch}}
95
96 %{?sbcl_shell} \
97 ./make.sh \
98 --prefix=%{_prefix} \
99 --with-sb-core-compression \
100 %{?with_bootstrap:--xc-host="$(pwd)/../%{bootstrap_dir}/run-sbcl.sh"} \
101 %nil
102
103 # docs
104 %if %{with docs}
105 make -C doc/manual info
106
107 # Handle pre-generated docs
108 tar xvjf %{SOURCE1}
109 cp -av %{name}-%{version}/doc/manual/* doc/manual/
110 %endif
111
112 %install
113 unset SBCL_HOME
114 export INSTALL_ROOT=%{buildroot}%{_prefix}
115 export LIB_DIR=%{buildroot}%{_libdir}
116 %{?sbcl_shell} ./install.sh
117
118 # handle docs in files section
119 rm -rf %{buildroot}%{_docdir}
120
121 # 'test-passed' files from %%check
122 find %{buildroot} -name 'test-passed' | xargs rm -vf
123
124 %files
125 %license COPYING
126 %doc BUGS CREDITS NEWS
127 %{_bindir}/*
128 %dir %{_libdir}/%{name}/
129 %{_libdir}/%{name}/sbcl.core
130 %{_libdir}/%{name}/sbcl.mk
131 %dir %{_libdir}/%{name}/contrib
132 %{_libdir}/%{name}/contrib/asdf.*
133 %{_libdir}/%{name}/contrib/sb-aclrepl.*
134 %{_libdir}/%{name}/contrib/sb-bsd-sockets.*
135 %{_libdir}/%{name}/contrib/sb-capstone.*
136 %{_libdir}/%{name}/contrib/sb-cltl2.*
137 %{_libdir}/%{name}/contrib/sb-concurrency.*
138 %{_libdir}/%{name}/contrib/sb-cover.*
139 %{_libdir}/%{name}/contrib/sb-executable.*
140 %{_libdir}/%{name}/contrib/sb-gmp.*
141 %{_libdir}/%{name}/contrib/sb-grovel.*
142 %{_libdir}/%{name}/contrib/sb-introspect.*
143 %{_libdir}/%{name}/contrib/sb-md5.*
144 %{_libdir}/%{name}/contrib/sb-mpfr.*
145 %{_libdir}/%{name}/contrib/sb-posix.*
146 %{_libdir}/%{name}/contrib/sb-queue.*
147 %{_libdir}/%{name}/contrib/sb-rotate-byte.*
148 %{_libdir}/%{name}/contrib/sb-rt.*
149 %{_libdir}/%{name}/contrib/sb-simple-streams.*
150 %{_libdir}/%{name}/contrib/sb-sprof.*
151 %{_libdir}/%{name}/contrib/uiop.*
152 %{_mandir}/man?/*
153 %if %{with docs}
154 %doc doc/manual/sbcl.html
155 %doc doc/manual/asdf.html
156 %{_infodir}/asdf.info*
157 %{_infodir}/sbcl.info*
158 %endif

  ViewVC Help
Powered by ViewVC 1.1.30