diff --git a/gdb.spec b/gdb.spec index 04a90b5..e0e28fa 100644 --- a/gdb.spec +++ b/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 %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 # File must begin with "/": {GFDL,COPYING3,COPYING,COPYING.LIB,COPYING3.LIB} %if 0%{!?el6:1}