mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-26 06:08:20 +00:00
Sync with rtems-4.10.
This commit is contained in:
@@ -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*
|
||||
|
||||
@@ -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} \
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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*
|
||||
|
||||
Reference in New Issue
Block a user