]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Generating RPM macros file
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Dec 2021 10:56:49 +0000 (11:56 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 16 Dec 2021 10:56:49 +0000 (11:56 +0100)
.gitlab-ci.yml

index eba22a01400bd7df5cc264d78265e4c00ee3995c..62b11ea73ba411cc3d68b1e6980d251156872c9b 100644 (file)
@@ -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: