From 68b42522c47cff444cecc94ab526848e26e4100f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:39:19 +0100 Subject: [PATCH] package created using the webbuild interface [release 2.1.3-1mamba;Mon Mar 29 2021] --- README.md | 2 ++ sbcl.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 sbcl.spec diff --git a/README.md b/README.md index ddbae73..ce320b3 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sbcl +Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler. It is open source / free software, with a permissive license. In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions. + diff --git a/sbcl.spec b/sbcl.spec new file mode 100644 index 0000000..806fa6f --- /dev/null +++ b/sbcl.spec @@ -0,0 +1,78 @@ +Name: sbcl +Version: 2.1.3 +Release: 1mamba +Summary: Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.sbcl.org/ +Source: https://downloads.sourceforge.net/project/sbcl/sbcl/%{version}/sbcl-%{version}-source.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: clisp + +%description +Steel Bank Common Lisp (SBCL) is a high performance Common Lisp compiler. It is open source / free software, with a permissive license. In addition to the compiler and runtime system for ANSI Common Lisp, it provides an interactive environment including a debugger, a statistical profiler, a code coverage tool, and many other extensions. + +%debug_package + +%prep +%setup -q + +%build +export CFLAGS+=" -D_GNU_SOURCE -fno-omit-frame-pointer -DSBCL_HOME=/usr/lib/sbcl" +export GNUMAKE="make" + +# build system uses LINKFLAGS and OS_LIBS to build LDFLAGS +export LINKFLAGS="$LDFLAGS" +unset LDFLAGS +unset MAKEFLAGS +sh make.sh sbcl --prefix=/usr --fancy --xc-host='clisp' +make -C doc/manual info + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +# cannot have both SBCL_HOME and INSTALL_ROOT +SBCL_HOME="" INSTALL_ROOT=%{buildroot}%{_prefix} sh install.sh + +# sources +mkdir -p %{buildroot}%{_datadir}/sbcl-source +cp -R -t %{buildroot}%{_datadir}/sbcl-source {src,contrib} + +# drop unwanted files +find %{buildroot} \( -name Makefile -o -name .cvsignore \) -delete +find %{buildroot}%{_datadir}/sbcl-source -type f \ + \( -name \*.fasl -o -name \*.o -o -name \*.log -o -name \*.so -o -name a.out \) -delete + +rm %{buildroot}%{_datadir}/sbcl-source/src/runtime/sbcl + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/sbcl +%dir %{_prefix}/lib/sbcl +%dir %{_prefix}/lib/sbcl/contrib +%{_prefix}/lib/sbcl/contrib/* +%{_prefix}/lib/sbcl/sbcl.core +%{_prefix}/lib/sbcl/sbcl.mk +%dir %{_datadir}/sbcl-source +%dir %{_datadir}/sbcl-source/contrib +%{_datadir}/sbcl-source/contrib/* +%dir %{_datadir}/sbcl-source/src +%{_datadir}/sbcl-source/src/* +%dir %{_datadir}/doc/sbcl +%{_datadir}/doc/sbcl/* +%{_infodir}/asdf.info* +%{_infodir}/sbcl.info* +%{_mandir}/man1/sbcl.1* +%doc COPYING CREDITS + +%changelog +* Mon Mar 29 2021 Silvan Calarco 2.1.3-1mamba +- package created using the webbuild interface