mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Regenerate.
This commit is contained in:
@@ -52,18 +52,30 @@ Name: rtems-4.10-arm-rtems4.10-gdb
|
||||
Summary: Gdb for target arm-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/arm-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting arm-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/arm-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,18 +52,30 @@ Name: rtems-4.10-avr-rtems4.10-gdb
|
||||
Summary: Gdb for target avr-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/avr-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting avr-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/avr-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,22 +52,34 @@ Name: rtems-4.10-h8300-rtems4.10-gdb
|
||||
Summary: Gdb for target h8300-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the h8300 simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -75,34 +87,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -144,16 +135,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/h8300-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -183,20 +167,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libh8300-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -247,6 +235,7 @@ GNU gdb targetting h8300-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/h8300-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,18 +52,30 @@ Name: rtems-4.10-i386-rtems4.10-gdb
|
||||
Summary: Gdb for target i386-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/i386-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libi386-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting i386-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/i386-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,22 +52,34 @@ Name: rtems-4.10-lm32-rtems4.10-gdb
|
||||
Summary: Gdb for target lm32-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the lm32 simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -75,34 +87,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -144,16 +135,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/lm32-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -183,20 +167,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/liblm32-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -247,6 +235,7 @@ GNU gdb targetting lm32-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/lm32-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,22 +52,34 @@ Name: rtems-4.10-m32c-rtems4.10-gdb
|
||||
Summary: Gdb for target m32c-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the m32c simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -75,34 +87,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -144,16 +135,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/m32c-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -183,20 +167,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32c-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -247,6 +235,7 @@ GNU gdb targetting m32c-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/m32c-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,18 +52,30 @@ Name: rtems-4.10-m32r-rtems4.10-gdb
|
||||
Summary: Gdb for target m32r-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/m32r-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32r-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting m32r-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/m32r-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,18 +52,30 @@ Name: rtems-4.10-m68k-rtems4.10-gdb
|
||||
Summary: Gdb for target m68k-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/m68k-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm68k-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting m68k-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/m68k-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,18 +52,30 @@ Name: rtems-4.10-mips-rtems4.10-gdb
|
||||
Summary: Gdb for target mips-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/mips-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmips-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting mips-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/mips-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,22 +52,34 @@ Name: rtems-4.10-mipstx39-rtems4.10-gdb
|
||||
Summary: Gdb for target mipstx39-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the mipstx39 simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -75,34 +87,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -144,16 +135,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/mipstx39-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -183,20 +167,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmipstx39-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -247,6 +235,7 @@ GNU gdb targetting mipstx39-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/mipstx39-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,23 +52,35 @@ Name: rtems-4.10-powerpc-rtems4.10-gdb
|
||||
Summary: Gdb for target powerpc-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# psim doesn't support Cdn-X
|
||||
%define build_sim --disable-sim
|
||||
%global build_sim --disable-sim
|
||||
%else
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -76,34 +88,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -145,16 +136,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/powerpc-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -184,20 +168,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpowerpc-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -248,6 +236,7 @@ GNU gdb targetting powerpc-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/powerpc-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,18 +52,30 @@ Name: rtems-4.10-sh-rtems4.10-gdb
|
||||
Summary: Gdb for target sh-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -71,34 +83,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -140,16 +131,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/sh-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -179,20 +163,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsh-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -243,6 +231,7 @@ GNU gdb targetting sh-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/sh-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
@@ -52,22 +52,34 @@ Name: rtems-4.10-sparc-rtems4.10-gdb
|
||||
Summary: Gdb for target sparc-rtems4.10
|
||||
Group: Development/Tools
|
||||
Version: %{gdb_rpmvers}
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: GPL/LGPL
|
||||
URL: http://sources.redhat.com/gdb
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: %{_host_rpmprefix}gcc
|
||||
|
||||
%define build_sim --enable-sim
|
||||
%global build_sim --enable-sim
|
||||
|
||||
%define build_sim --enable-sim --enable-sim-trace
|
||||
# Whether to build against system readline
|
||||
# Default: yes
|
||||
%bcond_without system_readline
|
||||
|
||||
# Whether to build python support
|
||||
%if "%{_build}" != "%{_host}"
|
||||
# Can't build python Cdn-X
|
||||
%bcond_with python
|
||||
%else
|
||||
%bcond_without python
|
||||
%endif
|
||||
%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
|
||||
|
||||
%global build_sim --enable-sim --enable-sim-trace
|
||||
%ifos mingw mingw32
|
||||
# Mingw lacks functions required by the sparc simulator
|
||||
%define build_sim --disable-sim
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" >= "6.6"
|
||||
# suse
|
||||
%if "%{?suse}" >= "10.3"
|
||||
BuildRequires: libexpat-devel
|
||||
@@ -75,34 +87,13 @@ BuildRequires: libexpat-devel
|
||||
# Fedora/CentOS/Cygwin/MinGW
|
||||
BuildRequires: %{_host_rpmprefix}expat-devel
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if "%{gdb_version}" < "6.7"
|
||||
%if "%{_build}" != "%{_host}"
|
||||
BuildRequires: %{_host_rpmprefix}termcap-devel
|
||||
%endif
|
||||
%bcond_with system_readline
|
||||
%else
|
||||
%bcond_without system_readline
|
||||
%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}
|
||||
|
||||
# Required for building the infos
|
||||
BuildRequires: /sbin/install-info
|
||||
BuildRequires: texinfo >= 4.2
|
||||
|
||||
|
||||
Requires: rtems-4.10-gdb-common
|
||||
|
||||
%if "%{gdb_version}" == "7.2"
|
||||
@@ -144,16 +135,9 @@ cd ..
|
||||
--disable-werror \
|
||||
%{build_sim} \
|
||||
%{?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_python:--with-python}%{!?with_python:--without-python} \
|
||||
--with-gdb-datadir=%{_datadir}/sparc-rtems4.10-gdb \
|
||||
--prefix=%{_prefix} --bindir=%{_bindir} \
|
||||
--includedir=%{_includedir} --libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} --infodir=%{_infodir}
|
||||
@@ -183,20 +167,24 @@ cd ..
|
||||
# host library, installed to a bogus directory
|
||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsparc-rtems4.10-sim.a
|
||||
|
||||
%if "%{gdb_version}" >= "7.0"
|
||||
# Bug in gdb-7.0, bogusly installs linux-only files
|
||||
somethinguseful=0
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
|
||||
for f in ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls/*.xml; do
|
||||
case $f in
|
||||
*linux.xml) rm -f $f;;
|
||||
*.xml) somethinguseful=1;;
|
||||
esac
|
||||
done
|
||||
if test $somethinguseful -eq 0; then
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
|
||||
rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls"
|
||||
fi
|
||||
%endif
|
||||
|
||||
%if "{gdb_version}" >= "7.3"
|
||||
%if ! %{with python}
|
||||
# gdb-7.3 doesn't honor --without-python correctly
|
||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/python
|
||||
%endif
|
||||
%endif
|
||||
cd ..
|
||||
|
||||
# Extract %%__os_install_post into os_install_post~
|
||||
@@ -247,6 +235,7 @@ GNU gdb targetting sparc-rtems4.10.
|
||||
%defattr(-,root,root)
|
||||
%dir %{_prefix}
|
||||
%dir %{_prefix}/share
|
||||
%{?with_python:%{_datadir}/sparc-rtems4.10-gdb}
|
||||
|
||||
%dir %{_mandir}
|
||||
%dir %{_mandir}/man1
|
||||
|
||||
Reference in New Issue
Block a user