diff --git a/.copr/Makefile b/.copr/Makefile index 868ec7e..b976f07 100644 --- a/.copr/Makefile +++ b/.copr/Makefile @@ -1,8 +1,13 @@ -.PHONY: installdeps srpm +.PHONY: installdeps git_cfg_safe srpm installdeps: dnf -y install git make -srpm: installdeps +git_cfg_safe: + # From git 2.35.2 we need to mark temporary directory, where the project is cloned to, as safe, otherwise + # git commands won't work because of the fix for CVE-2022-24765 + git config --global --add safe.directory "$(shell pwd)" + +srpm: installdeps git_cfg_safe ./.automation/build-srpm.sh cp rpmbuild/SRPMS/*.src.rpm $(outdir)