sign and release packages
This commit is contained in:
parent
72d6089c33
commit
45a6f32176
1 changed files with 14 additions and 7 deletions
21
Makefile
21
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue