diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2024-04-04 16:08:12 +0200 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2024-04-04 16:08:12 +0200 |
| commit | 1888bc092c90715af3c0210c7d528c619bb92e68 (patch) | |
| tree | e2e8f7ae16afb66a8c0fefacaed3b9dd3e0f62d0 /.copr/Makefile | |
| parent | d7a776aeb09c2aceb0697309f37908d4e00ab14a (diff) | |
.copr/Makefile: Fix _sourcedir and rpmautospec
Diffstat (limited to '.copr/Makefile')
| -rw-r--r-- | .copr/Makefile | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/.copr/Makefile b/.copr/Makefile index 94d6fda..7579fcb 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,16 +1,18 @@ spec ?= $(wildcard *.spec) +$(shell test -f $(spec)) +ifneq ($(.SHELLSTATUS),0) +override spec := $(wildcard $(spec)/*.spec) +endif 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) +srpm: $(spec) /usr/bin/spectool /usr/bin/rpmautospec + spectool -g $(spec) + sha512sum -c sources + rpmautospec process-distgit $(spec) $(spec) + rpmbuild -D "_srcrpmdir $(outdir)" -D "_sourcedir $(CURDIR)" -bs $(spec) .PHONY: srpm |
