From 5a31a843e3e0269b54c2b73fb61e3f0de25f46d9 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Fri, 30 Dec 2022 13:53:42 -0500 Subject: [PATCH] add copr make --- .copr/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .copr/Makefile diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 0000000..019eea2 --- /dev/null +++ b/.copr/Makefile @@ -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)