mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
2e564aef07
Recent git became more strict wrt git repos in parent dirs owned by other users. This broke our COPR builds due to the git checkout being created by a different user and mounted in. We need to explicitly mark the repo as safe. For more information, see: https://github.com/actions/checkout/issues/760
11 lines
671 B
Makefile
11 lines
671 B
Makefile
srpm:
|
|
dnf install -y git
|
|
# similar to https://github.com/actions/checkout/issues/760, but for COPR
|
|
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/^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
|