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
|
source = $(RPMSOURCE)/$(version).tar.gz
|
||||||
|
|
||||||
RPM = $(RPMDIR)/$(ARCH)/$(PKGNAME)-$(version)-$(release).$(ARCH).rpm
|
RPM = $(RPMDIR)/$(ARCH)/$(PKGNAME)-$(version)-$(release).$(ARCH).rpm
|
||||||
|
SHA = $(PKGNAME)-$(version)-$(release)$(dist).$(ARCH).rpm.sha256
|
||||||
|
|
||||||
sign: $(RPM)
|
all: $(RPM)
|
||||||
rpm --addsign $<
|
|
||||||
rpm -K $<
|
|
||||||
sha256sum $<
|
|
||||||
|
|
||||||
$(RPM): $(SPECFILE) $(source)
|
$(RPM): $(SPECFILE) $(source)
|
||||||
rpmbuild -bb $<
|
rpmbuild -bb $<
|
||||||
|
@ -24,7 +22,16 @@ $(RPM): $(SPECFILE) $(source)
|
||||||
$(source):
|
$(source):
|
||||||
wget -O $@ $(sourceurl)
|
wget -O $@ $(sourceurl)
|
||||||
|
|
||||||
clean:
|
sign: $(RPM)
|
||||||
rm $(RPM) $(source)
|
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