From: Luca BRUNO Date: Fri, 11 Nov 2022 14:05:56 +0000 (+0000) Subject: copr: only use libostree tags X-Git-Tag: archive/raspbian/2022.7-2+rpi1^2~13^2^2~19^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4bc79ada27fea3d8f1021e5e7d3aca8ac12e741b;p=ostree.git copr: only use libostree tags This adds a tag filter to the logic which emits version labels for COPR build, so that it avoids mistakenly picking up tags belonging to the Rust bindings. --- diff --git a/.copr/Makefile b/.copr/Makefile index 63669e1d..5f9e58fa 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -4,7 +4,7 @@ srpm: git config --global --add safe.directory '*' 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,^Version:.*,Version: $$(git describe --always --tags --match 'v2???.*' | 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