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
|
|
|
#
|
2018-02-28 15:15:04 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-12 01:27:09 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
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.
|
2011-11-28 16:53:23 +01:00
|
|
|
%define guilemaj 2
|
2018-11-28 11:57:52 +01:00
|
|
|
%define guilemin 2
|
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
|
2019-07-07 13:03:15 +02:00
|
|
|
Version: %{guilevers}.6
|
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
|
2018-02-28 15:15:04 +01:00
|
|
|
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=guile&download=1#/%{name}.keyring
|
2015-03-10 07:50:39 +01:00
|
|
|
Source3: guile-rpmlintrc
|
2019-06-30 21:33:07 +02:00
|
|
|
# Fix the resulting /usr/lib64/pkgconfig/guile-2.2.pc
|
2019-07-07 13:03:15 +02:00
|
|
|
Patch0: guile-2.2-gc_pkgconfig_private.patch
|
2018-11-28 11:57:52 +01:00
|
|
|
# test fails always with heap error
|
2019-07-07 13:03:15 +02:00
|
|
|
Patch1: disable-test-out-of-memory.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)
|
2017-02-19 20:09:10 +01:00
|
|
|
Requires(post): %{install_info_prereq}
|
|
|
|
Requires(preun): %{install_info_prereq}
|
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
|
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
|
|
|
|
|
2007-01-12 01:27:09 +01:00
|
|
|
%build
|
2018-02-28 15:15:04 +01:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--with-pic \
|
|
|
|
--with-threads \
|
|
|
|
--disable-silent-rules
|
2015-03-10 07:50:39 +01:00
|
|
|
make %{?_smp_mflags}
|
2009-01-19 01:53:31 +01:00
|
|
|
|
|
|
|
%check
|
2018-02-28 15:15:04 +01:00
|
|
|
LD_LIBRARY_PATH="." make %{?_smp_mflags} 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
|
|
|
|
2009-02-08 00:10:24 +01:00
|
|
|
%post devel
|
2017-02-19 20:09:10 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/r5rs.info%{ext_info}
|
2007-01-12 01:27:09 +01:00
|
|
|
|
2017-02-19 20:09:10 +01:00
|
|
|
%preun devel
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/r5rs.info%{ext_info}
|
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
|
2017-02-19 20:09:10 +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
|
2017-02-19 20:09:10 +01:00
|
|
|
%{_infodir}/%{name}.info%{ext_info}
|
|
|
|
%{_infodir}/%{name}.info-[0-9]%{ext_info}
|
|
|
|
%{_infodir}/%{name}.info-1[0-9]%{ext_info}
|
|
|
|
%{_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
|