Skip to content

Commit 2bf77c3

Browse files
committed
F-15753: use NAME in the rpm target cleanup pattern so prior project RPMs are removed
1 parent 3f48cae commit 2bf77c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ dist:
170170
rpm: dist
171171
@rm -f *.rpm
172172
rpmdev-setuptree
173-
find ~/rpmbuild/RPMS ~/rpmbuild/SRPMS -name "$(PACKAGE)-$(VERSION)*.rpm" | xargs rm -f
173+
find ~/rpmbuild/RPMS ~/rpmbuild/SRPMS \
174+
-name "$(NAME)-$(VERSION)*.rpm" | xargs rm -f
174175
@cp "$(NAME)-$(VERSION).tar.gz" ~/rpmbuild/SOURCES/
175176
@cp rpm/spec.in rpm/spec
176177
@sed -i rpm/spec -e "s/@NAME@/$(NAME)/g"

0 commit comments

Comments
 (0)