summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Festi <ffesti@redhat.com>2022-05-24 12:31:18 +0200
committerPanu Matilainen <pmatilai@redhat.com>2022-06-28 14:51:02 +0300
commitdd34db9b2560ff6df957e13db17d8f8ece8f3a04 (patch)
treee555a35bb7245342a8cc9fd6f990d8b47be10056
parent27fc775d6b2385fffc6f0881148474e29fbf977a (diff)
downloadrpm-dd34db9b2560ff6df957e13db17d8f8ece8f3a04.tar.gz
Also delete .gemspec file in BUILD/
The file is created by %setup for Ruby gems and should be deleted together with the buildSubdir on RPMBUILD_RMBUILD (After rebuilds or when --clean is passed). Resolves: #1799 (cherry picked from commit 6f9cc382562836e8ba0ce7a41297fa0de326d4ec)
-rw-r--r--build/build.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/build.c b/build/build.c
index 85470959a..c88cb25af 100644
--- a/build/build.c
+++ b/build/build.c
@@ -193,7 +193,8 @@ rpmRC doScript(rpmSpec spec, rpmBuildFlags what, const char *name,
if (what == RPMBUILD_RMBUILD) {
if (buildSubdir[0] != '\0')
- fprintf(fp, "rm -rf '%s'\n", buildSubdir);
+ fprintf(fp, "rm -rf '%s' '%s.gemspec'\n",
+ buildSubdir, buildSubdir);
} else if (sb != NULL)
fprintf(fp, "%s", sb);