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: