diff options
Diffstat (limited to 'zenity.spec.in')
-rw-r--r-- | zenity.spec.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenity.spec.in b/zenity.spec.in index 16133b5b..c9867793 100644 --- a/zenity.spec.in +++ b/zenity.spec.in @@ -53,7 +53,7 @@ Zenity is especially useful in scripts. %prep %setup -q -%{__rm} -rf $RPM_BUILD_ROOT +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %build @@ -62,12 +62,12 @@ Zenity is especially useful in scripts. %install -%{__rm} -rf $RPM_BUILD_ROOT%{rpm_prefix} +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %{__make} prefix=$RPM_BUILD_ROOT%{rpm_prefix} install %clean -%{__rm} -rf $RPM_BUILD_ROOT +%{__rm} -rf $RPM_BUILD_ROOT%{rpm_prefix} %files |