Changeset 224463d in rtems
- Timestamp:
- 09/19/11 22:43:38 (12 years ago)
- Branches:
- 4.10
- Children:
- 234e2806
- Parents:
- 84019c5
- Location:
- contrib/crossrpms/rtems4.10/bfin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
contrib/crossrpms/rtems4.10/bfin/Makefile.am
r84019c5 r224463d 20 20 GCC_OPTS += --languages=cxx 21 21 22 GDB_VERS = 6.522 GDB_VERS = 7.3.1 23 23 GDB_PKGVERS = $(GDB_VERS) 24 GDB_RPMREL = 1 224 GDB_RPMREL = 1 25 25 include ../gdb.am 26 26 GDB_OPTS += --disable-infos -
contrib/crossrpms/rtems4.10/bfin/gdb-sources.add
r84019c5 r224463d 1 Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 2 %{?_without_sources:NoSource: 0} 3 Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-6.5-bfinrtems-20090122.diff 1 BuildRequires: @rpmprefix@bfin-rtems4.10-binutils 2 BuildRequires: texinfo 3 4 # The bfin simulator silently tries to conditionally build an SDL based GUI, 5 # but fails to link correctly 6 # Force not building the GUI. 7 %{!?suse:BuildConflicts: SDL-devel} 8 %{?suse:BuildConflicts: libSDL-devel} 9 10 %if "%{gdb_version}" == "7.3.1" 11 Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2 12 Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.3.1-rtems4.10-20110919.diff 13 %endif -
contrib/crossrpms/rtems4.10/bfin/rtems-4.10-bfin-rtems4.10-gdb.spec
r84019c5 r224463d 46 46 %endif 47 47 48 %define gdb_version 6.549 %define gdb_rpmvers %{expand:%(echo 6.5| tr - _)}48 %define gdb_version 7.3.1 49 %define gdb_rpmvers %{expand:%(echo 7.3.1 | tr - _)} 50 50 51 51 Name: rtems-4.10-bfin-rtems4.10-gdb … … 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1 2%{?dist}55 Release: 1%{?dist} 56 56 License: GPL/LGPL 57 57 URL: http://sources.redhat.com/gdb … … 60 60 BuildRequires: %{_host_rpmprefix}gcc 61 61 62 %define build_sim --enable-sim 63 64 65 %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 66 79 # suse 67 80 %if "%{?suse}" >= "10.3" … … 71 84 BuildRequires: %{_host_rpmprefix}expat-devel 72 85 %endif 73 %endif 74 75 %if "%{gdb_version}" < "6.7" 76 %if "%{_build}" != "%{_host}" 77 BuildRequires: %{_host_rpmprefix}termcap-devel 78 %endif 79 %bcond_with system_readline 80 %else 81 %bcond_without system_readline 82 %endif 86 83 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 84 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 85 89 86 %if "%{gdb_version}" >= "6.8.50" 87 %if "%{_build}" != "%{_host}" 88 # Can't build python Cdn-X 89 %bcond_with python 90 %else 91 %bcond_without python 92 %endif 93 %endif 94 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel} 95 96 97 98 Source0: ftp://ftp.gnu.org/pub/gnu/gdb/gdb-%{gdb_version}.tar.bz2 99 %{?_without_sources:NoSource: 0} 100 Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-6.5-bfinrtems-20090122.diff 90 BuildRequires: rtems-4.10-bfin-rtems4.10-binutils 91 BuildRequires: texinfo 92 93 # The bfin simulator silently tries to conditionally build an SDL based GUI, 94 # but fails to link correctly 95 # Force not building the GUI. 96 %{!?suse:BuildConflicts: SDL-devel} 97 %{?suse:BuildConflicts: libSDL-devel} 98 99 %if "%{gdb_version}" == "7.3.1" 100 Source0: ftp://ftp.gnu.org/gnu/gdb/gdb-7.3.1.tar.bz2 101 Patch0: ftp://ftp.rtems.org/pub/rtems/SOURCES/4.10/gdb-7.3.1-rtems4.10-20110919.diff 102 %endif 101 103 102 104 %description … … 129 131 %{build_sim} \ 130 132 %{?with_system_readline:--with-system-readline} \ 131 %if "%{gdb_version}" >= "6.6"132 133 --with-expat \ 133 %endif 134 %if "%{gdb_version}" >= "6.8.50" 135 %if %{with python} 136 --with-python \ 137 %else 138 --without-python \ 139 %endif 140 %endif 134 %{?with_python:--with-python}%{!?with_python:--without-python} \ 135 --with-gdb-datadir=%{_datadir}/bfin-rtems4.10-gdb \ 141 136 --prefix=%{_prefix} --bindir=%{_bindir} \ 142 137 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 162 157 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libbfin-rtems4.10-sim.a 163 158 164 %if "%{gdb_version}" >= "7.0"165 159 # Bug in gdb-7.0, bogusly installs linux-only files 166 160 somethinguseful=0 167 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do161 for f in ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/syscalls/*.xml; do 168 162 case $f in 169 163 *linux.xml) rm -f $f;; … … 172 166 done 173 167 if test $somethinguseful -eq 0; then 174 rm -rf "${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls"168 rm -rf "${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/syscalls" 175 169 fi 176 %endif 177 170 171 %if "{gdb_version}" >= "7.3" 172 %if ! %{with python} 173 # gdb-7.3 doesn't honor --without-python correctly 174 rm -rf ${RPM_BUILD_ROOT}%{_datadir}/bfin-rtems4.10-gdb/python 175 %endif 176 %endif 178 177 cd .. 179 178 … … 226 225 %dir %{_prefix} 227 226 %dir %{_prefix}/share 227 %{?with_python:%{_datadir}/bfin-rtems4.10-gdb} 228 228 229 229 %dir %{_mandir}
Note: See TracChangeset
for help on using the changeset viewer.