From 7564f6197d33fa1b7e2e74b770f32503d825525e Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Jun 19 2008 22:48:50 +0000 Subject: - Package Termite as a module instead of bundling a custom Gambit-C with it --- diff --git a/gambit-c.spec b/gambit-c.spec index 54aa1d9..9be83e5 100644 --- a/gambit-c.spec +++ b/gambit-c.spec @@ -12,16 +12,17 @@ Name: gambit-c Version: 4.2.8 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Gambit-C Scheme programming system Group: Development/Languages -License: ASL 2.0 or LGPLv2+ +License: ASL 2.0 or LGPLv2 URL: http://www.iro.umontreal.ca/~gambit Source0: http://www.iro.umontreal.ca/~gambit/download/gambit/v4.2/source/%{dirname}.tgz Source1: http://toute.ca/termite080616_0057.tar.gz Source2: gambit-init.el Patch0: gambc-v4_2_8-modtime.patch +Patch1: termite-fix-defrandom.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: emacs emacs-el @@ -39,22 +40,9 @@ precision integers (bignums), rationals, inexact reals (floating point numbers), and complex numbers. -%package termite -Summary: Termite distributed programming system -Group: Development/Languages -License: ASL 2.0 or LGPLv2+ -URL: http://www.toute.ca/ -# Not requiring base as this really is stand-alone - - -%description termite -Termite is an Erlang-like distributed programming system written in Scheme. - - %package doc Summary: Documentation for %{name} Group: Documentation -License: ASL 2.0 or LGPLv2+ Requires: %{name} = %{version}-%{release} Requires(post): info Requires(preun): info @@ -69,6 +57,28 @@ with a decent C compiler. This package contains the Gambit-C user manual in HTML and PDF formats. +%package termite +Summary: Termite distributed programming system +Group: Development/Languages +URL: http://www.toute.ca/ +Requires: %{name} = %{version}-%{release} + + +%description termite +Termite is an Erlang-like distributed programming system written in Scheme. + + +%package termite-doc +Summary: Examples for the Termite distributed programming system +Group: Documentation +Requires: %{name}-termite = %{version}-%{release} + +%description termite-doc +Termite is an Erlang-like distributed programming system written in Scheme. + +This package contains examples and benchmarks for Termite. + + %package -n emacs-gambit Summary: Gambit-C editing mode for Emacs Group: Applications/Editors @@ -80,8 +90,12 @@ An Emacs mode for editing Gambit-C Scheme source code. %prep -%setup -q -n %{dirname} +%setup -q -n %{dirname} -a1 %patch0 -p1 -b .modtime +# Not using -b, as the directory content is moved to DESTDIR as a whole +# This way we don't end up with the unpatched file lying around +%patch1 -p0 + find . -name '*.scm' | xargs chmod 0644 find examples -name '*.scm' | xargs sed -i 's|/usr/local/Gambit-C|/usr|g' sed -i "s|\xE9|\xC3\xA9|g" doc/gambit-c.info-2 @@ -94,27 +108,14 @@ chmod -x lib/{mem.c,setup.h} --enable-gcc-opts \ --prefix=%{_libdir}/%{name} -# Clone the tree for Termite build -tar cf - * | (mkdir termite && pushd termite && tar xf -) - make %{?_smp_mflags} -pushd termite -make %{?_smp_mflags} bootstrap -# Patch Termite into Gambit-C -(cd lib && tar xf %{SOURCE1} && \ - echo '(##include "termite/termite.scm")' >> _thread.scm -) -make %{?_smp_flags} -popd - # Compile emacs module (cd misc && emacs -batch -f batch-byte-compile gambit.el) %check make check -(cd termite && make check) %install @@ -131,46 +132,38 @@ cat > $RPM_BUILD_ROOT%{_bindir}/gsix < - 4.2.8-5 +- Package Termite as a module instead of bundling a custom Gambit-C with it + * Thu Jun 19 2008 Michel Alexandre Salim - 4.2.8-4 - Permission fixes for Termite subpackage diff --git a/termite-fix-defrandom.patch b/termite-fix-defrandom.patch new file mode 100644 index 0000000..76b8c1e --- /dev/null +++ b/termite-fix-defrandom.patch @@ -0,0 +1,11 @@ +--- termite/termite.scm.fix-defrandom 2008-06-16 00:16:49.000000000 -0400 ++++ termite/termite.scm 2008-06-19 18:16:48.000000000 -0400 +@@ -900,7 +900,7 @@ + ;; Initialization + + (process-links-set! (self) '()) +-(random-source-randomize! default-random-source) ++;;(random-source-randomize! default-random-source) + + (define (node-init node) + (start-tcp-server (node-port node) start-messenger)