15 lines
325 B
Makefile
15 lines
325 B
Makefile
|
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)
|