Changeset 981a831 in rtems


Ignore:
Timestamp:
09/19/11 22:45:55 (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10
Children:
424b1bdd
Parents:
9b0be4d6
Message:

Regenerate.

Location:
contrib/crossrpms/rtems4.10
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.10/arm/rtems-4.10-arm-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/arm-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/arm-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/avr-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/avr-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
    6578%ifos mingw mingw32
    6679# Mingw lacks functions required by the h8300 simulator
     
    6881%endif
    6982
    70 %if "%{gdb_version}" >= "6.6"
    7183# suse
    7284%if "%{?suse}" >= "10.3"
     
    7688BuildRequires: %{_host_rpmprefix}expat-devel
    7789%endif
    78 %endif
    79 
    80 %if "%{gdb_version}" < "6.7"
    81 %if "%{_build}" != "%{_host}"
    82 BuildRequires:  %{_host_rpmprefix}termcap-devel
    83 %endif
    84 %bcond_with system_readline
    85 %else
    86 %bcond_without system_readline
    87 %endif
     90
    8891%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8992BuildRequires:  %{_host_rpmprefix}ncurses-devel
    90 
    91 %if "%{gdb_version}" >= "6.8.50"
    92 %if "%{_build}" != "%{_host}"
    93 # Can't build python Cdn-X
    94 %bcond_with python
    95 %else
    96 %bcond_without python
    97 %endif
    98 %endif
    99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    10093
    10194# Required for building the infos
    10295BuildRequires:  /sbin/install-info
    10396BuildRequires:  texinfo >= 4.2
    104 
    105 
    10697Requires:       rtems-4.10-gdb-common
    10798
     
    145136    %{build_sim} \
    146137    %{?with_system_readline:--with-system-readline} \
    147 %if "%{gdb_version}" >= "6.6"
    148138    --with-expat \
    149 %endif
    150 %if "%{gdb_version}" >= "6.8.50"
    151 %if %{with python}
    152     --with-python \
    153 %else
    154     --without-python \
    155 %endif
    156 %endif
     139    %{?with_python:--with-python}%{!?with_python:--without-python} \
     140    --with-gdb-datadir=%{_datadir}/h8300-rtems4.10-gdb \
    157141    --prefix=%{_prefix} --bindir=%{_bindir} \
    158142    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    184168  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libh8300-rtems4.10-sim.a
    185169
    186 %if "%{gdb_version}" >= "7.0"
    187170# Bug in gdb-7.0, bogusly installs linux-only files
    188171  somethinguseful=0
    189   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     172  for f in ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls/*.xml; do
    190173    case $f in
    191174    *linux.xml) rm -f $f;;
     
    194177  done
    195178  if test $somethinguseful -eq 0; then
    196     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     179    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls"
    197180  fi
    198 %endif
    199 
     181
     182%if "{gdb_version}" >= "7.3"
     183%if ! %{with python}
     184# gdb-7.3 doesn't honor --without-python correctly
     185  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/python
     186%endif
     187%endif
    200188  cd ..
    201189
     
    248236%dir %{_prefix}
    249237%dir %{_prefix}/share
     238%{?with_python:%{_datadir}/h8300-rtems4.10-gdb}
    250239
    251240%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/i386-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libi386-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/i386-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
    6578%ifos mingw mingw32
    6679# Mingw lacks functions required by the lm32 simulator
     
    6881%endif
    6982
    70 %if "%{gdb_version}" >= "6.6"
    7183# suse
    7284%if "%{?suse}" >= "10.3"
     
    7688BuildRequires: %{_host_rpmprefix}expat-devel
    7789%endif
    78 %endif
    79 
    80 %if "%{gdb_version}" < "6.7"
    81 %if "%{_build}" != "%{_host}"
    82 BuildRequires:  %{_host_rpmprefix}termcap-devel
    83 %endif
    84 %bcond_with system_readline
    85 %else
    86 %bcond_without system_readline
    87 %endif
     90
    8891%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8992BuildRequires:  %{_host_rpmprefix}ncurses-devel
    90 
    91 %if "%{gdb_version}" >= "6.8.50"
    92 %if "%{_build}" != "%{_host}"
    93 # Can't build python Cdn-X
    94 %bcond_with python
    95 %else
    96 %bcond_without python
    97 %endif
    98 %endif
    99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    10093
    10194# Required for building the infos
    10295BuildRequires:  /sbin/install-info
    10396BuildRequires:  texinfo >= 4.2
    104 
    105 
    10697Requires:       rtems-4.10-gdb-common
    10798
     
    145136    %{build_sim} \
    146137    %{?with_system_readline:--with-system-readline} \
    147 %if "%{gdb_version}" >= "6.6"
    148138    --with-expat \
    149 %endif
    150 %if "%{gdb_version}" >= "6.8.50"
    151 %if %{with python}
    152     --with-python \
    153 %else
    154     --without-python \
    155 %endif
    156 %endif
     139    %{?with_python:--with-python}%{!?with_python:--without-python} \
     140    --with-gdb-datadir=%{_datadir}/lm32-rtems4.10-gdb \
    157141    --prefix=%{_prefix} --bindir=%{_bindir} \
    158142    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    184168  rm -f ${RPM_BUILD_ROOT}%{_libdir}/liblm32-rtems4.10-sim.a
    185169
    186 %if "%{gdb_version}" >= "7.0"
    187170# Bug in gdb-7.0, bogusly installs linux-only files
    188171  somethinguseful=0
    189   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     172  for f in ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls/*.xml; do
    190173    case $f in
    191174    *linux.xml) rm -f $f;;
     
    194177  done
    195178  if test $somethinguseful -eq 0; then
    196     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     179    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls"
    197180  fi
    198 %endif
    199 
     181
     182%if "{gdb_version}" >= "7.3"
     183%if ! %{with python}
     184# gdb-7.3 doesn't honor --without-python correctly
     185  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/python
     186%endif
     187%endif
    200188  cd ..
    201189
     
    248236%dir %{_prefix}
    249237%dir %{_prefix}/share
     238%{?with_python:%{_datadir}/lm32-rtems4.10-gdb}
    250239
    251240%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
    6578%ifos mingw mingw32
    6679# Mingw lacks functions required by the m32c simulator
     
    6881%endif
    6982
    70 %if "%{gdb_version}" >= "6.6"
    7183# suse
    7284%if "%{?suse}" >= "10.3"
     
    7688BuildRequires: %{_host_rpmprefix}expat-devel
    7789%endif
    78 %endif
    79 
    80 %if "%{gdb_version}" < "6.7"
    81 %if "%{_build}" != "%{_host}"
    82 BuildRequires:  %{_host_rpmprefix}termcap-devel
    83 %endif
    84 %bcond_with system_readline
    85 %else
    86 %bcond_without system_readline
    87 %endif
     90
    8891%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8992BuildRequires:  %{_host_rpmprefix}ncurses-devel
    90 
    91 %if "%{gdb_version}" >= "6.8.50"
    92 %if "%{_build}" != "%{_host}"
    93 # Can't build python Cdn-X
    94 %bcond_with python
    95 %else
    96 %bcond_without python
    97 %endif
    98 %endif
    99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    10093
    10194# Required for building the infos
    10295BuildRequires:  /sbin/install-info
    10396BuildRequires:  texinfo >= 4.2
    104 
    105 
    10697Requires:       rtems-4.10-gdb-common
    10798
     
    145136    %{build_sim} \
    146137    %{?with_system_readline:--with-system-readline} \
    147 %if "%{gdb_version}" >= "6.6"
    148138    --with-expat \
    149 %endif
    150 %if "%{gdb_version}" >= "6.8.50"
    151 %if %{with python}
    152     --with-python \
    153 %else
    154     --without-python \
    155 %endif
    156 %endif
     139    %{?with_python:--with-python}%{!?with_python:--without-python} \
     140    --with-gdb-datadir=%{_datadir}/m32c-rtems4.10-gdb \
    157141    --prefix=%{_prefix} --bindir=%{_bindir} \
    158142    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    184168  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32c-rtems4.10-sim.a
    185169
    186 %if "%{gdb_version}" >= "7.0"
    187170# Bug in gdb-7.0, bogusly installs linux-only files
    188171  somethinguseful=0
    189   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     172  for f in ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls/*.xml; do
    190173    case $f in
    191174    *linux.xml) rm -f $f;;
     
    194177  done
    195178  if test $somethinguseful -eq 0; then
    196     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     179    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls"
    197180  fi
    198 %endif
    199 
     181
     182%if "{gdb_version}" >= "7.3"
     183%if ! %{with python}
     184# gdb-7.3 doesn't honor --without-python correctly
     185  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/python
     186%endif
     187%endif
    200188  cd ..
    201189
     
    248236%dir %{_prefix}
    249237%dir %{_prefix}/share
     238%{?with_python:%{_datadir}/m32c-rtems4.10-gdb}
    250239
    251240%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/m32r-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32r-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/m32r-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/m68k-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm68k-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/m68k-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/mips-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmips-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/mips-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/mipstx39/rtems-4.10-mipstx39-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
    6578%ifos mingw mingw32
    6679# Mingw lacks functions required by the mipstx39 simulator
     
    6881%endif
    6982
    70 %if "%{gdb_version}" >= "6.6"
    7183# suse
    7284%if "%{?suse}" >= "10.3"
     
    7688BuildRequires: %{_host_rpmprefix}expat-devel
    7789%endif
    78 %endif
    79 
    80 %if "%{gdb_version}" < "6.7"
    81 %if "%{_build}" != "%{_host}"
    82 BuildRequires:  %{_host_rpmprefix}termcap-devel
    83 %endif
    84 %bcond_with system_readline
    85 %else
    86 %bcond_without system_readline
    87 %endif
     90
    8891%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8992BuildRequires:  %{_host_rpmprefix}ncurses-devel
    90 
    91 %if "%{gdb_version}" >= "6.8.50"
    92 %if "%{_build}" != "%{_host}"
    93 # Can't build python Cdn-X
    94 %bcond_with python
    95 %else
    96 %bcond_without python
    97 %endif
    98 %endif
    99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    10093
    10194# Required for building the infos
    10295BuildRequires:  /sbin/install-info
    10396BuildRequires:  texinfo >= 4.2
    104 
    105 
    10697Requires:       rtems-4.10-gdb-common
    10798
     
    145136    %{build_sim} \
    146137    %{?with_system_readline:--with-system-readline} \
    147 %if "%{gdb_version}" >= "6.6"
    148138    --with-expat \
    149 %endif
    150 %if "%{gdb_version}" >= "6.8.50"
    151 %if %{with python}
    152     --with-python \
    153 %else
    154     --without-python \
    155 %endif
    156 %endif
     139    %{?with_python:--with-python}%{!?with_python:--without-python} \
     140    --with-gdb-datadir=%{_datadir}/mipstx39-rtems4.10-gdb \
    157141    --prefix=%{_prefix} --bindir=%{_bindir} \
    158142    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    184168  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmipstx39-rtems4.10-sim.a
    185169
    186 %if "%{gdb_version}" >= "7.0"
    187170# Bug in gdb-7.0, bogusly installs linux-only files
    188171  somethinguseful=0
    189   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     172  for f in ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls/*.xml; do
    190173    case $f in
    191174    *linux.xml) rm -f $f;;
     
    194177  done
    195178  if test $somethinguseful -eq 0; then
    196     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     179    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls"
    197180  fi
    198 %endif
    199 
     181
     182%if "{gdb_version}" >= "7.3"
     183%if ! %{with python}
     184# gdb-7.3 doesn't honor --without-python correctly
     185  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/python
     186%endif
     187%endif
    200188  cd ..
    201189
     
    248236%dir %{_prefix}
    249237%dir %{_prefix}/share
     238%{?with_python:%{_datadir}/mipstx39-rtems4.10-gdb}
    250239
    251240%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    6376
    6477%if "%{_build}" != "%{_host}"
    6578# psim doesn't support Cdn-X
    66 %define build_sim --disable-sim
    67 %else
    68 %define build_sim --enable-sim --enable-sim-trace
    69 %endif
    70 
    71 %if "%{gdb_version}" >= "6.6"
     79%global build_sim --disable-sim
     80%else
     81%global build_sim --enable-sim --enable-sim-trace
     82%endif
     83
    7284# suse
    7385%if "%{?suse}" >= "10.3"
     
    7789BuildRequires: %{_host_rpmprefix}expat-devel
    7890%endif
    79 %endif
    80 
    81 %if "%{gdb_version}" < "6.7"
    82 %if "%{_build}" != "%{_host}"
    83 BuildRequires:  %{_host_rpmprefix}termcap-devel
    84 %endif
    85 %bcond_with system_readline
    86 %else
    87 %bcond_without system_readline
    88 %endif
     91
    8992%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    9093BuildRequires:  %{_host_rpmprefix}ncurses-devel
    91 
    92 %if "%{gdb_version}" >= "6.8.50"
    93 %if "%{_build}" != "%{_host}"
    94 # Can't build python Cdn-X
    95 %bcond_with python
    96 %else
    97 %bcond_without python
    98 %endif
    99 %endif
    100 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    10194
    10295# Required for building the infos
    10396BuildRequires:  /sbin/install-info
    10497BuildRequires:  texinfo >= 4.2
    105 
    106 
    10798Requires:       rtems-4.10-gdb-common
    10899
     
    146137    %{build_sim} \
    147138    %{?with_system_readline:--with-system-readline} \
    148 %if "%{gdb_version}" >= "6.6"
    149139    --with-expat \
    150 %endif
    151 %if "%{gdb_version}" >= "6.8.50"
    152 %if %{with python}
    153     --with-python \
    154 %else
    155     --without-python \
    156 %endif
    157 %endif
     140    %{?with_python:--with-python}%{!?with_python:--without-python} \
     141    --with-gdb-datadir=%{_datadir}/powerpc-rtems4.10-gdb \
    158142    --prefix=%{_prefix} --bindir=%{_bindir} \
    159143    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    185169  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpowerpc-rtems4.10-sim.a
    186170
    187 %if "%{gdb_version}" >= "7.0"
    188171# Bug in gdb-7.0, bogusly installs linux-only files
    189172  somethinguseful=0
    190   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     173  for f in ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls/*.xml; do
    191174    case $f in
    192175    *linux.xml) rm -f $f;;
     
    195178  done
    196179  if test $somethinguseful -eq 0; then
    197     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     180    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls"
    198181  fi
    199 %endif
    200 
     182
     183%if "{gdb_version}" >= "7.3"
     184%if ! %{with python}
     185# gdb-7.3 doesn't honor --without-python correctly
     186  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/python
     187%endif
     188%endif
    201189  cd ..
    202190
     
    249237%dir %{_prefix}
    250238%dir %{_prefix}/share
     239%{?with_python:%{_datadir}/powerpc-rtems4.10-gdb}
    251240
    252241%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
    65 
    66 %if "%{gdb_version}" >= "6.6"
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
     78
    6779# suse
    6880%if "%{?suse}" >= "10.3"
     
    7284BuildRequires: %{_host_rpmprefix}expat-devel
    7385%endif
    74 %endif
    75 
    76 %if "%{gdb_version}" < "6.7"
    77 %if "%{_build}" != "%{_host}"
    78 BuildRequires:  %{_host_rpmprefix}termcap-devel
    79 %endif
    80 %bcond_with system_readline
    81 %else
    82 %bcond_without system_readline
    83 %endif
     86
    8487%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8588BuildRequires:  %{_host_rpmprefix}ncurses-devel
    86 
    87 %if "%{gdb_version}" >= "6.8.50"
    88 %if "%{_build}" != "%{_host}"
    89 # Can't build python Cdn-X
    90 %bcond_with python
    91 %else
    92 %bcond_without python
    93 %endif
    94 %endif
    95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    9689
    9790# Required for building the infos
    9891BuildRequires:  /sbin/install-info
    9992BuildRequires:  texinfo >= 4.2
    100 
    101 
    10293Requires:       rtems-4.10-gdb-common
    10394
     
    141132    %{build_sim} \
    142133    %{?with_system_readline:--with-system-readline} \
    143 %if "%{gdb_version}" >= "6.6"
    144134    --with-expat \
    145 %endif
    146 %if "%{gdb_version}" >= "6.8.50"
    147 %if %{with python}
    148     --with-python \
    149 %else
    150     --without-python \
    151 %endif
    152 %endif
     135    %{?with_python:--with-python}%{!?with_python:--without-python} \
     136    --with-gdb-datadir=%{_datadir}/sh-rtems4.10-gdb \
    153137    --prefix=%{_prefix} --bindir=%{_bindir} \
    154138    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    180164  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsh-rtems4.10-sim.a
    181165
    182 %if "%{gdb_version}" >= "7.0"
    183166# Bug in gdb-7.0, bogusly installs linux-only files
    184167  somethinguseful=0
    185   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     168  for f in ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls/*.xml; do
    186169    case $f in
    187170    *linux.xml) rm -f $f;;
     
    190173  done
    191174  if test $somethinguseful -eq 0; then
    192     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     175    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls"
    193176  fi
    194 %endif
    195 
     177
     178%if "{gdb_version}" >= "7.3"
     179%if ! %{with python}
     180# gdb-7.3 doesn't honor --without-python correctly
     181  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/python
     182%endif
     183%endif
    196184  cd ..
    197185
     
    244232%dir %{_prefix}
    245233%dir %{_prefix}/share
     234%{?with_python:%{_datadir}/sh-rtems4.10-gdb}
    246235
    247236%dir %{_mandir}
  • contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gdb.spec

    r9b0be4d6 r981a831  
    5353Group:          Development/Tools
    5454Version:        %{gdb_rpmvers}
    55 Release:        1%{?dist}
     55Release:        2%{?dist}
    5656License:        GPL/LGPL
    5757URL:            http://sources.redhat.com/gdb
     
    6060BuildRequires:  %{_host_rpmprefix}gcc
    6161
    62 %define build_sim --enable-sim
    63 
    64 %define build_sim --enable-sim --enable-sim-trace
     62%global build_sim --enable-sim
     63
     64# Whether to build against system readline
     65# Default: yes
     66%bcond_without system_readline
     67
     68# Whether to build python support
     69%if "%{_build}" != "%{_host}"
     70# Can't build python Cdn-X
     71%bcond_with python
     72%else
     73%bcond_without python
     74%endif
     75%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     76
     77%global build_sim --enable-sim --enable-sim-trace
    6578%ifos mingw mingw32
    6679# Mingw lacks functions required by the sparc simulator
     
    6881%endif
    6982
    70 %if "%{gdb_version}" >= "6.6"
    7183# suse
    7284%if "%{?suse}" >= "10.3"
     
    7688BuildRequires: %{_host_rpmprefix}expat-devel
    7789%endif
    78 %endif
    79 
    80 %if "%{gdb_version}" < "6.7"
    81 %if "%{_build}" != "%{_host}"
    82 BuildRequires:  %{_host_rpmprefix}termcap-devel
    83 %endif
    84 %bcond_with system_readline
    85 %else
    86 %bcond_without system_readline
    87 %endif
     90
    8891%{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel}
    8992BuildRequires:  %{_host_rpmprefix}ncurses-devel
    90 
    91 %if "%{gdb_version}" >= "6.8.50"
    92 %if "%{_build}" != "%{_host}"
    93 # Can't build python Cdn-X
    94 %bcond_with python
    95 %else
    96 %bcond_without python
    97 %endif
    98 %endif
    99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
    10093
    10194# Required for building the infos
    10295BuildRequires:  /sbin/install-info
    10396BuildRequires:  texinfo >= 4.2
    104 
    105 
    10697Requires:       rtems-4.10-gdb-common
    10798
     
    145136    %{build_sim} \
    146137    %{?with_system_readline:--with-system-readline} \
    147 %if "%{gdb_version}" >= "6.6"
    148138    --with-expat \
    149 %endif
    150 %if "%{gdb_version}" >= "6.8.50"
    151 %if %{with python}
    152     --with-python \
    153 %else
    154     --without-python \
    155 %endif
    156 %endif
     139    %{?with_python:--with-python}%{!?with_python:--without-python} \
     140    --with-gdb-datadir=%{_datadir}/sparc-rtems4.10-gdb \
    157141    --prefix=%{_prefix} --bindir=%{_bindir} \
    158142    --includedir=%{_includedir} --libdir=%{_libdir} \
     
    184168  rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsparc-rtems4.10-sim.a
    185169
    186 %if "%{gdb_version}" >= "7.0"
    187170# Bug in gdb-7.0, bogusly installs linux-only files
    188171  somethinguseful=0
    189   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     172  for f in ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls/*.xml; do
    190173    case $f in
    191174    *linux.xml) rm -f $f;;
     
    194177  done
    195178  if test $somethinguseful -eq 0; then
    196     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     179    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls"
    197180  fi
    198 %endif
    199 
     181
     182%if "{gdb_version}" >= "7.3"
     183%if ! %{with python}
     184# gdb-7.3 doesn't honor --without-python correctly
     185  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/python
     186%endif
     187%endif
    200188  cd ..
    201189
     
    248236%dir %{_prefix}
    249237%dir %{_prefix}/share
     238%{?with_python:%{_datadir}/sparc-rtems4.10-gdb}
    250239
    251240%dir %{_mandir}
Note: See TracChangeset for help on using the changeset viewer.