sign and release packages

This commit is contained in:
Morgan McMillian 2023-03-03 07:13:47 -08:00
parent 72d6089c33
commit 45a6f32176

View file

@ -12,11 +12,9 @@ sourceurl = https://github.com/ndilieto/uacme/archive/refs/tags/upstream/$(versi
source = $(RPMSOURCE)/$(version).tar.gz
RPM = $(RPMDIR)/$(ARCH)/$(PKGNAME)-$(version)-$(release).$(ARCH).rpm
SHA = $(PKGNAME)-$(version)-$(release)$(dist).$(ARCH).rpm.sha256
sign: $(RPM)
rpm --addsign $<
rpm -K $<
sha256sum $<
all: $(RPM)
$(RPM): $(SPECFILE) $(source)
rpmbuild -bb $<
@ -24,7 +22,16 @@ $(RPM): $(SPECFILE) $(source)
$(source):
wget -O $@ $(sourceurl)
clean:
rm $(RPM) $(source)
sign: $(RPM)
rpm --addsign $<
rpm -K $<
.PHONY: clean sign
release: $(RPM) sign
sha256sum $< > $(SHA)
tea release create --draft --title "v$(version)" --tag v$(version) \
--asset $< --asset $(SHA)
clean:
rm $(RPM) $(source) $(SHA)
.PHONY: all clean sign release