Makefile: remove PACKAGE_NAME

It was not used consistently. Most of the things this Makefile does is
specific to osbuild-composer anyway.
This commit is contained in:
Lars Karlitski 2020-03-05 13:53:13 +01:00 committed by Tom Gundersen
parent a504fc8801
commit 39b584e077

View file

@ -1,4 +1,3 @@
PACKAGE_NAME = osbuild-composer
COMMIT=$(shell git rev-parse HEAD)
.PHONY: build
@ -58,13 +57,13 @@ rpm:
echo "%global commit $(COMMIT)" | cat - golang-github-osbuild-composer.spec \
> rpmbuild/SPECS/golang-github-osbuild-composer-$(COMMIT).spec
git archive --prefix=$(PACKAGE_NAME)-$(COMMIT)/ --format=tar.gz HEAD \
> rpmbuild/SOURCES/$(PACKAGE_NAME)-$(COMMIT).tar.gz
git archive --prefix=osbuild-composer-$(COMMIT)/ --format=tar.gz HEAD \
> rpmbuild/SOURCES/osbuild-composer-$(COMMIT).tar.gz
rpmbuild -bs \
--define "_topdir $(CURDIR)/rpmbuild" \
rpmbuild/SPECS/golang-github-$(PACKAGE_NAME)-$(COMMIT).spec
rpmbuild/SPECS/golang-github-osbuild-composer-$(COMMIT).spec
rpmbuild -bb \
--define "_topdir $(CURDIR)/rpmbuild" \
rpmbuild/SPECS/golang-github-$(PACKAGE_NAME)-$(COMMIT).spec
rpmbuild/SPECS/golang-github-osbuild-composer-$(COMMIT).spec