Add COPR integration Makefile

I'd like to enable auto-builds of this repo to
https://copr.fedorainfracloud.org/coprs/g/CoreOS/continuous/ so it could
eventually feed into
https://github.com/coreos/fedora-coreos-tracker/issues/910.
This commit is contained in:
Jonathan Lebon 2022-02-03 13:25:07 -05:00
parent a51ae1ed73
commit 1e663baad7
1 changed files with 8 additions and 0 deletions

8
.copr/Makefile Normal file
View File

@ -0,0 +1,8 @@
srpm:
dnf install -y git
ci/make-git-snapshot.sh
curl -LO https://src.fedoraproject.org/rpms/ostree/raw/rawhide/f/ostree.spec
sed -ie "s,^Version:.*,Version: $$(git describe --always --tags | sed -e 's,-,\.,g' -e 's,^v,,')," ostree.spec
sed -ie 's/^Patch/# Patch/g' ostree.spec # we don't want any downstream patches
rpmbuild -bs --define "_sourcedir ${PWD}" --define "_specdir ${PWD}" --define "_builddir ${PWD}" --define "_srcrpmdir ${PWD}" --define "_rpmdir ${PWD}" --define "_buildrootdir ${PWD}/.build" ostree.spec
mv *.src.rpm $$outdir