2012-06-05 07:15:57 +00:00
|
|
|
%global dirname gambc-v4_6_6-devel
|
2008-06-19 05:56:46 +00:00
|
|
|
|
2012-03-31 02:57:30 +00:00
|
|
|
# Using -O2 on ppc64 triggers ICE with gcc
|
|
|
|
# http://www.iro.umontreal.ca/~gambit/bugzilla/show_bug.cgi?id=155
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=808285
|
|
|
|
# Use --with ppc64opt2 when rebuilding to see if this is fixed
|
|
|
|
%bcond_with ppc64opt2
|
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
%if ! %{with ppc64opt2}
|
|
|
|
%global optflags %(echo %{optflags} | sed 's/-O2 /-O1 /')
|
|
|
|
%endif
|
|
|
|
%endif
|
2012-03-30 03:44:17 +00:00
|
|
|
|
2008-06-19 05:56:46 +00:00
|
|
|
Name: gambit-c
|
2012-06-05 07:15:57 +00:00
|
|
|
Version: 4.6.6
|
|
|
|
Release: 1%{?dist}
|
2010-07-12 09:39:57 +00:00
|
|
|
Summary: Scheme programming system
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
Group: Development/Languages
|
2008-06-19 22:48:50 +00:00
|
|
|
License: ASL 2.0 or LGPLv2
|
2008-06-19 05:56:46 +00:00
|
|
|
URL: http://www.iro.umontreal.ca/~gambit
|
2010-07-12 09:39:57 +00:00
|
|
|
Source0: http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/%{dirname}.tgz
|
2012-03-29 10:30:23 +00:00
|
|
|
Source1: gambit-init.el
|
2008-06-19 05:56:46 +00:00
|
|
|
Patch0: gambc-v4_2_8-modtime.patch
|
2012-06-05 08:48:04 +00:00
|
|
|
Patch1: gambc-v4_6_6-reduce-opt.patch
|
2008-06-19 05:56:46 +00:00
|
|
|
|
2010-07-12 09:39:57 +00:00
|
|
|
BuildRequires: emacs
|
2008-06-19 05:56:46 +00:00
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
%description
|
|
|
|
Gambit-C includes a Scheme interpreter and a Scheme compiler which can
|
|
|
|
be used to build standalone executables. Because the compiler
|
|
|
|
generates portable C code it is fairly easy to port to any platform
|
|
|
|
with a decent C compiler.
|
|
|
|
|
|
|
|
The Gambit-C system conforms to the R4RS, R5RS and IEEE Scheme
|
|
|
|
standards. The full numeric tower is implemented, including: infinite
|
|
|
|
precision integers (bignums), rationals, inexact reals (floating point
|
|
|
|
numbers), and complex numbers.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
2010-07-12 09:39:57 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
2008-06-19 05:56:46 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
2010-07-12 09:59:45 +00:00
|
|
|
# switch to noarch
|
2012-02-01 12:40:26 +00:00
|
|
|
Obsoletes: gambit-c-doc < %{version}-%{release}
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Gambit-C includes a Scheme interpreter and a Scheme compiler which can
|
|
|
|
be used to build standalone executables. Because the compiler
|
|
|
|
generates portable C code it is fairly easy to port to any platform
|
|
|
|
with a decent C compiler.
|
|
|
|
|
|
|
|
This package contains the Gambit-C user manual in HTML and PDF formats.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n emacs-gambit
|
|
|
|
Summary: Gambit-C editing mode for Emacs
|
|
|
|
Group: Applications/Editors
|
|
|
|
|
2010-07-12 09:39:57 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
Requires: emacs(bin) >= %{_emacs_version}
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
%description -n emacs-gambit
|
|
|
|
An Emacs mode for editing Gambit-C Scheme source code.
|
|
|
|
|
2010-07-12 09:39:57 +00:00
|
|
|
%package -n emacs-gambit-el
|
|
|
|
Summary: Elisp source file for emacs-gambit
|
|
|
|
Group: Applications/Editors
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: emacs-gambit = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n emacs-gambit-el
|
|
|
|
Elisp source file for the Gambit-C editing mode for Emacs.
|
|
|
|
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
%prep
|
2008-10-15 17:21:01 +00:00
|
|
|
%setup -q -n %{dirname}
|
2008-06-19 05:56:46 +00:00
|
|
|
%patch0 -p1 -b .modtime
|
2012-03-31 03:15:46 +00:00
|
|
|
|
|
|
|
%ifarch ppc64
|
|
|
|
%if ! %{with ppc64opt2}
|
|
|
|
%patch1 -p1 -b .reduce-opt
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2010-07-12 09:39:57 +00:00
|
|
|
touch -r doc/gambit-c.info-2{,.tstamp}
|
|
|
|
iconv -f iso88591 -t utf8 doc/gambit-c.info-2 -o doc/gambit-c.info-2.utf8
|
|
|
|
touch -r doc/gambit-c.info-2{,.utf8}
|
|
|
|
mv doc/gambit-c.info-2{.utf8,}
|
2008-06-19 05:56:46 +00:00
|
|
|
# Permission fixes
|
2012-03-29 10:30:23 +00:00
|
|
|
chmod -x lib/*.{c,h}
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --enable-single-host \
|
|
|
|
--enable-gcc-opts \
|
2010-07-12 09:39:57 +00:00
|
|
|
--bindir=%{_libdir}/%{name}/bin \
|
|
|
|
--libdir=%{_libdir}/%{name}
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
# Compile emacs module
|
|
|
|
(cd misc && emacs -batch -f batch-byte-compile gambit.el)
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2010-07-12 09:39:57 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2008-06-19 05:56:46 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
for i in gsc gsi
|
|
|
|
do
|
2010-07-12 09:39:57 +00:00
|
|
|
ln -sf ../%{_lib}/%{name}/bin/$i $RPM_BUILD_ROOT%{_bindir}/$i
|
2008-06-19 05:56:46 +00:00
|
|
|
done
|
|
|
|
cat > $RPM_BUILD_ROOT%{_bindir}/gsix <<EOF
|
|
|
|
#!/bin/sh
|
2010-07-12 09:39:57 +00:00
|
|
|
%{_libdir}/%{name}/bin/six $@
|
2008-06-19 05:56:46 +00:00
|
|
|
EOF
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_bindir}/gsix
|
|
|
|
|
2008-06-19 22:48:50 +00:00
|
|
|
# Remove duplicate docs
|
2010-07-12 09:39:57 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
|
2008-06-19 05:56:46 +00:00
|
|
|
|
2008-06-19 22:48:50 +00:00
|
|
|
# Emacs mode files
|
2010-07-12 09:39:57 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_emacs_sitestartdir}
|
|
|
|
cp -p misc/gambit.elc $RPM_BUILD_ROOT%{_emacs_sitelispdir}
|
2012-03-29 10:30:23 +00:00
|
|
|
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_emacs_sitestartdir}
|
2008-06-19 05:56:46 +00:00
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
# Link static libs
|
2010-07-12 09:39:57 +00:00
|
|
|
(cd $RPM_BUILD_ROOT%{_libdir} && ln -s %{name}/*.a .)
|
2008-10-15 17:21:01 +00:00
|
|
|
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post doc
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
|
|
|
|
|
|
|
|
|
|
|
%preun doc
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LGPL.txt LICENSE-2.0.txt README
|
|
|
|
%{_bindir}/*
|
2008-07-14 21:07:26 +00:00
|
|
|
%{_includedir}/*.h
|
2010-07-12 09:39:57 +00:00
|
|
|
%{_mandir}/man1/gsi.*
|
2008-06-19 05:56:46 +00:00
|
|
|
%{_libdir}/%{name}
|
2008-07-15 14:41:36 +00:00
|
|
|
%{_libdir}/*.a
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
%files -n emacs-gambit
|
|
|
|
%defattr(-,root,root,-)
|
2010-07-12 09:39:57 +00:00
|
|
|
%doc LGPL.txt LICENSE-2.0.txt
|
|
|
|
%{_emacs_sitelispdir}/*.elc
|
|
|
|
%{_emacs_sitestartdir}/gambit-init.el
|
|
|
|
|
|
|
|
%files -n emacs-gambit-el
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_emacs_sitelispdir}/*.el
|
2008-06-19 05:56:46 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2010-07-12 09:39:57 +00:00
|
|
|
%doc doc/gambit-c.html doc/gambit-c.pdf
|
|
|
|
# don't package examples until makefiles are fixed
|
|
|
|
# examples
|
2008-06-19 05:56:46 +00:00
|
|
|
%{_infodir}/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2012-06-05 07:15:57 +00:00
|
|
|
* Tue Jun 5 2012 Michel Salim <salimma@fedoraproject.org> - 4.6.6-1
|
|
|
|
- Update to 4.6.6
|
|
|
|
|
2012-03-31 02:57:30 +00:00
|
|
|
* Sat Mar 31 2012 Michel Salim <salimma@fedoraproject.org> - 4.6.5-2
|
|
|
|
- Reduce optimization level on ppc64 to work around gcc compilation error
|
|
|
|
|
2012-03-29 10:30:23 +00:00
|
|
|
* Thu Mar 29 2012 Michel Salim <salimma@fedoraproject.org> - 4.6.5-1
|
|
|
|
- Update to 4.6.5
|
|
|
|
- Drop termite subpackages, they have been disabled for many releases
|
2012-03-30 03:44:17 +00:00
|
|
|
- Disable ppc64 target for now; broken since 4.6.4
|
2012-03-29 10:30:23 +00:00
|
|
|
|
2012-02-15 11:28:58 +00:00
|
|
|
* Wed Feb 15 2012 Michel Salim <salimma@fedoraproject.org> - 4.6.4-1
|
|
|
|
- Update to 4.6.4
|
|
|
|
|
2012-02-01 12:40:26 +00:00
|
|
|
* Wed Feb 1 2012 Michel Salim <salimma@fedoraproject.org> - 4.6.3-1
|
|
|
|
- Update to 4.6.3
|
|
|
|
|
2011-07-27 15:00:41 +00:00
|
|
|
* Wed Jul 27 2011 Michel Salim <salimma@fedoraproject.org> - 4.6.1-1
|
|
|
|
- Update to 4.6.1
|
|
|
|
|
2011-02-08 22:44:07 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-12 09:59:45 +00:00
|
|
|
* Mon Jul 12 2010 Michel Salim <salimma@fedoraproject.org> - 4.6.0-2
|
|
|
|
- noarch -doc subpackage properly obsoletes older, arched variant
|
|
|
|
|
2010-07-12 09:39:57 +00:00
|
|
|
* Mon Jul 12 2010 Michel Salim <salimma@fedoraproject.org> - 4.6.0-1
|
|
|
|
- Update to 4.6.0
|
|
|
|
- Bundle license text with independent Emacs subpackage
|
|
|
|
|
2009-07-24 23:29:13 +00:00
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-24 19:27:03 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-01-29 03:29:38 +00:00
|
|
|
* Wed Jan 28 2009 Michel Salim <salimma@fedoraproject.org> - 4.3.2-2
|
|
|
|
- If termite packages are disabled, the corresponding gambit-c packages
|
|
|
|
Provides: and Obsoletes: them
|
|
|
|
|
2008-12-19 21:20:29 +00:00
|
|
|
* Fri Dec 19 2008 Michel Salim <salimma@fedoraproject.org> - 4.3.2-1
|
|
|
|
- Update to 4.3.2
|
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
* Tue Oct 14 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.9-1
|
|
|
|
- Update to 4.2.9
|
|
|
|
- Disable Termite for now; still broken
|
|
|
|
- When built on EL-5, depend directly on emacs binary rather than emacs(bin)
|
|
|
|
|
|
|
|
* Mon Jul 14 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.8-6
|
2008-07-14 21:07:26 +00:00
|
|
|
- Put include files and libraries in standard paths
|
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
* Thu Jun 19 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.8-5
|
2008-06-19 22:48:50 +00:00
|
|
|
- Package Termite as a module instead of bundling a custom Gambit-C with it
|
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
* Thu Jun 19 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.8-4
|
2008-06-19 17:28:34 +00:00
|
|
|
- Permission fixes for Termite subpackage
|
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
* Wed Jun 18 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.8-3
|
2008-06-19 05:56:46 +00:00
|
|
|
- Bundle Termite as a subpackage
|
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
* Sat Jun 7 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.8-2
|
2008-06-19 05:56:46 +00:00
|
|
|
- Rename six symlink to avoid clash with existing six package
|
|
|
|
|
2008-10-15 17:21:01 +00:00
|
|
|
* Mon Jun 2 2008 Michel Salim <salimma@fedoraproject.org> - 4.2.8-1
|
2008-06-19 05:56:46 +00:00
|
|
|
- Update to 4.2.8
|
|
|
|
- Rename to gambit-c
|
|
|
|
|
|
|
|
* Fri Dec 28 2007 Gerard Milmeister <gemi@bluewin.ch> - 4.1.2-1
|
|
|
|
- new release 4.1.2
|
|
|
|
|
|
|
|
* Sat Apr 14 2007 Gerard Milmeister <gemi@bluewin.ch> - 4.0-1.b22
|
|
|
|
- new version 4.0b22
|
|
|
|
|
|
|
|
* Sun Oct 15 2006 Gerard Milmeister <gemi@bluewin.ch> - 4.0-1.b20
|
|
|
|
- new version 4.0b20
|
|
|
|
|
|
|
|
* Sat Feb 4 2006 Gerard Milmeister <gemi@bluewin.ch> - 4.0-1.b17
|
|
|
|
- new version 4.0b17
|
|
|
|
|
|
|
|
* Mon Nov 7 2005 Gerard Milmeister <gemi@bluewin.ch> - 4.0-1.b15
|
|
|
|
- New Version 4.0b15
|
|
|
|
|
|
|
|
* Fri Aug 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 4.0-1.b14
|
|
|
|
- First Fedora release
|
|
|
|
|