diff options
Diffstat (limited to 'contrib/crossrpms/gdb/gdb.add')
-rw-r--r-- | contrib/crossrpms/gdb/gdb.add | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/contrib/crossrpms/gdb/gdb.add b/contrib/crossrpms/gdb/gdb.add index efd3a5e0b8..7c869f5502 100644 --- a/contrib/crossrpms/gdb/gdb.add +++ b/contrib/crossrpms/gdb/gdb.add @@ -55,10 +55,27 @@ BuildRequires: %{_host_rpmprefix}expat-devel %if "%{_build}" != "%{_host}" BuildRequires: %{_host_rpmprefix}termcap-devel %endif +%bcond_with system_readline +%else +%if 0%{?fedora} >= 12 +%bcond_with system_readline +%else +%bcond_without system_readline +%endif %endif -BuildRequires: %{_host_rpmprefix}readline-devel +%{?with_system_readline: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} + %if %build_infos # Required for building the infos BuildRequires: /sbin/install-info |