summaryrefslogtreecommitdiff
path: root/.copr/Makefile
blob: 0b2aaf938038901fb25b7c305e6a82d9c0c2df83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
spec ?= $(wildcard *.spec)
ifneq ($(words spec),1)
$(error More than one spec file: $(spec))
endif
outdir ?= $(CURDIR)

srpm: $(spec) /usr/bin/spectool
	spectool -g $(spec)
	sha512sum -c $(CURDIR)/sources
	rpmbuild -D '_sourcedir $(CURDIR)' -D "_srcrpmdir $(outdir)" -bs $(spec)

.PHONY: srpm

%:
	dnf -y install $@