cloud-init/.copr/Makefile

16 lines
360 B
Makefile
Raw Normal View History

2023-02-16 19:32:19 +00:00
rpmbuild_src = $(shell rpmbuild --eval '%{_sourcedir}')
.PHONY: prepare srpm rpm
prepare:
dnf -y install rpmdevtools rpm-build
cp *.patch $(rpmbuild_src) || true
2023-02-16 19:36:16 +00:00
cp *.conf $(rpmbuild_src) || true
2023-02-16 19:32:19 +00:00
spectool -g -R $(spec)
srpm: prepare
rpmbuild -bs --define "_srcrpmdir $(outdir)" $(spec)
rpm: prepare
rpmbuild -bb --define "_rpmdir $(outdir)" $(spec)