From: Jonathan Lebon Date: Thu, 3 Feb 2022 18:25:07 +0000 (-0500) Subject: Add COPR integration Makefile X-Git-Tag: archive/raspbian/2022.2-3+rpi1^2~15^2^2~17^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1e663baad723f4b948b696d7585a4e15bef43461;p=ostree.git 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. --- diff --git a/.copr/Makefile b/.copr/Makefile new file mode 100644 index 00000000..81a02213 --- /dev/null +++ b/.copr/Makefile @@ -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