summaryrefslogtreecommitdiff
path: root/redhat
diff options
context:
space:
mode:
Diffstat (limited to 'redhat')
-rw-r--r--redhat/quagga.spec.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/redhat/quagga.spec.in b/redhat/quagga.spec.in
index fcfc7589..738464f8 100644
--- a/redhat/quagga.spec.in
+++ b/redhat/quagga.spec.in
@@ -36,6 +36,9 @@
%define daemon_list zebra ripd isisd ospfd bgpd
%endif
+# allow build dir to be kept
+%define keep_build 0
+
Summary: Routing daemon
Name: quagga
Version: @VERSION@
@@ -250,7 +253,9 @@ if [ "$1" = "0" ]; then
fi
%clean
-#rm -rf $RPM_BUILD_ROOT
+%if !%{keep_build}
+rm -rf $RPM_BUILD_ROOT
+%endif
%files
%defattr(-,root,root)