From 5dc8aba0cdf7dea89bf43eeb2fe72371b04aaea4 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Thu, 4 Apr 2024 00:10:44 +0200 Subject: Initial packaging --- .copr/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .copr/Makefile (limited to '.copr') diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..94d6fda --- /dev/null +++ b/.copr/Makefile @@ -0,0 +1,18 @@ +spec ?= $(wildcard *.spec) +ifneq ($(words spec),1) +$(error More than one spec file: $(spec)) +endif +outdir ?= $(CURDIR) +sourcedir = $(shell rpmbuild -E '%_sourcedir') + +srpm: $(spec) /usr/bin/spectool + spectool -R -g $(spec) + env -C $(sourcedir) \ + sha512sum -c $(CURDIR)/sources || \ + (find $(sourcedir) -type f -delete; exit 1) + rpmbuild -D "_srcrpmdir $(outdir)" -bs $(spec) + +.PHONY: srpm + +%: + dnf -y install $@ -- cgit v1.2.3