Merge pull request #2762 from lucab/ups/copr-tags

copr: only use libostree tags
This commit is contained in:
Colin Walters 2022-11-11 14:08:36 -05:00 committed by GitHub
commit de3a0cefb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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