From 2b6870dbdccd7950db705b32998980bd8a77dc63 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 3 Aug 2023 23:13:40 +0200 Subject: [PATCH] Add a custom %clean implementation Let's make sure we clean up after ourselves. We have to remove the generated timeout user config file, the file list files and the generated .lang file. --- systemd.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/systemd.spec b/systemd.spec index af22e4b..18b7b18 100644 --- a/systemd.spec +++ b/systemd.spec @@ -1166,5 +1166,11 @@ fi %files standalone-shutdown -f .file-list-standalone-shutdown +%clean +rm -rf $RPM_BUILD_ROOT +rm -f 10-timeout-abort.conf.user +rm -f .file-list-* +rm -f %{name}.lang + %changelog %autochangelog