Skip to content

Commit 3f87837

Browse files
committed
copr: build with timestamp version
- Add timestamp in copr versions. - Drop python3-six from copr deps, as we have removed six dependency - Don't pass release_suffix as this is not used in the spec Signed-off-by: Jean-Louis Dupond <jean-louis@dupond.be>
1 parent d3e5d98 commit 3f87837

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.copr/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@
44
.PHONY: installdeps git_cfg_safe srpm
55

66
installdeps:
7-
dnf -y install autoconf automake gcc gettext-devel git libtool make openssl python3-dateutil python3-devel python3-libvirt python3-pyyaml python3-six systemd-units util-linux
7+
dnf -y install autoconf automake gcc gettext-devel git libtool make openssl python3-dateutil python3-devel python3-libvirt python3-pyyaml systemd-units util-linux
88

99
git_cfg_safe:
1010
# From git 2.35.2 we need to mark temporary directory, where the project is cloned to, as safe, otherwise
1111
# git commands won't work because of the fix for CVE-2022-24765
1212
git config --global --add safe.directory "$(shell pwd)"
1313

1414
srpm: installdeps git_cfg_safe
15-
$(eval SUFFIX=$(shell sh -c " echo '.$$(date -u +%Y%m%d%H%M%S).git$$(git rev-parse --short HEAD)'"))
1615
mkdir -p tmp.repos
1716
./autogen.sh \
1817
--system \
1918
--enable-hooks \
20-
--enable-vhostmd
19+
--enable-vhostmd \
20+
--enable-timestamp
2121
make dist
2222
rpmbuild \
2323
-D "_topdir tmp.repos" \
24-
-D "release_suffix ${SUFFIX}" \
2524
-ts ./*.tar.gz
2625
cp tmp.repos/SRPMS/*.src.rpm $(outdir)

0 commit comments

Comments
 (0)