386 lines
12 KiB
RPMSpec
386 lines
12 KiB
RPMSpec
#
|
||
# spec file for package guile (Version 1.8.1)
|
||
#
|
||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
# This file and all modifications and additions to the pristine
|
||
# package are under the same license as the package itself.
|
||
#
|
||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
#
|
||
|
||
# norootforbuild
|
||
|
||
Name: guile
|
||
BuildRequires: gmp-devel readline-devel
|
||
License: GNU Library General Public License v. 2.0 and 2.1 (LGPL)
|
||
Group: Development/Languages/Scheme
|
||
Autoreqprov: on
|
||
Version: 1.8.1
|
||
Release: 30
|
||
%define GUILEVERSION 1.8
|
||
Summary: GNU's Ubiquitous Intelligent Language for Extension
|
||
URL: http://www.gnu.org/software/guile/
|
||
Source0: %{name}-%{version}.tar.bz2
|
||
Patch1: %{name}-64bit.patch
|
||
Patch2: %{name}-1.6.8-mktemp.patch
|
||
Patch3: guile-gcc4.patch
|
||
Patch4: guile-getcontext.patch
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
PreReq: fileutils sh-utils
|
||
PreReq: %install_info_prereq
|
||
|
||
%description
|
||
This is Guile, a portable, embeddable Scheme implementation written in
|
||
C. Guile provides a machine independent execution platform that can be
|
||
linked in as a library when building extensible programs.
|
||
|
||
|
||
|
||
Authors:
|
||
--------
|
||
Jim Blandy <jimb@floss.red-bean.com>
|
||
George Carrette
|
||
Aubrey Jaffer
|
||
Gary Houston <ghouston@actrix.gen.nz>
|
||
Tom Lord
|
||
Anthony Green
|
||
Mikael Djurfeldt <mdj@mdj.nada.kth.se>
|
||
Mark Galassi <rosalia@papageno.lanl.gov>
|
||
Tim Pierce <twp@twp.tezcat.com>
|
||
Marius Vollmer <mvo@zagadka.ping.de>
|
||
Tom Tromey <tromey@cygnus.com>
|
||
|
||
%package devel
|
||
Group: Development/Languages/Scheme
|
||
Summary: GNU's Ubiquitous Intelligent Language for Extension
|
||
Requires: %{name} = %{version} gmp-devel readline-devel ncurses-devel
|
||
|
||
%description devel
|
||
This is Guile, a portable, embeddable Scheme implementation written in
|
||
C. Guile provides a machine independent execution platform that can be
|
||
linked in as a library when building extensible programs.
|
||
|
||
|
||
|
||
Authors:
|
||
--------
|
||
Jim Blandy <jimb@floss.red-bean.com>
|
||
George Carrette
|
||
Aubrey Jaffer
|
||
Gary Houston <ghouston@actrix.gen.nz>
|
||
Tom Lord
|
||
Anthony Green
|
||
Mikael Djurfeldt <mdj@mdj.nada.kth.se>
|
||
Mark Galassi <rosalia@papageno.lanl.gov>
|
||
Tim Pierce <twp@twp.tezcat.com>
|
||
Marius Vollmer <mvo@zagadka.ping.de>
|
||
Tom Tromey <tromey@cygnus.com>
|
||
|
||
%prep
|
||
%setup -q
|
||
%patch1
|
||
%patch2
|
||
%patch4
|
||
# guile-1.8.1: The code is not so good for -Werror (unused results of write()).
|
||
sed -i s/-Werror// configure.in configure
|
||
|
||
%build
|
||
%{?suse_update_config:%{suse_update_config -f . guile-readline}}
|
||
cp /usr/share/gettext/config.rpath .
|
||
libtoolize --force --ltdl
|
||
aclocal -I guile-config
|
||
automake -a
|
||
autoconf
|
||
cd guile-readline
|
||
aclocal
|
||
automake -a
|
||
autoconf
|
||
cd ..
|
||
# FIXME: Following files are apparently compiled without RPM_OPT_FLAGS:
|
||
# gen-scmconfig.c,c-tokenize.c
|
||
%configure\
|
||
--with-threads
|
||
make %{?jobs:-j%jobs}
|
||
#make check
|
||
|
||
%install
|
||
make install DESTDIR=$RPM_BUILD_ROOT
|
||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/guile/site
|
||
|
||
%clean
|
||
rm -fr $RPM_BUILD_ROOT
|
||
|
||
%post
|
||
%run_ldconfig
|
||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||
%install_info --info-dir=%{_infodir} %{_infodir}/goops.info.gz
|
||
%install_info --info-dir=%{_infodir} %{_infodir}/guile-tut.info.gz
|
||
%install_info --info-dir=%{_infodir} %{_infodir}/r5rs.info.gz
|
||
|
||
%postun
|
||
%run_ldconfig
|
||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/goops.info.gz
|
||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/guile-tut.info.gz
|
||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/r5rs.info.gz
|
||
# Delete slib library files, only if guile was uninstalled.
|
||
if ! test -e usr/bin/guile ; then
|
||
rm -f %{_datadir}/guile/site/slib
|
||
rm -f %{_datadir}/guile/site/slibcat
|
||
rmdir %{_datadir}/guile/site 2>/dev/null || true
|
||
rmdir %{_datadir}/guile 2>/dev/null || true
|
||
fi
|
||
|
||
%pre
|
||
# Remove obsolete files (< SuSE Linux 10.2)
|
||
rm -f var/adm/SuSEconfig/md5/usr/share/guile/*/slibcat
|
||
rm -f usr/share/guile/site/slibcat.SuSEconfig
|
||
# FIXME: Should fit better in the slib package.
|
||
|
||
%triggerin -- slib
|
||
# slib library
|
||
if [ -e /usr/share/slib/guile.init ] ; then
|
||
# slib is instaled
|
||
if [ ! -e /usr/share/guile/site/slib ] ; then
|
||
# link slib library into guile
|
||
ln -sf /usr/share/slib /usr/share/guile/site/slib
|
||
fi
|
||
guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
|
||
fi
|
||
|
||
%triggerpostun -- slib
|
||
# Delete slib library files, only if slib or guile was uninstalled.
|
||
if ! test -d /usr/share/slib -a -d /usr/share/guile ; then
|
||
rm -f %{_datadir}/guile/site/slib
|
||
rm -f %{_datadir}/guile/site/slibcat
|
||
fi
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
%doc ANON-CVS AUTHORS BUGS COPYING ChangeLog GUILE-VERSION HACKING
|
||
%doc NEWS README THANKS SNAPSHOTS
|
||
%{_bindir}/*
|
||
%{_datadir}/guile
|
||
%{_libdir}/libguile*.so.*
|
||
# NOTE: At least some .so files must be here, required for dynamic-link.
|
||
%{_libdir}/libguile*.so
|
||
%{_libdir}/libguile*.la
|
||
|
||
%files devel
|
||
%defattr(-,root,root)
|
||
%{_includedir}/*
|
||
%{_datadir}/aclocal/*
|
||
%doc %{_infodir}/%{name}.info.gz
|
||
%doc %{_infodir}/%{name}.info-[0-9].gz
|
||
%doc %{_infodir}/goops.info.gz
|
||
%doc %{_infodir}/guile-tut.info.gz
|
||
%doc %{_infodir}/r5rs.info.gz
|
||
%{_libdir}/libguile*.a
|
||
|
||
%changelog -n guile
|
||
* Thu Jan 11 2007 - sbrabec@suse.cz
|
||
- More spec file cleanups.
|
||
* Fri Dec 08 2006 - maw@suse.de
|
||
- Clean up the spec, removing some hardcoded paths.
|
||
* Tue Nov 28 2006 - sbrabec@suse.cz
|
||
- Build as user and do not alter root filesystem.
|
||
* Mon Nov 27 2006 - sbrabec@suse.cz
|
||
- Created empty directory for site packages (#223837).
|
||
* Thu Nov 23 2006 - sbrabec@suse.cz
|
||
- Fixed slib installation scriptlets (#214940).
|
||
* Wed Nov 08 2006 - anicka@suse.cz
|
||
- moved .la files to the base package (#218032).
|
||
* Wed Oct 25 2006 - sbrabec@suse.cz
|
||
- Moved .so files to the base package (#214940).
|
||
* Mon Oct 16 2006 - anicka@suse.cz
|
||
- move /usr/share/guile from devel to main package
|
||
(fixes ##212545)
|
||
* Sun Oct 15 2006 - schwab@suse.de
|
||
- Make sure config.rpath is present.
|
||
* Fri Oct 13 2006 - schwab@suse.de
|
||
- Add split provide.
|
||
* Fri Oct 13 2006 - aj@suse.de
|
||
- Split up devel subpackage.
|
||
* Tue Oct 10 2006 - sbrabec@suse.cz
|
||
- Updated to version 1.8.1:
|
||
* LFS functions are now used to access 64-bit files on 32-bit
|
||
systems.
|
||
* New procedures and functions.
|
||
* New modules and module merges.
|
||
* API changes.
|
||
* Bugs fixed.
|
||
* Guile is now licensed with the GNU Lesser General
|
||
Public License.
|
||
* The manual is now licensed with the GNU Free Documentation
|
||
License.
|
||
* Guile now requires GNU MP.
|
||
* Guile now has separate private and public configuration
|
||
headers.
|
||
* Thread implementation has changed.
|
||
* Command line syntax changes.
|
||
* Fri Oct 06 2006 - anicka@suse.cz
|
||
- update to 1.6.8
|
||
* gcc 4.0 fixes
|
||
* Guile now allows multiple line comments to end without
|
||
a trailing newline.
|
||
* better support for new versions of SLIB
|
||
* changes in C interface
|
||
* Fri Sep 08 2006 - anicka@suse.cz
|
||
- rewrite SuSEconfig.guile to RPM triggers
|
||
* Sun Jul 16 2006 - schwab@suse.de
|
||
- Mark ia64_getcontext as returning twice.
|
||
* Wed Jan 25 2006 - mls@suse.de
|
||
- converted neededforbuild to BuildRequires
|
||
* Tue Jan 17 2006 - ro@suse.de
|
||
- add aclocal in libltdl
|
||
* Wed May 18 2005 - sbrabec@suse.cz
|
||
- Disabled randomly failing make -j.
|
||
* Tue Apr 05 2005 - sbrabec@suse.cz
|
||
- Fixed incomplete array element type.
|
||
* Thu Mar 24 2005 - uli@suse.de
|
||
- fixed to build on ARM
|
||
* Fri Jan 21 2005 - sbrabec@suse.cz
|
||
- Updated to version 1.6.7.
|
||
* Fri Dec 10 2004 - meissner@suse.de
|
||
- make -j , added make check.
|
||
* Tue Mar 30 2004 - sbrabec@suse.cz
|
||
- Fixed tempfile creation in guile-snarf (#36367).
|
||
- Build with -fno-strict-aliasing.
|
||
* Thu Nov 06 2003 - schwab@suse.de
|
||
- Fix syntax in configure script.
|
||
* Tue Jul 08 2003 - sbrabec@suse.cz
|
||
- Updated to version 1.6.4.
|
||
* Thu Apr 24 2003 - ro@suse.de
|
||
- fix install_info --delete call and move from preun to postun
|
||
* Wed Mar 12 2003 - sbrabec@suse.cz
|
||
- Workaround guile-config info version bug (symlink, fixes bug 25190).
|
||
* Tue Feb 11 2003 - sbrabec@suse.cz
|
||
- Fixed GUILEVERSION datadir path.
|
||
* Mon Feb 10 2003 - sbrabec@suse.cz
|
||
- Updated to version 1.6.2.
|
||
- Use %%install_info (bug #23423).
|
||
* Wed Dec 11 2002 - garloff@suse.de
|
||
- Make slib integration work independent of guile version number.
|
||
* Wed Dec 04 2002 - sbrabec@suse.cz
|
||
- Change error message for unknown platform to warning. It allows to
|
||
compile guile on all platforms, but there is no guarantee to
|
||
functionallity. (guile-platforms.diff)
|
||
* Tue Dec 03 2002 - sbrabec@suse.cz
|
||
- Fixed typo, which breaks TeXmacs
|
||
(guile-1.6.0-top_srcdir_absolute.diff).
|
||
* Wed Oct 30 2002 - sbrabec@suse.cz
|
||
- Update to version 1.6.0.
|
||
* Tue Aug 20 2002 - mmj@suse.de
|
||
- Correct PreReq
|
||
* Tue Jul 30 2002 - mcihar@suse.cz
|
||
- fixed SuSEconfig.guile for new version
|
||
* Wed Jul 17 2002 - tiwai@suse.de
|
||
- updated to version 1.4.1.
|
||
* Tue Jun 11 2002 - mcihar@suse.cz
|
||
- disabled qthreads for ppc64
|
||
* Mon Apr 29 2002 - sf@suse.de
|
||
- disabled qthreads for x86_64
|
||
* Thu Apr 04 2002 - pmladek@suse.cz
|
||
- moved AC_LIBOBJ after AC_PROG_CC because AC_LIBOBJ uses $ac_objext
|
||
* Wed Apr 03 2002 - pmladek@suse.cz
|
||
- fixed to compile with autoconf-2.53 (AC_LIBOBJ vs. LIBOBJS)
|
||
* Fri Feb 08 2002 - pmladek@suse.cz
|
||
- used -a option with automake to fix for PLUS distribution
|
||
- added back guile-doc-snarf: work around problem with cpp on ia64
|
||
bebause of 7.2-ia64+kde distribution
|
||
* Wed Feb 06 2002 - schwab@suse.de
|
||
- Don't add /usr/include and /usr/local/include to include search path.
|
||
- Avoid trigraph.
|
||
- Add support for ia64 register backing store (from cvs).
|
||
- Don't build with -O0 on ia64.
|
||
* Mon Dec 17 2001 - froh@suse.de
|
||
- added %%{_libdir} to the specfile where appropriate to make it lib64
|
||
clean.
|
||
* Fri Dec 07 2001 - pmladek@suse.cz
|
||
- fixed for new position of slib library
|
||
- SuSEconfig.guile uses check_md5_and_move now
|
||
- removed unused package scheme from neededforbuild
|
||
* Tue Nov 06 2001 - pmladek@suse.cz
|
||
- fixed to compile with automake 1.5:
|
||
* OMIT_DEPENDENCIES are not supported now
|
||
* Sat Sep 15 2001 - schwab@suse.de
|
||
- Fix libtool configuration.
|
||
- Remove ia64 cpp workaround.
|
||
- Fix hash functions for 64-bit architectures.
|
||
* Fri Aug 31 2001 - pmladek@suse.cz
|
||
- fixed creating of SLIB catalog (#8997):
|
||
- moved from triggerin to SuSEconfig because
|
||
there were problems with update when rpm was
|
||
updated after guile
|
||
* Mon Aug 27 2001 - pmladek@suse.cz
|
||
- fixed to compile on axp:
|
||
* fixed file numbering in qt/md/axp.s
|
||
* fixed end of block qt_vstart in qt/md/axp.s
|
||
* Fri Aug 10 2001 - ro@suse.de
|
||
- fixed to build with current autoconf and libtool
|
||
* Thu Jun 14 2001 - pmladek@suse.cz
|
||
- fixed to more correctly compile with new autoconf
|
||
* Mon Jun 11 2001 - pmladek@suse.cz
|
||
- fixed to compile with new autoconf
|
||
* Sat May 12 2001 - schwab@suse.de
|
||
- Fix readline interface.
|
||
* Fri Feb 23 2001 - ro@suse.de
|
||
- added readline/readline-devel to neededforbuild (split from bash)
|
||
* Wed Dec 06 2000 - schwab@suse.de
|
||
- guile-doc-snarf: work around problem with cpp on ia64.
|
||
- Build with -O0 on ia64.
|
||
* Thu Nov 23 2000 - cihlar@suse.cz
|
||
- fixed to compile on older distros
|
||
* Sun Nov 12 2000 - ro@suse.de
|
||
- don't redeclare inet_aton
|
||
* Wed Nov 08 2000 - ro@suse.de
|
||
- changed %%post to %%triggerin -- scheme
|
||
* Tue Nov 07 2000 - cihlar@suse.cz
|
||
- added postinstall and link to /usr/lib/scheme/slib
|
||
* Fri Nov 03 2000 - cihlar@suse.cz
|
||
- bzipped sources
|
||
- clean up spec file
|
||
* Mon Oct 23 2000 - ro@suse.de
|
||
- use macro for infodir
|
||
* Wed Aug 02 2000 - cihlar@suse.cz
|
||
- update to version 1.4
|
||
* Fri Apr 07 2000 - bk@suse.de
|
||
- And no QuickThreads yet on s390 too ;-)
|
||
* Thu Apr 06 2000 - schwab@suse.de
|
||
- No QuickThreads yet on ia64.
|
||
* Mon Mar 06 2000 - schwab@suse.de
|
||
- Update config.{guess,sub} from automake.
|
||
* Sun Feb 06 2000 - ke@suse.de
|
||
- Add group tag.
|
||
- /configure -> %%build.
|
||
- use /usr/share/info.
|
||
* Sun Oct 03 1999 - ke@suse.de
|
||
- update: 1.3.4.
|
||
* Mon Sep 13 1999 - bs@suse.de
|
||
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
||
* Tue Sep 07 1999 - uli@suse.de
|
||
- no QuickThreads on PPC, disabled them
|
||
* Wed Aug 25 1999 - ro@suse.de
|
||
- fixed configuration for alpha-Quickthreads again
|
||
* Wed Aug 25 1999 - ke@suse.de
|
||
- update: 1.3.2.
|
||
* Wed Mar 17 1999 - ro@suse.de
|
||
- fixed patch-call
|
||
* Wed Feb 10 1999 - ke@suse.de
|
||
- apply guile-slow-read-fix.patch (by Harvey J. Stein
|
||
<hjstein@bfr.co.il>).
|
||
- fix lib perms.
|
||
* Fri Feb 05 1999 - ro@suse.de
|
||
- changed config to detect alpha(ev56) as alpha
|
||
* Wed Oct 21 1998 - ke@suse.de
|
||
- update: version 1.3.
|
||
- build libqthreads.
|
||
* Wed Sep 23 1998 - ke@suse.de
|
||
- update: snapshot 1998-09-23 (1.3a).
|
||
* Sun Aug 23 1998 - ke@suse.de
|
||
- update: snapshot 1998-08-23 (1.3a).
|
||
* Fri Nov 21 1997 - bs@suse.de
|
||
- don't call ldconfig in spec file
|
||
* Tue Jul 15 1997 - Karl Eichwalder <ke@suse.de>
|
||
* initial package: version 1.2.
|