add copr make

This commit is contained in:
Neil Hanlon 2022-12-30 13:53:42 -05:00
parent cb54c9c323
commit 5a31a843e3
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

14
.copr/Makefile Normal file
View File

@ -0,0 +1,14 @@
rpmbuild_src = $(shell rpmbuild --eval '%{_sourcedir}')
.PHONY: prepare srpm rpm
prepare:
dnf -y install rpmdevtools rpm-build
cp *.patch $(rpmbuild_src) || true
spectool -g -R $(spec)
srpm: prepare
rpmbuild -bs --define "_srcrpmdir $(outdir)" $(spec)
rpm: prepare
rpmbuild -bb --define "_rpmdir $(outdir)" $(spec)