From: Frank Brehm Date: Thu, 16 Dec 2021 10:56:49 +0000 (+0100) Subject: Generating RPM macros file X-Git-Tag: 0.4.1~4^2~25 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=80aaff0a7e753c7a587e56aa27a41d5599795756;p=pixelpark%2Fpp-admin-tools.git Generating RPM macros file --- 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: