diff options
author | Tim Serong <tserong@suse.com> | 2022-03-28 06:12:10 +0200 |
---|---|---|
committer | Tim Serong <tserong@suse.com> | 2022-03-28 10:23:18 +0200 |
commit | aa18cb12003e3526c8e8f23dc2335a483fbfa68e (patch) | |
tree | 329fce190028a9ef2a5fe4c134bd0b47aa1fa519 /ceph.spec.in | |
parent | Merge pull request #45661 from tchaikov/doc-dpdk (diff) | |
download | ceph-aa18cb12003e3526c8e8f23dc2335a483fbfa68e.tar.xz ceph-aa18cb12003e3526c8e8f23dc2335a483fbfa68e.zip |
ceph.spec.in: remove build directory at end of %install
By the time we get to the end of the %install section, all the
built binaries have been installed in the build root, so we can
delete the build directory from the source tree. This frees up
about 17GB of disk space on build hosts, which is helpful in
case other processes later in the RPM build need more disk space.
Fixes: https://tracker.ceph.com/issues/55079
Signed-off-by: Tim Serong <tserong@suse.com>
Diffstat (limited to '')
-rw-r--r-- | ceph.spec.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ceph.spec.in b/ceph.spec.in index 649247308a7..19f5714a996 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1465,6 +1465,10 @@ install -m 644 -D monitoring/ceph-mixin/prometheus_alerts.yml %{buildroot}/etc/p %py_byte_compile %{__python3} %{buildroot}%{python3_sitelib} %endif +# 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} |