From 85d0ade463fcdc8ba3f06ff65bf9b02e49a2b9c4 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 4 Aug 2022 22:00:16 +0300 Subject: [PATCH] Remove files under /usr/lib/debug/usr/bin/ [..] error: Installed (but unpackaged) file(s) found: /usr/lib/debug/usr/bin/__pycache__/gdb-gdb.cpython-39.opt-1.pyc /usr/lib/debug/usr/bin/__pycache__/gdb-gdb.cpython-39.pyc /usr/lib/debug/usr/bin/gdb-gdb.py [..] Until we have debug packages working again. Signed-off-by: David Abdurachmanov --- gdb.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb.spec b/gdb.spec index 160b7fb..9328694 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1087,6 +1087,10 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/elinos.py rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/wrs-linux.py rmdir $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit +%ifarch riscv64 +rm -fv ${RPM_BUILD_ROOT}/usr/lib/debug/usr/bin/ +%endif + %files # File must begin with "/": {GFDL,COPYING3,COPYING,COPYING.LIB,COPYING3.LIB} %if 0%{!?el6:1}