diff options
Diffstat (limited to '.copr')
| -rw-r--r-- | .copr/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/.copr/Makefile b/.copr/Makefile index 94d6fda..45b6745 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,16 +1,17 @@ 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) + spectool -g $(spec) + sha512sum -c sources + rpmbuild -D "_srcrpmdir $(outdir)" -D "_sourcedir $(CURDIR)" -bs $(spec) .PHONY: srpm |
