diff --git a/gdb.spec b/gdb.spec index eb9d52730f883b142537c780425e0a380bcf968f..1db7842aa769805e90f209c21f1d7dab546151be 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,6 +1,7 @@ +%bcond_with guile Name: gdb Version: 14.1 -Release: 3 +Release: 4 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL-1.3 Source: https://ftp.gnu.org/gnu/gdb/gdb-%{version}.tar.xz @@ -101,7 +102,10 @@ BuildRequires: readline-devel >= 6.2-4 BuildRequires: gcc-c++ ncurses-devel texinfo gettext flex bison BuildRequires: expat-devel xz-devel rpm-devel zlib-devel libselinux-devel BuildRequires: python3-devel texinfo-tex -BuildRequires: perl-podlators libbabeltrace-devel guile-devel mpfr-devel gmp-devel +BuildRequires: perl-podlators libbabeltrace-devel mpfr-devel gmp-devel +%if %{with guile} +BuildRequires: guile-devel +%endif %ifarch %{ix86} x86_64 BuildRequires: libipt-devel %endif @@ -185,7 +189,11 @@ export CXXFLAGS="$CFLAGS" --without-stage1-ldflags \ --disable-libmcheck \ --with-babeltrace \ +%if %{with guile} --with-guile \ +%else + --without-guile \ +%endif --with-system-readline \ --with-expat \ --without-libexpat-prefix \ @@ -332,9 +340,13 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py %doc %{gdb_build}/gdb/doc/{gdb,annotate}.{html,pdf} %{_infodir}/annotate.info* %{_infodir}/gdb.info* -%{_infodir}/ctf-spec.info.gz +%{_infodir}/ctf-spec.info* %changelog +* Tue Aug 06 2024 Funda Wang - 14.1-4 +- make guile requirment conditioned +- bootstrap build without guile + * Thu Jun 13 2024 wangxiao - 14.1-3 - modify gdb-help package's license GFDL to GFDL-1.3-or-later