ceph.spec.in: remove build directory in %clean, not %install

Removing the build directory at the end of %install is too soon,
and means we get rid of a bunch of stuff needed to correctly
create debuginfo/debugsource packages, which happens automatically
right after %install.  So, let's put it where it really belongs, in
the %clean section.

Fixes: aa18cb1200
Fixes: https://tracker.ceph.com/issues/55079
Signed-off-by: Tim Serong <tserong@suse.com>
This commit is contained in:
Tim Serong 2022-03-30 16:25:30 +11:00
parent 64c6bb394b
commit 94ad178bdc

View File

@ -1469,13 +1469,12 @@ install -m 644 -D monitoring/ceph-mixin/prometheus_alerts.yml %{buildroot}/etc/p
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}
%endif
%clean
rm -rf %{buildroot}
# built binaries are no longer necessary at this point,
# but are consuming ~17GB of disk in the build environment
rm -rf %{_vpath_builddir}
%clean
rm -rf %{buildroot}
#################################################################################
# files and systemd scriptlets
#################################################################################