diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-09-05 05:10:06 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2009-09-05 05:10:06 +0000 |
commit | 757e5de0df14bfc0ed1264e3873d3d9ec9f28f23 (patch) | |
tree | fee7dd45654afa8342bb95ecbad94fa75c98c442 /contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec | |
parent | Bump GDB_RPMREL = 2. (diff) | |
download | rtems-757e5de0df14bfc0ed1264e3873d3d9ec9f28f23.tar.bz2 |
Activate python.
Diffstat (limited to 'contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec')
-rw-r--r-- | contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec index 70cb29ba18..43b77801a4 100644 --- a/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec +++ b/contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec @@ -106,6 +106,16 @@ BuildRequires: %{_host_rpmprefix}termcap-devel BuildRequires: %{_host_rpmprefix}readline-devel BuildRequires: %{_host_rpmprefix}ncurses-devel +%if "%{gdb_version}" >= "6.8.50" +%if "%{_build}" != "%{_host}" +# Can't build python Cdn-X +%bcond_with python +%else +%bcond_without python +%endif +%endif +%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel} + Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 @@ -149,8 +159,12 @@ rm -f gdb-%{gdb_version}/readline/configure --with-expat \ %endif %if "%{gdb_version}" >= "6.8.50" +%if %{with python} + --with-python \ +%else --without-python \ %endif +%endif --prefix=%{_prefix} --bindir=%{_bindir} \ --includedir=%{_includedir} --libdir=%{_libdir} \ --mandir=%{_mandir} --infodir=%{_infodir} |