diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2023-11-30 13:22:41 +0100 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2023-12-04 15:29:51 +0100 |
| commit | 498bb5632ce8b21e3c727cb6312d4109fa9eb297 (patch) | |
| tree | 0d272545808737c20525c594f65788956685515c /.copr/Makefile | |
Initial packaging
Diffstat (limited to '.copr/Makefile')
| -rw-r--r-- | .copr/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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 $@ |
