Sync with rtems-4.10.

This commit is contained in:
Ralf Corsepius
2009-09-23 11:11:04 +00:00
parent 209fadeaa5
commit a87e94df90
5 changed files with 31 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ Summary: Base package for RTEMS gdbs
Group: Development/Tools
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%{?_with_noarch_subpackages:BuildArch: noarch}
%description -n @rpmprefix@gdb-common
@@ -28,6 +29,9 @@ fi
%files -n @rpmprefix@gdb-common
%defattr(-,root,root)
%sysdir %{_prefix}
%sysdir %{_prefix}/share
%sysdir %{_infodir}
%ghost %{_infodir}/dir
%{_infodir}/gdb.info*

View File

@@ -16,14 +16,16 @@
--disable-win32-registry \
--disable-werror \
%{build_sim} \
%if "%{gdb_version}" >= "6.7"
--with-system-readline \
%endif
%{?with_system_readline:--with-system-readline} \
%if "%{gdb_version}" >= "6.6"
--with-expat \
%endif
%if "%{gdb_version}" >= "6.8.50"
%if %{with python}
--with-python \
%else
--without-python \
%endif
%endif
--with-sysroot=%{_prefix}/@tool_target@/sys-root \
--prefix=%{_prefix} --bindir=%{_bindir} \

View File

@@ -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
BuildRequires: %{_host_rpmprefix}readline-devel
%endif
%{?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

View File

@@ -6,7 +6,5 @@ cd gdb-%{gdb_version}
%{?PATCH0:%patch0 -p1}
cd ..
%if "%{gdb_version}" >= "6.7"
# Force using a system-provided libreadline
rm -f gdb-%{gdb_version}/readline/configure
%endif
%{?with_system_readline:rm -f gdb-%{gdb_version}/readline/configure}

View File

@@ -13,6 +13,9 @@ GNU gdb targetting @tool_target@.
%files -n @rpmprefix@@tool_target@-gdb
%defattr(-,root,root)
%sysdir %{_prefix}
%sysdir %{_prefix}/share
%sysdir %{_mandir}
%sysdir %{_mandir}/man1
%{_mandir}/man1/@tool_target@-*.1*