]> git.pld-linux.org Git - packages/gdb.git/commitdiff
- make building with guile support deterministic
authorKacper Kornet <draenog@pld-linux.org>
Tue, 2 Sep 2014 07:17:37 +0000 (08:17 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Tue, 2 Sep 2014 07:55:13 +0000 (08:55 +0100)
gdb.spec

index 130ce50f85bb94464007e1e5593f1d6a0b5341a4..f66e74d014e924ffc6ca5d0ffbd23a0990b85445 100644 (file)
--- a/gdb.spec
+++ b/gdb.spec
@@ -4,6 +4,7 @@
 # - change install msg to poldek in buildid-locate-rpm-pld.patch when poldek allows it. LP#493922
 #
 # Conditional build:
+%bcond_without guile           # Guile embedded scripting
 %bcond_without python          # build without python support
 
 Summary:       A GNU source-level debugger for C, C++ and Fortran
@@ -52,6 +53,7 @@ BuildRequires:        bison
 BuildRequires: expat-devel
 BuildRequires: flex
 BuildRequires: gettext-devel
+%{?with_guile:BuildRequires:   guile-devel >= 2.0}
 BuildRequires: libselinux-devel
 BuildRequires: libtool
 BuildRequires: libunwind-devel >= 0.97
@@ -226,6 +228,11 @@ cp -f /usr/share/automake/config.* .
        --with-pythondir=%{py_sitescriptdir} \
 %else
        --without-python \
+%endif
+%if %{with guile}
+       --with-guile \
+%else
+       --without-guile \
 %endif
        --disable-gdbtk \
        --disable-shared \
@@ -316,6 +323,7 @@ rm -rf $RPM_BUILD_ROOT
 %ifarch %{x8664}
 %dir %{_datadir}/gdb/auto-load%{_prefix}/lib64
 %endif
+%{?with_guile:%{_datadir}/gdb/guile}
 %{_datadir}/gdb/syscalls
 %{_datadir}/gdb/system-gdbinit
 %{_datadir}/gdb/python
This page took 0.156476 seconds and 4 git commands to generate.