diff options
Diffstat (limited to '.copr/Makefile')
-rw-r--r-- | .copr/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 00000000..5be246cd --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1,14 @@ +version := $(shell rpmspec -q --srpm --qf "%{version}\n" extra/linux/redhat/alacritty.spec) +commands = git + +srpm: $(commands) + $(eval top := $(shell mktemp -d)) + mkdir -p "$(top)/SOURCES" + git archive HEAD --output "$(top)/SOURCES/alacritty-$(version).tar" --prefix "alacritty-$(version)/" + rpmbuild -bs "$(spec)" --define "_topdir $(top)" --define "_srcrpmdir $(outdir)" + rm -rf "$(top)" + +$(commands): + command -v $@ &> /dev/null || dnf -y install $@ + +.PHONY: srpm $(commands) |