diff options
author | Paul Schyska <paul@schyska.net> | 2019-06-09 18:30:42 +0200 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-06-09 16:30:42 +0000 |
commit | 55d346c7d44215c51187cafcac79e3504209f942 (patch) | |
tree | 72b74be3a1a7ead98d0e08884898829cb5d95c14 /.copr | |
parent | bc2c34eb7f9eea251822d94ea534a1d2de03c5a1 (diff) | |
download | alacritty-55d346c7d44215c51187cafcac79e3504209f942.tar.gz alacritty-55d346c7d44215c51187cafcac79e3504209f942.zip |
Add RPM spec for building in COPR
Diffstat (limited to '.copr')
-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) |