Changeset d783a1e in rtems


Ignore:
Timestamp:
Sep 1, 2011, 3:48:10 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
120adc24
Parents:
9e7758b
Message:

Move python into package specific subdir.

Location:
contrib/crossrpms/gdb
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/gdb/build.add

    r9e7758b rd783a1e  
    2020    --with-expat \
    2121    %{?with_python:--with-python}%{!?with_python:--without-python} \
     22    --with-gdb-datadir=%{_datadir}/@tool_target@-gdb \
    2223    --with-sysroot=%{_prefix}/@tool_target@/sys-root \
    2324    --prefix=%{_prefix} --bindir=%{_bindir} \
  • contrib/crossrpms/gdb/gdb.add

    r9e7758b rd783a1e  
    1313BuildRequires:  %{_host_rpmprefix}gcc
    1414
    15 %define build_sim --enable-sim
     15%global build_sim --enable-sim
    1616
    1717# Whether to build against system readline
     
    2424%bcond_with python
    2525%else
    26 %if "%{gdb_version}" >= "7.3"
    27 # Python support is broken
    28 %bcond_with python
    29 %elseif "%{gdb_version}" >= "6.8.50"
    3026%bcond_without python
    31 %else
    32 # python is unsupported
    33 %bcond_with python
    34 %endif
    3527%endif
    3628%{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}
     
    3931%if "%{_build}" != "%{_host}"
    4032# psim doesn't support Cdn-X
    41 %define build_sim --disable-sim
     33%global build_sim --disable-sim
    4234%else
    43 %define build_sim --enable-sim --enable-sim-trace
     35%global build_sim --enable-sim --enable-sim-trace
    4436%endif
    4537%endif
     
    8678BuildRequires:  %{_host_rpmprefix}ncurses-devel
    8779
    88 
    8980%if %build_infos
    9081# Required for building the infos
    9182BuildRequires:  /sbin/install-info
    9283BuildRequires:  texinfo >= 4.2
     84Requires:       @rpmprefix@gdb-common
     85
    9386%endif
    94 
    95 %if %build_infos
    96 
    97 Requires:       @rpmprefix@gdb-common
    98 %endif
    99 
    10087@SOURCES@
    10188
  • contrib/crossrpms/gdb/install.add

    r9e7758b rd783a1e  
    2727  rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a
    2828
    29 %if "%{gdb_version}" >= "7.0"
    3029# Bug in gdb-7.0, bogusly installs linux-only files
    3130  somethinguseful=0
    32   for f in ${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls/*.xml; do
     31  for f in ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls/*.xml; do
    3332    case $f in
    3433    *linux.xml) rm -f $f;;
     
    3736  done
    3837  if test $somethinguseful -eq 0; then
    39     rm -rf "${RPM_BUILD_ROOT}%{_datadir}/gdb/syscalls"
     38    rm -rf "${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls"
    4039  fi
    41 %endif
    4240
    4341%if "{gdb_version}" >= "7.3"
    4442%if ! %{with python}
    4543# gdb-7.3 doesn't honor --without-python correctly
    46   rm -rf ${RPM_BUILD_ROOT}%{_datadir}/gdb/python
     44  rm -rf ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/python
    4745%endif
    4846%endif
  • contrib/crossrpms/gdb/target-gdb.add

    r9e7758b rd783a1e  
    1616%sysdir %{_prefix}
    1717%sysdir %{_prefix}/share
     18%{?with_python:%{_datadir}/@tool_target@-gdb}
    1819
    1920%sysdir %{_mandir}
Note: See TracChangeset for help on using the changeset viewer.