blob: 7579fcb98ad01608598a82047c67f6803a176740 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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)
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
%:
dnf -y install $@
|