Skip to content

Commit

Permalink
Also delete .gemspec file in BUILD/
Browse files Browse the repository at this point in the history
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: rpm-software-management#1799
  • Loading branch information
ffesti authored and pmatilai committed May 25, 2022
1 parent 944b14f commit 6f9cc38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6f9cc38

Please sign in to comment.