SHA256
1
0
forked from pool/guile

Accepting request 580993 from devel:languages:misc

- Add back the require on gc-devel as it is still needed for the
  non .pc using packages (eg autotools) (forwarded request 580991 from scarabeus_iv)

OBS-URL: https://build.opensuse.org/request/show/580993
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/guile?expand=0&rev=53
This commit is contained in:
Dominique Leuenberger 2018-03-01 10:59:52 +00:00 committed by Git OBS Bridge
commit d47ca96bed
5 changed files with 150 additions and 28 deletions

7
_constraints Normal file
View File

@ -0,0 +1,7 @@
<constraints>
<hardware>
<memory>
<size unit="G">2</size>
</memory>
</hardware>
</constraints>

View File

@ -0,0 +1,15 @@
diff -up guile-2.0.14/meta/guile-2.0.pc.in.pkgconfig_private guile-2.0.14/meta/guile-2.0.pc.in
--- guile-2.0.14/meta/guile-2.0.pc.in.pkgconfig_private 2016-12-14 18:03:33.000000000 -0600
+++ guile-2.0.14/meta/guile-2.0.pc.in 2018-02-20 11:53:56.344379283 -0600
@@ -21,9 +21,9 @@ guile=${bindir}/@guile@
Name: GNU Guile
Description: GNU's Ubiquitous Intelligent Language for Extension
Version: @GUILE_VERSION@
-Libs: -L${libdir} -lguile-@GUILE_EFFECTIVE_VERSION@ @BDW_GC_LIBS@
+Libs: -L${libdir} -lguile-@GUILE_EFFECTIVE_VERSION@
Libs.private: @LIB_CLOCK_GETTIME@ @LIBGMP@ @LIBLTDL@ @LIBFFI_LIBS@ \
@LIBUNISTRING@ @GUILE_LIBS@ @LIBICONV@ @LIBINTL@ @LIBSOCKET@ \
@SERVENT_LIB@ @HOSTENT_LIB@ @GETADDRINFO_LIB@ @INET_NTOP_LIB@ \
- @INET_PTON_LIB@
+ @INET_PTON_LIB@ @BDW_GC_LIBS@
Cflags: -I${pkgincludedir}/@GUILE_EFFECTIVE_VERSION@ @GUILE_CFLAGS@ @BDW_GC_CFLAGS@

View File

@ -0,0 +1,81 @@
Index: guile-2.0.14/test-suite/tests/i18n.test
===================================================================
--- guile-2.0.14.orig/test-suite/tests/i18n.test
+++ guile-2.0.14/test-suite/tests/i18n.test
@@ -522,37 +522,7 @@
(pass-if-equal "positive inexact zero, 1 digit"
"0.0"
- (number->locale-string .0 1)))
-
- (with-test-prefix "French"
-
- (pass-if-equal "integer"
- "123 456"
- (under-french-locale-or-unresolved
- (lambda ()
- (let ((fr (make-locale LC_ALL %french-locale-name)))
- (number->locale-string 123456 #t fr)))))
-
- (pass-if-equal "negative integer"
- "-1 234 567"
- (under-french-locale-or-unresolved
- (lambda ()
- (let ((fr (make-locale LC_ALL %french-locale-name)))
- (number->locale-string -1234567 #t fr)))))
-
- (pass-if-equal "fraction"
- "1 234,567"
- (under-french-locale-or-unresolved
- (lambda ()
- (let ((fr (make-locale LC_ALL %french-locale-name)))
- (number->locale-string 1234.567 #t fr)))))
-
- (pass-if-equal "fraction, 1 digit"
- "1 234,6"
- (under-french-locale-or-unresolved
- (lambda ()
- (let ((fr (make-locale LC_ALL %french-locale-name)))
- (number->locale-string 1234.567 1 fr)))))))
+ (number->locale-string .0 1))))
(with-test-prefix "format ~h"
@@ -560,16 +530,6 @@
;; `locale-digit-grouping' defaults to '(); skip the tests in that
;; case.
- (with-test-prefix "French"
-
- (pass-if-equal "12345.678"
- "12 345,678"
- (under-french-locale-or-unresolved
- (lambda ()
- (if (null? (locale-digit-grouping %french-locale))
- (throw 'unresolved)
- (format #f "~:h" 12345.678 %french-locale))))))
-
(with-test-prefix "English"
(pass-if-equal "12345.678"
@@ -585,20 +545,6 @@
(with-test-prefix "French"
- (pass-if-equal "integer"
- "123 456,00 +EUR"
- (under-french-locale-or-unresolved
- (lambda ()
- (let ((fr (make-locale LC_ALL %french-locale-name)))
- (monetary-amount->locale-string 123456 #f fr)))))
-
- (pass-if-equal "fraction"
- "1 234,57 EUR "
- (under-french-locale-or-unresolved
- (lambda ()
- (let ((fr (make-locale LC_ALL %french-locale-name)))
- (monetary-amount->locale-string 1234.567 #t fr)))))
-
(pass-if-equal "positive inexact zero"
"0,00 +EUR"
(under-french-locale-or-unresolved

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Wed Feb 28 14:51:38 UTC 2018 - tchvatal@suse.com
- Add back the require on gc-devel as it is still needed for the
non .pc using packages (eg autotools)
-------------------------------------------------------------------
Wed Feb 28 12:37:54 UTC 2018 - tchvatal@suse.com
- Add patch from Fedora not to link to libgc in all consumer libs:
* guile-2.0.14-gc_pkgconfig_private.patch
- Add _constraints file to ensure we can build properly
-------------------------------------------------------------------
Wed Feb 28 12:35:01 UTC 2018 - tchvatal@suse.com
- Format with spec-cleaner
- Fix build with new glibc 2.27 bsc#1079837:
* guile-disable-int-tests.patch
- Use %license macro to install license
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 17 12:45:52 UTC 2017 - mpluskal@suse.com Fri Feb 17 12:45:52 UTC 2017 - mpluskal@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package guile # spec file for package guile
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -28,25 +28,27 @@ Name: guile
Version: %{guilevers}.14 Version: %{guilevers}.14
Release: 0 Release: 0
Summary: GNU's Ubiquitous Intelligent Language for Extension Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3 and GPL-3.0+ and LGPL-3.0+ License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme Group: Development/Languages/Scheme
Url: https://www.gnu.org/software/guile/ URL: https://www.gnu.org/software/guile/
Source0: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz Source0: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz.sig Source1: https://ftp.gnu.org/gnu/guile/%{name}-%{version}.tar.xz.sig
Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=guile&download=1#/%{name}.keyring Source2: https://savannah.gnu.org/project/memberlist-gpgkeys.php?group=guile&download=1#/%{name}.keyring
Source3: guile-rpmlintrc Source3: guile-rpmlintrc
# suse specific # suse specific
Patch1: %{name}-64bit.patch Patch1: guile-64bit.patch
Patch2: %{name}-1.6.10-mktemp.patch Patch2: guile-1.6.10-mktemp.patch
Patch3: %{name}-threads-test.patch Patch3: guile-threads-test.patch
Patch4: %{name}-net-db-test.patch Patch4: guile-net-db-test.patch
BuildRequires: gc-devel Patch5: guile-2.0.14-gc_pkgconfig_private.patch
Patch6: guile-disable-int-tests.patch
BuildRequires: gmp-devel BuildRequires: gmp-devel
BuildRequires: libffi-devel BuildRequires: libffi-devel
BuildRequires: libltdl-devel BuildRequires: libltdl-devel
BuildRequires: libunistring-devel BuildRequires: libunistring-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: pkgconfig(bdw-gc)
Requires(pre): fileutils Requires(pre): fileutils
Requires(pre): sh-utils Requires(pre): sh-utils
@ -57,7 +59,7 @@ linked in as a library when building extensible programs.
%package -n libguile-%{gsuff} %package -n libguile-%{gsuff}
Summary: GNU's Ubiquitous Intelligent Language for Extension Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3 and GPL-3.0+ and LGPL-3.0+ License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme Group: Development/Languages/Scheme
Requires: %{name}-modules-%{guilemaj}_%{guilemin} >= %{version} Requires: %{name}-modules-%{guilemaj}_%{guilemin} >= %{version}
# workaround for bnc#948804 # workaround for bnc#948804
@ -71,7 +73,7 @@ contains the shared libraries.
%package modules-%{guilemaj}_%{guilemin} %package modules-%{guilemaj}_%{guilemin}
Summary: GNU's Ubiquitous Intelligent Language for Extension Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3 and GPL-3.0+ and LGPL-3.0+ License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme Group: Development/Languages/Scheme
%description modules-%{guilemaj}_%{guilemin} %description modules-%{guilemaj}_%{guilemin}
@ -82,7 +84,7 @@ contains guile modules.
%package -n libguilereadline-%{greadsuff} %package -n libguilereadline-%{greadsuff}
Summary: GNU's Ubiquitous Intelligent Language for Extension Summary: GNU's Ubiquitous Intelligent Language for Extension
License: GFDL-1.3 and GPL-3.0+ and LGPL-3.0+ License: GFDL-1.3-only AND GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Languages/Scheme Group: Development/Languages/Scheme
%description -n libguilereadline-%{greadsuff} %description -n libguilereadline-%{greadsuff}
@ -93,9 +95,8 @@ contains the shared libraries.
%package devel %package devel
Summary: GNU's Ubiquitous Intelligent Language for Extension Summary: GNU's Ubiquitous Intelligent Language for Extension
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: Development/Languages/Scheme Group: Development/Languages/Scheme
Requires: gc-devel
Requires: gmp-devel Requires: gmp-devel
# following Requires needed because /usr/bin/guile-config needs /usr/bin/guile # following Requires needed because /usr/bin/guile-config needs /usr/bin/guile
Requires: guile = %{version} Requires: guile = %{version}
@ -105,6 +106,7 @@ Requires: libguilereadline-%{greadsuff} = %{version}
Requires: libunistring-devel Requires: libunistring-devel
Requires: ncurses-devel Requires: ncurses-devel
Requires: readline-devel Requires: readline-devel
Requires: pkgconfig(bdw-gc)
Requires(post): %{install_info_prereq} Requires(post): %{install_info_prereq}
Requires(preun): %{install_info_prereq} Requires(preun): %{install_info_prereq}
@ -119,19 +121,19 @@ linked in as a library when building extensible programs.
%patch2 %patch2
%patch3 -p1 %patch3 -p1
%patch4 -p1 %patch4 -p1
# force rebuild with non-broken makeinfo %patch5 -p1
#rm -f doc/*/*.info %patch6 -p1
%build %build
# FIXME: Following files are apparently compiled without RPM_OPT_FLAGS: %configure \
# gen-scmconfig.c,c-tokenize.c --disable-static \
--with-pic \
%configure --disable-static --with-pic \ --with-threads \
--with-threads --disable-silent-rules --disable-silent-rules
make %{?_smp_mflags} make %{?_smp_mflags}
%check %check
LD_LIBRARY_PATH="." make check LD_LIBRARY_PATH="." make %{?_smp_mflags} check
%install %install
%make_install %make_install
@ -160,32 +162,28 @@ rm -f usr/share/guile/site/slibcat.SuSEconfig
%postun -n libguilereadline-%{greadsuff} -p /sbin/ldconfig %postun -n libguilereadline-%{greadsuff} -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %doc ABOUT-NLS AUTHORS ChangeLog GUILE-VERSION HACKING
%doc ABOUT-NLS AUTHORS COPYING* ChangeLog GUILE-VERSION HACKING %doc NEWS README THANKS
%doc LICENSE NEWS README THANKS
%{_bindir}/guile-tools %{_bindir}/guile-tools
%{_bindir}/guild %{_bindir}/guild
%{_bindir}/guile %{_bindir}/guile
%{_mandir}/man1/guile.1%{ext_man} %{_mandir}/man1/guile.1%{ext_man}
%files -n libguile-%{gsuff} %files -n libguile-%{gsuff}
%defattr(-,root,root) %license LICENSE COPYING*
%{_libdir}/libguile-%{guilevers}.so.%{libgver}* %{_libdir}/libguile-%{guilevers}.so.%{libgver}*
%files modules-%{guilemaj}_%{guilemin} %files modules-%{guilemaj}_%{guilemin}
%defattr(-,root,root)
%{_libdir}/%{name} %{_libdir}/%{name}
# Own usr/share/guile/site; side effect of not doing so is slib failing to install correctly. # Own usr/share/guile/site; side effect of not doing so is slib failing to install correctly.
%{_datadir}/%{name} %{_datadir}/%{name}
%files -n libguilereadline-%{greadsuff} %files -n libguilereadline-%{greadsuff}
%defattr(-,root,root)
# please leave .so file here [bnc#765436] # please leave .so file here [bnc#765436]
%{_libdir}/libguilereadline-v-%{libgreadver}.so %{_libdir}/libguilereadline-v-%{libgreadver}.so
%{_libdir}/libguilereadline-v-%{libgreadver}.so.%{libgreadver}* %{_libdir}/libguilereadline-v-%{libgreadver}.so.%{libgreadver}*
%files devel %files devel
%defattr(-,root,root)
%{_bindir}/guile-snarf %{_bindir}/guile-snarf
%{_bindir}/guile-config %{_bindir}/guile-config
%dir %{_includedir}/%{name} %dir %{_includedir}/%{name}