Debian Codegraph @

.copr/Makefile

raw symbols SCIP
1 .PHONY: installdeps git-safe srpm
2
3 installdeps:
4 dnf -y install git autoconf automake make python3-devel
5
6 # Explicity mark the copr generated git repo directory as safe for git
7 # commands. The directory is created prior to the mock call to the make_srpm
8 # and will be the current pwd.
9 git-safe:
10 # From git 2.35.2 we need to mark temporary directory, where the
11 # project is cloned to, as safe, otherwise git commands won't work
12 # because of the fix for CVE-2022-24765
13 git config --global --add safe.directory "$(shell pwd)"
14
15 srpm: installdeps git-safe
16 #$(eval SUFFIX=$(shell sh -c " echo '.$$(date -u +%Y%m%d%H%M%S).git$$(git rev-parse --short HEAD)'"))
17 # changing the spec file as passing -D won't preserve the suffix when rebuilding in mock
18 #sed "s:%{?release_suffix}:${SUFFIX}:" -i mom.spec.in
19 mkdir -p tmp.repos
20 ./autogen.sh
21 ./configure --prefix=/usr --disable-python-syntax-check
22 make dist
23 rpmbuild \
24 -D "_topdir tmp.repos" \
25 -ts ./*.tar.gz
26 cp tmp.repos/SRPMS/*.src.rpm $(outdir)