add copr build config

This commit is contained in:
Neil Hanlon 2022-05-19 16:56:51 -04:00
parent 6a29114bb8
commit 9e1633717c
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
4 changed files with 17 additions and 1 deletions

15
.copr/Makefile Normal file
View File

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

3
.gitignore vendored
View File

@ -1 +1,2 @@
#/lxc-*.tar.gz /lxc-*.tar.gz
/v1.*.tar.gz

View File

Binary file not shown.