Changeset 433f689 in rtems


Ignore:
Timestamp:
Apr 29, 2008, 2:50:12 PM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.8
Children:
355d23b7
Parents:
269f5a2
Message:

Update gdb packaging.

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

Legend:

Unmodified
Added
Removed
  • contrib/crossrpms/rtems4.8/arm/rtems-4.8-arm-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "arm-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-arm-rtems4.8-gdb
    156 
    157184GNU gdb targetting arm-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/bfin/rtems-4.8-bfin-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.5
    1729%define gdb_rpmvers %{expand:%(echo 6.5 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        3%{?dist}
     35Release:        4%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "bfin-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6483cd ..
    6584
     85%if "%{gdb_version}" >= "6.7"
     86# Force using a system-provided libreadline
     87rm -f gdb-%{gdb_version}/readline/configure
     88%endif
    6689%build
     90  export PATH="%{_bindir}:${PATH}"
    6791  mkdir -p build
    6892  cd build
     93%if "%{_build}" != "%{_host}"
     94  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     95%endif
    6996  CFLAGS="$RPM_OPT_FLAGS" \
    7097  ../gdb-%{gdb_version}/configure \
     
    89116
    90117%install
     118  export PATH="%{_bindir}:${PATH}"
    91119  rm -rf $RPM_BUILD_ROOT
    92120
     
    152180
    153181%description -n rtems-4.8-bfin-rtems4.8-gdb
    154 
    155182GNU gdb targetting bfin-rtems4.8.
    156183
  • contrib/crossrpms/rtems4.8/h8300/rtems-4.8-h8300-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "h8300-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-h8300-rtems4.8-gdb
    156 
    157184GNU gdb targetting h8300-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/i386/rtems-4.8-i386-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "i386-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-i386-rtems4.8-gdb
    156 
    157184GNU gdb targetting i386-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/m68k/rtems-4.8-m68k-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "m68k-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-m68k-rtems4.8-gdb
    156 
    157184GNU gdb targetting m68k-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/mips/rtems-4.8-mips-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "mips-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-mips-rtems4.8-gdb
    156 
    157184GNU gdb targetting mips-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/mipstx39/rtems-4.8-mipstx39-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "mipstx39-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-mipstx39-rtems4.8-gdb
    156 
    157184GNU gdb targetting mipstx39-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/powerpc/rtems-4.8-powerpc-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "powerpc-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-powerpc-rtems4.8-gdb
    156 
    157184GNU gdb targetting powerpc-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/sh/rtems-4.8-sh-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.6
    1729%define gdb_rpmvers %{expand:%(echo 6.6 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        11%{?dist}
     35Release:        12%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "sh-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-sh-rtems4.8-gdb
    156 
    157184GNU gdb targetting sh-rtems4.8.
    158185
  • contrib/crossrpms/rtems4.8/sparc/rtems-4.8-sparc-rtems4.8-gdb.spec

    r269f5a2 r433f689  
    1414%endif
    1515
     16%ifos cygwin cygwin32
     17%define optflags -O3 -pipe -march=i486 -funroll-loops
     18%define _libdir                 %{_exec_prefix}/lib
     19%define debug_package           %{nil}
     20%endif
     21
     22%if "%{_build}" != "%{_host}"
     23%define _host_rpmprefix rtems-4.8-%{_host}-
     24%else
     25%define _host_rpmprefix %{nil}
     26%endif
     27
    1628%define gdb_version 6.7.1
    1729%define gdb_rpmvers %{expand:%(echo 6.7.1 | tr - _)}
     
    2133Group:          Development/Tools
    2234Version:        %{gdb_rpmvers}
    23 Release:        2%{?dist}
     35Release:        4%{?dist}
    2436License:        GPL/LGPL
    2537URL:            http://sources.redhat.com/gdb
    2638BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
     39
     40BuildRequires:  %{_host_rpmprefix}gcc
    2741
    2842%if "%{gdb_version}" >= "6.6"
     
    3549%endif
    3650%else
    37 # fedora/redhat
    38 BuildRequires:  expat-devel
    39 %endif
    40 %endif
     51# fedora/redhat/cygwin
     52BuildRequires: %{_host_rpmprefix}expat-devel
     53%endif
     54%endif
     55
     56%if "%{gdb_version}" < "6.7"
     57%if "%{_build}" != "%{_host}"
     58BuildRequires:  %{_host_rpmprefix}termcap-devel
     59%endif
     60%endif
     61BuildRequires:  %{_host_rpmprefix}readline-devel
     62BuildRequires:  %{_host_rpmprefix}ncurses-devel
     63
    4164# Required for building the infos
    4265BuildRequires:  /sbin/install-info
    4366BuildRequires:  texinfo >= 4.2
    44 %if "sparc-rtems4.8" == "sparc-rtems4.8"
    45 BuildConflicts: libtermcap-devel termcap-devel
    46 %endif
    47 BuildRequires:  readline-devel
    48 BuildRequires:  ncurses-devel
     67
    4968
    5069Requires:       rtems-4.8-gdb-common
     
    5372%{?_without_sources:NoSource:   0}
    5473%if "%{gdb_version}" == "6.7.1"
    55 Patch0:         gdb-6.7.1-rtems4.8-20071216.diff
     74Patch0:         gdb-6.7.1-rtems4.8-20080429.diff
    5675%endif
    5776
     
    6685cd ..
    6786
     87%if "%{gdb_version}" >= "6.7"
     88# Force using a system-provided libreadline
     89rm -f gdb-%{gdb_version}/readline/configure
     90%endif
    6891%build
     92  export PATH="%{_bindir}:${PATH}"
    6993  mkdir -p build
    7094  cd build
     95%if "%{_build}" != "%{_host}"
     96  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
     97%endif
    7198  CFLAGS="$RPM_OPT_FLAGS" \
    7299  ../gdb-%{gdb_version}/configure \
     
    91118
    92119%install
     120  export PATH="%{_bindir}:${PATH}"
    93121  rm -rf $RPM_BUILD_ROOT
    94122
     
    154182
    155183%description -n rtems-4.8-sparc-rtems4.8-gdb
    156 
    157184GNU gdb targetting sparc-rtems4.8.
    158185
Note: See TracChangeset for help on using the changeset viewer.