SPECS: sbcl.spec - Up to 1.0.2 - Make it possible to use unpackage...
japhy
japhy at pld-linux.org
Tue Jan 30 19:41:36 CET 2007
Author: japhy Date: Tue Jan 30 18:41:36 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Up to 1.0.2
- Make it possible to use unpackaged host CL implementation by passing
--define bootstrap_cl /path/to/lisp/binary to builder
- Rewrite installation, install to %{_libdir} instead of
%{_prefix}/lib, make it work on x86_64
- Add /etc/env.d/SBCL_HOME
---- Files affected:
SPECS:
sbcl.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SPECS/sbcl.spec
diff -u SPECS/sbcl.spec:1.15 SPECS/sbcl.spec:1.16
--- SPECS/sbcl.spec:1.15 Mon Mar 13 22:02:07 2006
+++ SPECS/sbcl.spec Tue Jan 30 19:41:30 2007
@@ -4,23 +4,28 @@
%bcond_without doc # build without documentation
%bcond_with clisp # build using clisp instead of sbcl
#
+# To build with an unpackaged Common Lisp implementation,
+# pass --define bootstrap_cl /path/to/lisp/binary to builder.
+#
Summary: The Steel Bank Common Lisp development environment
Summary(pl): Środowisko programowania Steel Bank Common Lisp
Name: sbcl
-Version: 0.9.10
-Release: 2
+Version: 1.0.2
+Release: 1
License: MIT
Group: Development/Languages
Source0: http://dl.sourceforge.net/sbcl/%{name}-%{version}-source.tar.bz2
-# Source0-md5: 58678d7081f32bdcd174c5233efba4f3
+# Source0-md5: f94b51748e9805687759b5b924f45671
Patch0: %{name}-home.patch
Patch1: %{name}-threads.patch
URL: http://sbcl.sourceforge.net/
+%if %{undefined bootstrap_cl}
%if %{with clisp}
BuildRequires: clisp
%else
BuildRequires: sbcl
%endif
+%endif
%if %{with doc}
BuildRequires: tetex-dvips
BuildRequires: texinfo-texi2dvi
@@ -77,11 +82,13 @@
%patch1 -p1
%endif
+%if %{undefined bootstrap_cl}
%if %{with clisp}
%define bootstrap_cl "clisp"
%else
%define bootstrap_cl "sbcl --disable-debugger"
%endif
+%endif
%build
GNUMAKE="make"
@@ -95,35 +102,43 @@
%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
-cp README PRINCIPLES TODO $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir} \
+ $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT%{_infodir} \
+ $RPM_BUILD_ROOT/etc/env.d
+env -u SBCL_HOME INSTALL_ROOT=`pwd`/_install %{_buildshell} ./install.sh
+mv _install/lib/sbcl $RPM_BUILD_ROOT%{_libdir}/%{name}
+mv _install/bin/sbcl $RPM_BUILD_ROOT%{_bindir}/%{name}
+mv _install/share/man/* $RPM_BUILD_ROOT%{_mandir}
+%if %{with doc}
+mv _install/share/info/*.info* $RPM_BUILD_ROOT%{_infodir}
+%endif
+
+echo SBCL_HOME=%{_libdir}/%{name} > $RPM_BUILD_ROOT/etc/env.d/SBCL_HOME
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%env_update
+
+%postun
+%env_update
+
+%if %{with doc}
%post doc-info
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun doc-info
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%endif
%files
%defattr(644,root,root,755)
-%attr (755,root,root) %{_bindir}/sbcl
-%{_libdir}/sbcl
+%doc _install/share/doc/sbcl/[A-Z]*
+%attr (755,root,root) %{_bindir}/%{name}
+%{_libdir}/%{name}
%{_mandir}/man1/*
-%dir %{_docdir}/%{name}-%{version}
-%{_docdir}/%{name}-%{version}/BUGS
-%{_docdir}/%{name}-%{version}/COPYING
-%{_docdir}/%{name}-%{version}/CREDITS
-%{_docdir}/%{name}-%{version}/NEWS
-%{_docdir}/%{name}-%{version}/PRINCIPLES
-%{_docdir}/%{name}-%{version}/README
-%{_docdir}/%{name}-%{version}/SUPPORT
-%{_docdir}/%{name}-%{version}/TODO
+%config(noreplace,missingok) %verify(not md5 mtime size) /etc/env.d/*
%if %{with doc}
%files doc-info
@@ -132,11 +147,11 @@
%files doc-html
%defattr(644,root,root,755)
-%{_docdir}/%{name}-%{version}/html
+%doc _install/share/doc/sbcl/html/*
%files doc-pdf
%defattr(644,root,root,755)
-%{_docdir}/%{name}-%{version}/*.pdf
+%doc _install/share/doc/sbcl/*.pdf
%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -145,6 +160,14 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.16 2007/01/30 18:41:30 japhy
+- Up to 1.0.2
+- Make it possible to use unpackaged host CL implementation by passing
+ --define bootstrap_cl /path/to/lisp/binary to builder
+- Rewrite installation, install to %{_libdir} instead of
+ %{_prefix}/lib, make it work on x86_64
+- Add /etc/env.d/SBCL_HOME
+
Revision 1.15 2006/03/13 21:02:07 qrczak
- Threads are enabled on supported architectures (x86 and x86_64).
- Release 2.
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sbcl.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list