Remove gdbserver manpage if target doesn't support it
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
parent
d282e3b05e
commit
768db6c54b
5
gdb.spec
5
gdb.spec
|
@ -932,6 +932,11 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/backtrace.py
|
||||||
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
|
rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# The manpage is installed even if gdbserver is not supported by target
|
||||||
|
%ifarch sparc sparcv9 riscv64
|
||||||
|
rm $RPM_BUILD_ROOT%{_mandir}/*/gdbserver.1*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
# File must begin with "/": {GFDL,COPYING3,COPYING,COPYING.LIB,COPYING3.LIB}
|
# File must begin with "/": {GFDL,COPYING3,COPYING,COPYING.LIB,COPYING3.LIB}
|
||||||
%if 0%{!?el6:1}
|
%if 0%{!?el6:1}
|
||||||
|
|
Loading…
Reference in New Issue