SPECS: sbcl.spec - Up to 0.9.10 - New bcond without_doc to build w...
japhy
japhy at pld-linux.org
Tue Feb 28 20:12:52 CET 2006
Author: japhy Date: Tue Feb 28 19:12:52 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Up to 0.9.10
- New bcond without_doc to build without documentation
- New bcond with_clisp to bootstrap using clisp when no sbcl is available
---- Files affected:
SPECS:
sbcl.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/sbcl.spec
diff -u SPECS/sbcl.spec:1.12 SPECS/sbcl.spec:1.13
--- SPECS/sbcl.spec:1.12 Thu Dec 29 01:49:19 2005
+++ SPECS/sbcl.spec Tue Feb 28 20:12:47 2006
@@ -1,17 +1,29 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without doc # build without documentation
+%bcond_with clisp # build using clisp instead of sbcl
+#
Summary: The Steel Bank Common Lisp development environment
Summary(pl): Środowisko programowania Steel Bank Common Lisp
Name: sbcl
-Version: 0.9.8
+Version: 0.9.10
Release: 1
License: MIT
Group: Development/Languages
Source0: http://dl.sourceforge.net/sbcl/%{name}-%{version}-source.tar.bz2
-# Source0-md5: 4a8a3de71aff073b4e23e5bc2e432b27
+# Source0-md5: 58678d7081f32bdcd174c5233efba4f3
Patch0: %{name}-home.patch
URL: http://sbcl.sourceforge.net/
+%if %{with clisp}
+BuildRequires: clisp
+%else
BuildRequires: sbcl
-BuildRequires: texinfo
+%endif
+%if %{with doc}
+BuildRequires: tetex-dvips
+BuildRequires: texinfo-texi2dvi
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -24,6 +36,7 @@
Source dla Common Lispa oparte na CMUCL. Zawiera zintegrowany natywny
kompilator, interpreter i debugger.
+%if %{with doc}
%package doc-info
Summary: The Steel Bank Common Lisp documentation (info)
Summary(pl): Dokumentacja Steel Bank Common Lisp (info)
@@ -56,21 +69,31 @@
%description doc-pdf -l pl
Dokumentacja Steel Bank Common Lisp (SBCL) w formacie PDF.
+%endif
%prep
%setup -q
%patch0 -p1
+%if %{with clisp}
+%define bootstrap_cl "clisp"
+%else
+%define bootstrap_cl "sbcl --disable-debugger"
+%endif
+
%build
GNUMAKE="make"
CFLAGS="%{rpmcflags}"
CC="%{__cc}"
export GNUMAKE CC CFLAGS
-./make.sh "sbcl --disable-debugger"
+./make.sh %{bootstrap_cl}
+%if %{with doc}
make -C doc/manual
+%endif
%install
rm -rf $RPM_BUILD_ROOT
+unset SBCL_HOME
BUILD_ROOT=$RPM_BUILD_ROOT INSTALL_ROOT=%{_prefix} \
MAN_DIR=%{_mandir} INFO_DIR=%{_infodir} DOC_DIR=%{_docdir}/%{name}-%{version} \
sh ./install.sh
@@ -79,6 +102,7 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with doc}
%post doc-info
/sbin/ldconfig
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
@@ -86,6 +110,7 @@
%postun doc-info
/sbin/ldconfig
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%endif
%files
%defattr(644,root,root,755)
@@ -102,6 +127,7 @@
%{_docdir}/%{name}-%{version}/SUPPORT
%{_docdir}/%{name}-%{version}/TODO
+%if %{with doc}
%files doc-info
%defattr(644,root,root,755)
%{_infodir}/*.info*
@@ -113,6 +139,7 @@
%files doc-pdf
%defattr(644,root,root,755)
%{_docdir}/%{name}-%{version}/*.pdf
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -120,6 +147,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2006/02/28 19:12:47 japhy
+- Up to 0.9.10
+- New bcond without_doc to build without documentation
+- New bcond with_clisp to bootstrap using clisp when no sbcl is available
+
Revision 1.12 2005/12/29 00:49:19 qrczak
- Updated to sbcl-0.9.8.
- sbcl-gcc4.patch no longer needed.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sbcl.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list