2007-01-12 01:27:09 +01:00
|
|
|
#
|
2011-09-01 14:53:55 +02:00
|
|
|
# spec file for package guile
|
2007-01-12 01:27:09 +01:00
|
|
|
#
|
2021-01-09 22:10:22 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-12 01:27:09 +01:00
|
|
|
#
|
2008-09-08 01:31:38 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-01-09 22:10:22 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-12 01:27:09 +01:00
|
|
|
#
|
2011-12-09 12:33:34 +01:00
|
|
|
|
2012-06-29 11:58:12 +02:00
|
|
|
|
2011-10-02 22:09:48 +02:00
|
|
|
# define the name used for versioning libs and directories.
|
2020-01-20 12:56:28 +01:00
|
|
|
%define guilemaj 3
|
|
|
|
%define guilemin 0
|
2011-11-28 16:53:23 +01:00
|
|
|
%define guilevers %{guilemaj}.%{guilemin}
|
2018-11-28 11:57:52 +01:00
|
|
|
%define libgver 1
|
2011-11-28 16:53:23 +01:00
|
|
|
%define gsuff %{guilemaj}_%{guilemin}-%{libgver}
|
2007-01-12 01:27:09 +01:00
|
|
|
Name: guile
|
2022-03-07 08:24:42 +01:00
|
|
|
Version: %{guilevers}.8
|
2011-12-03 21:43:47 +01:00
|
|
|
Release: 0
|
2007-01-12 01:27:09 +01:00
|
|
|
Summary: GNU's Ubiquitous Intelligent Language for Extension
|
2018-02-28 15:15:04 +01:00
|
|
|
License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
|
2012-01-18 17:23:03 +01:00
|
|
|
Group: Development/Languages/Scheme
|
2018-02-28 15:15:04 +01:00
|
|
|
URL: https://www.gnu.org/software/guile/
|
2016-10-19 01:11:21 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz.sig
|
2022-03-07 08:24:42 +01:00
|
|
|
# key: 4FD4D288D445934E0A14F9A5A8803732E4436885 as from the release notes
|
|
|
|
Source2: %{name}.keyring
|
2015-03-10 07:50:39 +01:00
|
|
|
Source3: guile-rpmlintrc
|
2020-01-20 12:56:28 +01:00
|
|
|
# Fix the resulting /usr/lib64/pkgconfig/guile-3.0.pc
|
|
|
|
Patch0: guile-3.0-gc_pkgconfig_private.patch
|
|
|
|
# The out-of-memory test is flaky, so disable it
|
2019-07-07 13:03:15 +02:00
|
|
|
Patch1: disable-test-out-of-memory.patch
|
2021-01-09 22:10:22 +01:00
|
|
|
Patch2: gcc10-x86-disable-one-test.patch
|
2022-03-14 11:06:56 +01:00
|
|
|
Patch3: adjust-32bit-big-endian-build-flags.patch
|
2015-03-10 07:50:39 +01:00
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
BuildRequires: libltdl-devel
|
|
|
|
BuildRequires: libunistring-devel
|
2017-02-19 20:09:10 +01:00
|
|
|
BuildRequires: pkgconfig
|
2015-03-10 07:50:39 +01:00
|
|
|
BuildRequires: readline-devel
|
2018-02-28 15:15:04 +01:00
|
|
|
BuildRequires: pkgconfig(bdw-gc)
|
2015-03-10 07:50:39 +01:00
|
|
|
Requires(pre): fileutils
|
|
|
|
Requires(pre): sh-utils
|
2007-01-12 01:27:09 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2011-11-28 16:53:23 +01:00
|
|
|
%package -n libguile-%{gsuff}
|
2011-10-02 22:09:48 +02:00
|
|
|
Summary: GNU's Ubiquitous Intelligent Language for Extension
|
2018-02-28 15:15:04 +01:00
|
|
|
License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
|
2012-01-18 17:23:03 +01:00
|
|
|
Group: Development/Languages/Scheme
|
2011-11-28 19:37:03 +01:00
|
|
|
Requires: %{name}-modules-%{guilemaj}_%{guilemin} >= %{version}
|
2015-10-08 11:00:59 +02:00
|
|
|
# workaround for bnc#948804
|
2015-10-08 10:22:28 +02:00
|
|
|
Requires: glibc-locale
|
2007-01-12 01:27:09 +01:00
|
|
|
|
2011-11-28 16:53:23 +01:00
|
|
|
%description -n libguile-%{gsuff}
|
2011-10-02 22:09:48 +02:00
|
|
|
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. This package
|
|
|
|
contains the shared libraries.
|
|
|
|
|
2011-11-28 16:53:23 +01:00
|
|
|
%package modules-%{guilemaj}_%{guilemin}
|
2011-10-02 22:09:48 +02:00
|
|
|
Summary: GNU's Ubiquitous Intelligent Language for Extension
|
2018-02-28 15:15:04 +01:00
|
|
|
License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
|
2012-01-18 17:23:03 +01:00
|
|
|
Group: Development/Languages/Scheme
|
2007-01-12 01:27:09 +01:00
|
|
|
|
2011-11-28 16:53:23 +01:00
|
|
|
%description modules-%{guilemaj}_%{guilemin}
|
|
|
|
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. This package
|
|
|
|
contains guile modules.
|
|
|
|
|
2007-01-12 01:27:09 +01:00
|
|
|
%package devel
|
|
|
|
Summary: GNU's Ubiquitous Intelligent Language for Extension
|
2018-02-28 15:15:04 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2012-01-18 17:23:03 +01:00
|
|
|
Group: Development/Languages/Scheme
|
2012-06-29 11:58:12 +02:00
|
|
|
Requires: gmp-devel
|
2011-11-28 16:53:23 +01:00
|
|
|
# following Requires needed because /usr/bin/guile-config needs /usr/bin/guile
|
2011-11-29 12:06:52 +01:00
|
|
|
Requires: guile = %{version}
|
2015-03-10 07:50:39 +01:00
|
|
|
Requires: libffi-devel
|
2011-11-29 12:06:52 +01:00
|
|
|
Requires: libguile-%{gsuff} = %{version}
|
2015-03-10 07:50:39 +01:00
|
|
|
Requires: libunistring-devel
|
|
|
|
Requires: ncurses-devel
|
|
|
|
Requires: readline-devel
|
2018-02-28 15:57:07 +01:00
|
|
|
Requires: pkgconfig(bdw-gc)
|
2007-01-12 01:27:09 +01:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-11-28 11:57:52 +01:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
2020-05-05 21:39:11 +02:00
|
|
|
%patch2 -p1
|
2022-03-14 11:06:56 +01:00
|
|
|
%patch3 -p1
|
2007-01-12 01:27:09 +01:00
|
|
|
|
2019-01-17 13:33:14 +01:00
|
|
|
# remove broken prebuilt objects
|
|
|
|
rm -r prebuilt/32-bit-big-endian
|
|
|
|
|
2021-01-26 18:12:10 +01:00
|
|
|
%if 0%{?qemu_user_space_build}
|
|
|
|
# QEMU ignores rlimit requests for setting RLIMIT_AS
|
|
|
|
echo exit 77 > test-suite/standalone/test-stack-overflow
|
|
|
|
%endif
|
|
|
|
|
2007-01-12 01:27:09 +01:00
|
|
|
%build
|
2022-03-14 11:06:56 +01:00
|
|
|
aclocal
|
2018-02-28 15:15:04 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--with-threads \
|
|
|
|
--disable-silent-rules
|
2019-09-23 11:57:37 +02:00
|
|
|
# do sequential build for reproducible .go files = https://issues.guix.gnu.org/issue/20272 - boo#1102408
|
2021-01-10 04:51:51 +01:00
|
|
|
%make_build -j1
|
2009-01-19 01:53:31 +01:00
|
|
|
|
|
|
|
%check
|
2021-01-10 04:51:51 +01:00
|
|
|
LD_LIBRARY_PATH="." \
|
|
|
|
%make_build check
|
2007-01-12 01:27:09 +01:00
|
|
|
|
|
|
|
%install
|
2017-02-19 20:09:10 +01:00
|
|
|
%make_install
|
2015-03-10 07:50:39 +01:00
|
|
|
mkdir -p %{buildroot}%{_datadir}/guile/site
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2014-04-22 14:42:59 +02:00
|
|
|
# bug #874028
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}
|
|
|
|
mv %{buildroot}%{_libdir}/libguile*-gdb.scm %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}/
|
2007-01-12 01:27:09 +01:00
|
|
|
|
|
|
|
%pre
|
|
|
|
# Remove obsolete files (< SuSE Linux 10.2)
|
2015-03-10 07:50:39 +01:00
|
|
|
rm -f var/adm/SuSEconfig/md5%{_datadir}/guile/*/slibcat
|
2007-01-12 01:27:09 +01:00
|
|
|
rm -f usr/share/guile/site/slibcat.SuSEconfig
|
|
|
|
|
2011-11-28 16:53:23 +01:00
|
|
|
%post -n libguile-%{gsuff} -p /sbin/ldconfig
|
|
|
|
%postun -n libguile-%{gsuff} -p /sbin/ldconfig
|
2011-10-02 22:09:48 +02:00
|
|
|
|
2007-01-12 01:27:09 +01:00
|
|
|
%files
|
2018-02-28 15:15:04 +01:00
|
|
|
%doc ABOUT-NLS AUTHORS ChangeLog GUILE-VERSION HACKING
|
|
|
|
%doc NEWS README THANKS
|
2011-11-28 16:53:23 +01:00
|
|
|
%{_bindir}/guile-tools
|
|
|
|
%{_bindir}/guild
|
|
|
|
%{_bindir}/guile
|
2021-01-09 22:10:22 +01:00
|
|
|
%{_mandir}/man1/guile.1%{?ext_man}
|
2011-11-28 16:53:23 +01:00
|
|
|
|
|
|
|
%files -n libguile-%{gsuff}
|
2018-02-28 15:15:04 +01:00
|
|
|
%license LICENSE COPYING*
|
2011-11-28 16:53:23 +01:00
|
|
|
%{_libdir}/libguile-%{guilevers}.so.%{libgver}*
|
|
|
|
|
|
|
|
%files modules-%{guilemaj}_%{guilemin}
|
2011-10-02 22:09:48 +02:00
|
|
|
%{_libdir}/%{name}
|
2011-11-28 16:53:23 +01:00
|
|
|
# Own usr/share/guile/site; side effect of not doing so is slib failing to install correctly.
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
2007-01-12 01:27:09 +01:00
|
|
|
%files devel
|
2011-11-28 16:53:23 +01:00
|
|
|
%{_bindir}/guile-snarf
|
|
|
|
%{_bindir}/guile-config
|
2011-10-02 22:09:48 +02:00
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%dir %{_includedir}/%{name}/%{guilevers}
|
|
|
|
%{_includedir}/%{name}/%{guilevers}/*
|
2011-07-14 14:43:10 +02:00
|
|
|
%{_datadir}/aclocal/guile.m4
|
2021-01-09 22:10:22 +01:00
|
|
|
%{_infodir}/%{name}.info%{?ext_info}
|
2017-02-19 20:09:10 +01:00
|
|
|
%{_infodir}/%{name}.info-[0-9]%{ext_info}
|
|
|
|
%{_infodir}/%{name}.info-1[0-9]%{ext_info}
|
2021-01-09 22:10:22 +01:00
|
|
|
%{_infodir}/r5rs.info%{?ext_info}
|
2013-02-06 00:09:18 +01:00
|
|
|
%{_libdir}/libguile-%{guilevers}.so
|
2011-10-02 22:09:48 +02:00
|
|
|
%{_libdir}/pkgconfig/guile-%{guilevers}.pc
|
2014-04-22 14:42:59 +02:00
|
|
|
# bug #874028
|
|
|
|
%dir %{_datadir}/gdb
|
|
|
|
%dir %{_datadir}/gdb/auto-load
|
|
|
|
%dir %{_datadir}/gdb/auto-load%{_prefix}
|
|
|
|
%dir %{_datadir}/gdb/auto-load/%{_libdir}
|
|
|
|
%{_datadir}/gdb/auto-load/%{_libdir}/libguile*-gdb.scm
|
2007-01-12 01:27:09 +01:00
|
|
|
|
2007-03-06 09:06:21 +01:00
|
|
|
%changelog
|