Changeset 84019c5 in rtems
- Timestamp:
- 09/19/11 22:42:33 (12 years ago)
- Branches:
- 4.10
- Children:
- 224463d
- Parents:
- a1bfb33
- Location:
- contrib/crossrpms/gdb
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/crossrpms/gdb/build.add
ra1bfb33 r84019c5 18 18 %{build_sim} \ 19 19 %{?with_system_readline:--with-system-readline} \ 20 %if "%{gdb_version}" >= "6.6"21 20 --with-expat \ 22 %endif 23 %if "%{gdb_version}" >= "6.8.50" 24 %if %{with python} 25 --with-python \ 26 %else 27 --without-python \ 28 %endif 29 %endif 21 %{?with_python:--with-python}%{!?with_python:--without-python} \ 22 --with-gdb-datadir=%{_datadir}/@tool_target@-gdb \ 30 23 --with-sysroot=%{_prefix}/@tool_target@/sys-root \ 31 24 --prefix=%{_prefix} --bindir=%{_bindir} \ -
contrib/crossrpms/gdb/gdb.add
ra1bfb33 r84019c5 13 13 BuildRequires: %{_host_rpmprefix}gcc 14 14 15 %define build_sim --enable-sim 15 %global build_sim --enable-sim 16 17 # Whether to build against system readline 18 # Default: yes 19 %bcond_without system_readline 20 21 # Whether to build python support 22 %if "%{_build}" != "%{_host}" 23 # Can't build python Cdn-X 24 %bcond_with python 25 %else 26 %bcond_without python 27 %endif 28 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel} 16 29 17 30 %if "@tool_target@" == "powerpc-rtems@rtems_api@" 18 31 %if "%{_build}" != "%{_host}" 19 32 # psim doesn't support Cdn-X 20 % definebuild_sim --disable-sim33 %global build_sim --disable-sim 21 34 %else 22 % definebuild_sim --enable-sim --enable-sim-trace35 %global build_sim --enable-sim --enable-sim-trace 23 36 %endif 24 37 %endif … … 54 67 %endif 55 68 56 %if "%{gdb_version}" >= "6.6"57 69 # suse 58 70 %if "%{?suse}" >= "10.3" … … 62 74 BuildRequires: %{_host_rpmprefix}expat-devel 63 75 %endif 64 %endif65 76 66 %if "%{gdb_version}" < "6.7"67 %if "%{_build}" != "%{_host}"68 BuildRequires: %{_host_rpmprefix}termcap-devel69 %endif70 %bcond_with system_readline71 %else72 %bcond_without system_readline73 %endif74 77 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 75 78 BuildRequires: %{_host_rpmprefix}ncurses-devel 76 77 %if "%{gdb_version}" >= "6.8.50"78 %if "%{_build}" != "%{_host}"79 # Can't build python Cdn-X80 %bcond_with python81 %else82 %bcond_without python83 %endif84 %endif85 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}86 79 87 80 %if %build_infos … … 89 82 BuildRequires: /sbin/install-info 90 83 BuildRequires: texinfo >= 4.2 84 Requires: @rpmprefix@gdb-common 85 91 86 %endif 92 93 %if %build_infos94 95 Requires: @rpmprefix@gdb-common96 %endif97 98 87 @SOURCES@ 99 88 -
contrib/crossrpms/gdb/install.add
ra1bfb33 r84019c5 27 27 rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib@tool_target@-sim.a 28 28 29 %if "%{gdb_version}" >= "7.0"30 29 # Bug in gdb-7.0, bogusly installs linux-only files 31 30 somethinguseful=0 32 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do31 for f in ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/syscalls/*.xml; do 33 32 case $f in 34 33 *linux.xml) rm -f $f;; … … 37 36 done 38 37 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" 40 39 fi 40 41 %if "{gdb_version}" >= "7.3" 42 %if ! %{with python} 43 # gdb-7.3 doesn't honor --without-python correctly 44 rm -rf ${RPM_BUILD_ROOT}%{_datadir}/@tool_target@-gdb/python 41 45 %endif 42 46 %endif 43 47 cd .. 44 48 -
contrib/crossrpms/gdb/target-gdb.add
ra1bfb33 r84019c5 16 16 %sysdir %{_prefix} 17 17 %sysdir %{_prefix}/share 18 %{?with_python:%{_datadir}/@tool_target@-gdb} 18 19 19 20 %sysdir %{_mandir}
Note: See TracChangeset
for help on using the changeset viewer.