Changeset 981a831 in rtems
- Timestamp:
- 09/19/11 22:45:55 (12 years ago)
- Branches:
- 4.10
- Children:
- 424b1bdd
- Parents:
- 9b0be4d6
- 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 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libarm-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/arm-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/arm-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/avr/rtems-4.10-avr-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libavr-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/avr-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/avr-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/h8300/rtems-4.10-h8300-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 65 78 %ifos mingw mingw32 66 79 # Mingw lacks functions required by the h8300 simulator … … 68 81 %endif 69 82 70 %if "%{gdb_version}" >= "6.6"71 83 # suse 72 84 %if "%{?suse}" >= "10.3" … … 76 88 BuildRequires: %{_host_rpmprefix}expat-devel 77 89 %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 88 91 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 89 92 BuildRequires: %{_host_rpmprefix}ncurses-devel 90 91 %if "%{gdb_version}" >= "6.8.50"92 %if "%{_build}" != "%{_host}"93 # Can't build python Cdn-X94 %bcond_with python95 %else96 %bcond_without python97 %endif98 %endif99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}100 93 101 94 # Required for building the infos 102 95 BuildRequires: /sbin/install-info 103 96 BuildRequires: texinfo >= 4.2 104 105 106 97 Requires: rtems-4.10-gdb-common 107 98 … … 145 136 %{build_sim} \ 146 137 %{?with_system_readline:--with-system-readline} \ 147 %if "%{gdb_version}" >= "6.6"148 138 --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 \ 157 141 --prefix=%{_prefix} --bindir=%{_bindir} \ 158 142 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 184 168 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libh8300-rtems4.10-sim.a 185 169 186 %if "%{gdb_version}" >= "7.0"187 170 # Bug in gdb-7.0, bogusly installs linux-only files 188 171 somethinguseful=0 189 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do172 for f in ${RPM_BUILD_ROOT}%{_datadir}/h8300-rtems4.10-gdb/syscalls/*.xml; do 190 173 case $f in 191 174 *linux.xml) rm -f $f;; … … 194 177 done 195 178 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" 197 180 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 200 188 cd .. 201 189 … … 248 236 %dir %{_prefix} 249 237 %dir %{_prefix}/share 238 %{?with_python:%{_datadir}/h8300-rtems4.10-gdb} 250 239 251 240 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/i386/rtems-4.10-i386-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libi386-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/i386-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/i386-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/lm32/rtems-4.10-lm32-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 65 78 %ifos mingw mingw32 66 79 # Mingw lacks functions required by the lm32 simulator … … 68 81 %endif 69 82 70 %if "%{gdb_version}" >= "6.6"71 83 # suse 72 84 %if "%{?suse}" >= "10.3" … … 76 88 BuildRequires: %{_host_rpmprefix}expat-devel 77 89 %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 88 91 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 89 92 BuildRequires: %{_host_rpmprefix}ncurses-devel 90 91 %if "%{gdb_version}" >= "6.8.50"92 %if "%{_build}" != "%{_host}"93 # Can't build python Cdn-X94 %bcond_with python95 %else96 %bcond_without python97 %endif98 %endif99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}100 93 101 94 # Required for building the infos 102 95 BuildRequires: /sbin/install-info 103 96 BuildRequires: texinfo >= 4.2 104 105 106 97 Requires: rtems-4.10-gdb-common 107 98 … … 145 136 %{build_sim} \ 146 137 %{?with_system_readline:--with-system-readline} \ 147 %if "%{gdb_version}" >= "6.6"148 138 --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 \ 157 141 --prefix=%{_prefix} --bindir=%{_bindir} \ 158 142 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 184 168 rm -f ${RPM_BUILD_ROOT}%{_libdir}/liblm32-rtems4.10-sim.a 185 169 186 %if "%{gdb_version}" >= "7.0"187 170 # Bug in gdb-7.0, bogusly installs linux-only files 188 171 somethinguseful=0 189 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do172 for f in ${RPM_BUILD_ROOT}%{_datadir}/lm32-rtems4.10-gdb/syscalls/*.xml; do 190 173 case $f in 191 174 *linux.xml) rm -f $f;; … … 194 177 done 195 178 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" 197 180 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 200 188 cd .. 201 189 … … 248 236 %dir %{_prefix} 249 237 %dir %{_prefix}/share 238 %{?with_python:%{_datadir}/lm32-rtems4.10-gdb} 250 239 251 240 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/m32c/rtems-4.10-m32c-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 65 78 %ifos mingw mingw32 66 79 # Mingw lacks functions required by the m32c simulator … … 68 81 %endif 69 82 70 %if "%{gdb_version}" >= "6.6"71 83 # suse 72 84 %if "%{?suse}" >= "10.3" … … 76 88 BuildRequires: %{_host_rpmprefix}expat-devel 77 89 %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 88 91 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 89 92 BuildRequires: %{_host_rpmprefix}ncurses-devel 90 91 %if "%{gdb_version}" >= "6.8.50"92 %if "%{_build}" != "%{_host}"93 # Can't build python Cdn-X94 %bcond_with python95 %else96 %bcond_without python97 %endif98 %endif99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}100 93 101 94 # Required for building the infos 102 95 BuildRequires: /sbin/install-info 103 96 BuildRequires: texinfo >= 4.2 104 105 106 97 Requires: rtems-4.10-gdb-common 107 98 … … 145 136 %{build_sim} \ 146 137 %{?with_system_readline:--with-system-readline} \ 147 %if "%{gdb_version}" >= "6.6"148 138 --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 \ 157 141 --prefix=%{_prefix} --bindir=%{_bindir} \ 158 142 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 184 168 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32c-rtems4.10-sim.a 185 169 186 %if "%{gdb_version}" >= "7.0"187 170 # Bug in gdb-7.0, bogusly installs linux-only files 188 171 somethinguseful=0 189 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do172 for f in ${RPM_BUILD_ROOT}%{_datadir}/m32c-rtems4.10-gdb/syscalls/*.xml; do 190 173 case $f in 191 174 *linux.xml) rm -f $f;; … … 194 177 done 195 178 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" 197 180 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 200 188 cd .. 201 189 … … 248 236 %dir %{_prefix} 249 237 %dir %{_prefix}/share 238 %{?with_python:%{_datadir}/m32c-rtems4.10-gdb} 250 239 251 240 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/m32r/rtems-4.10-m32r-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm32r-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/m32r-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/m32r-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/m68k/rtems-4.10-m68k-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libm68k-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/m68k-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/m68k-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/mips/rtems-4.10-mips-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmips-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/mips-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/mips-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/mipstx39/rtems-4.10-mipstx39-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 65 78 %ifos mingw mingw32 66 79 # Mingw lacks functions required by the mipstx39 simulator … … 68 81 %endif 69 82 70 %if "%{gdb_version}" >= "6.6"71 83 # suse 72 84 %if "%{?suse}" >= "10.3" … … 76 88 BuildRequires: %{_host_rpmprefix}expat-devel 77 89 %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 88 91 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 89 92 BuildRequires: %{_host_rpmprefix}ncurses-devel 90 91 %if "%{gdb_version}" >= "6.8.50"92 %if "%{_build}" != "%{_host}"93 # Can't build python Cdn-X94 %bcond_with python95 %else96 %bcond_without python97 %endif98 %endif99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}100 93 101 94 # Required for building the infos 102 95 BuildRequires: /sbin/install-info 103 96 BuildRequires: texinfo >= 4.2 104 105 106 97 Requires: rtems-4.10-gdb-common 107 98 … … 145 136 %{build_sim} \ 146 137 %{?with_system_readline:--with-system-readline} \ 147 %if "%{gdb_version}" >= "6.6"148 138 --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 \ 157 141 --prefix=%{_prefix} --bindir=%{_bindir} \ 158 142 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 184 168 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libmipstx39-rtems4.10-sim.a 185 169 186 %if "%{gdb_version}" >= "7.0"187 170 # Bug in gdb-7.0, bogusly installs linux-only files 188 171 somethinguseful=0 189 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do172 for f in ${RPM_BUILD_ROOT}%{_datadir}/mipstx39-rtems4.10-gdb/syscalls/*.xml; do 190 173 case $f in 191 174 *linux.xml) rm -f $f;; … … 194 177 done 195 178 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" 197 180 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 200 188 cd .. 201 189 … … 248 236 %dir %{_prefix} 249 237 %dir %{_prefix}/share 238 %{?with_python:%{_datadir}/mipstx39-rtems4.10-gdb} 250 239 251 240 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/powerpc/rtems-4.10-powerpc-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 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} 63 76 64 77 %if "%{_build}" != "%{_host}" 65 78 # 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 72 84 # suse 73 85 %if "%{?suse}" >= "10.3" … … 77 89 BuildRequires: %{_host_rpmprefix}expat-devel 78 90 %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 89 92 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 90 93 BuildRequires: %{_host_rpmprefix}ncurses-devel 91 92 %if "%{gdb_version}" >= "6.8.50"93 %if "%{_build}" != "%{_host}"94 # Can't build python Cdn-X95 %bcond_with python96 %else97 %bcond_without python98 %endif99 %endif100 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}101 94 102 95 # Required for building the infos 103 96 BuildRequires: /sbin/install-info 104 97 BuildRequires: texinfo >= 4.2 105 106 107 98 Requires: rtems-4.10-gdb-common 108 99 … … 146 137 %{build_sim} \ 147 138 %{?with_system_readline:--with-system-readline} \ 148 %if "%{gdb_version}" >= "6.6"149 139 --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 \ 158 142 --prefix=%{_prefix} --bindir=%{_bindir} \ 159 143 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 185 169 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libpowerpc-rtems4.10-sim.a 186 170 187 %if "%{gdb_version}" >= "7.0"188 171 # Bug in gdb-7.0, bogusly installs linux-only files 189 172 somethinguseful=0 190 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do173 for f in ${RPM_BUILD_ROOT}%{_datadir}/powerpc-rtems4.10-gdb/syscalls/*.xml; do 191 174 case $f in 192 175 *linux.xml) rm -f $f;; … … 195 178 done 196 179 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" 198 181 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 201 189 cd .. 202 190 … … 249 237 %dir %{_prefix} 250 238 %dir %{_prefix}/share 239 %{?with_python:%{_datadir}/powerpc-rtems4.10-gdb} 251 240 252 241 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/sh/rtems-4.10-sh-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 67 79 # suse 68 80 %if "%{?suse}" >= "10.3" … … 72 84 BuildRequires: %{_host_rpmprefix}expat-devel 73 85 %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 84 87 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 85 88 BuildRequires: %{_host_rpmprefix}ncurses-devel 86 87 %if "%{gdb_version}" >= "6.8.50"88 %if "%{_build}" != "%{_host}"89 # Can't build python Cdn-X90 %bcond_with python91 %else92 %bcond_without python93 %endif94 %endif95 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}96 89 97 90 # Required for building the infos 98 91 BuildRequires: /sbin/install-info 99 92 BuildRequires: texinfo >= 4.2 100 101 102 93 Requires: rtems-4.10-gdb-common 103 94 … … 141 132 %{build_sim} \ 142 133 %{?with_system_readline:--with-system-readline} \ 143 %if "%{gdb_version}" >= "6.6"144 134 --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 \ 153 137 --prefix=%{_prefix} --bindir=%{_bindir} \ 154 138 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 180 164 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsh-rtems4.10-sim.a 181 165 182 %if "%{gdb_version}" >= "7.0"183 166 # Bug in gdb-7.0, bogusly installs linux-only files 184 167 somethinguseful=0 185 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do168 for f in ${RPM_BUILD_ROOT}%{_datadir}/sh-rtems4.10-gdb/syscalls/*.xml; do 186 169 case $f in 187 170 *linux.xml) rm -f $f;; … … 190 173 done 191 174 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" 193 176 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 196 184 cd .. 197 185 … … 244 232 %dir %{_prefix} 245 233 %dir %{_prefix}/share 234 %{?with_python:%{_datadir}/sh-rtems4.10-gdb} 246 235 247 236 %dir %{_mandir} -
contrib/crossrpms/rtems4.10/sparc/rtems-4.10-sparc-rtems4.10-gdb.spec
r9b0be4d6 r981a831 53 53 Group: Development/Tools 54 54 Version: %{gdb_rpmvers} 55 Release: 1%{?dist}55 Release: 2%{?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 %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 65 78 %ifos mingw mingw32 66 79 # Mingw lacks functions required by the sparc simulator … … 68 81 %endif 69 82 70 %if "%{gdb_version}" >= "6.6"71 83 # suse 72 84 %if "%{?suse}" >= "10.3" … … 76 88 BuildRequires: %{_host_rpmprefix}expat-devel 77 89 %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 88 91 %{?with_system_readline:BuildRequires: %{_host_rpmprefix}readline-devel} 89 92 BuildRequires: %{_host_rpmprefix}ncurses-devel 90 91 %if "%{gdb_version}" >= "6.8.50"92 %if "%{_build}" != "%{_host}"93 # Can't build python Cdn-X94 %bcond_with python95 %else96 %bcond_without python97 %endif98 %endif99 %{?with_python:BuildRequires: %{_host_rpmprefix}python-devel}100 93 101 94 # Required for building the infos 102 95 BuildRequires: /sbin/install-info 103 96 BuildRequires: texinfo >= 4.2 104 105 106 97 Requires: rtems-4.10-gdb-common 107 98 … … 145 136 %{build_sim} \ 146 137 %{?with_system_readline:--with-system-readline} \ 147 %if "%{gdb_version}" >= "6.6"148 138 --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 \ 157 141 --prefix=%{_prefix} --bindir=%{_bindir} \ 158 142 --includedir=%{_includedir} --libdir=%{_libdir} \ … … 184 168 rm -f ${RPM_BUILD_ROOT}%{_libdir}/libsparc-rtems4.10-sim.a 185 169 186 %if "%{gdb_version}" >= "7.0"187 170 # Bug in gdb-7.0, bogusly installs linux-only files 188 171 somethinguseful=0 189 for f in ${RPM_BUILD_ROOT}%{_datadir}/ gdb/syscalls/*.xml; do172 for f in ${RPM_BUILD_ROOT}%{_datadir}/sparc-rtems4.10-gdb/syscalls/*.xml; do 190 173 case $f in 191 174 *linux.xml) rm -f $f;; … … 194 177 done 195 178 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" 197 180 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 200 188 cd .. 201 189 … … 248 236 %dir %{_prefix} 249 237 %dir %{_prefix}/share 238 %{?with_python:%{_datadir}/sparc-rtems4.10-gdb} 250 239 251 240 %dir %{_mandir}
Note: See TracChangeset
for help on using the changeset viewer.