From 80aaff0a7e753c7a587e56aa27a41d5599795756 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 16 Dec 2021 11:56:49 +0100 Subject: [PATCH] Generating RPM macros file --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eba22a0..62b11ea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -211,12 +211,19 @@ Linter: PKG_VERSION=$( ./get-rpm-version ) PKG_RELEASE=$( ./get-rpm-release ) cat pp-admintools.spec.template | \ + tail -n +3 \ sed -e "s/@@@Version@@@/$PKG_VERSION/gi" \ -e "s/@@@Release@@@/${PKG_RELEASE}/gi" \ -e "s/@@@py_version_dot@@@/${PYTHON_VERSION_DOT}/gi" \ -e "s/@@@py_version_nodot@@@/${PYTHON_VERSION_NODOT}/gi" > pp-admintools.spec echo "Generated spec-file:" cat pp-admintools.spec + - | + echo "Creating ${HOME}/.rpmmacros ..." + echo "%__python3 /bin/python${PYTHON_VERSION_DOT}" > "${HOME}/.rpmmacros" + echo "%_signature gpg" >> "${HOME}/.rpmmacros" + echo "Generated file:" + cat "${HOME}/.rpmmacros" build CentOS 7 with Python 3.6: -- 2.39.5