- ${YUM} --assumeyes upgrade
- ${YUM} --assumeyes install ${PYTHON_PACKAGES} gnupg2 rpm-build tree gettext expect
- ls -l --color=always /bin/python* /bin/pip* || true
- - pip3 list
+ - pip3 list --format columns
script:
- mkdir -pv rpmdir
- mkdir -pv rpmdir/SOURCES
cd rpmdir/SOURCES && tar cfz "pp_admintools.${PKG_VERSION}.tar.gz" "pp_admintools-${PKG_VERSION}"
ls -lA --color=always
cd "${ODIR}"
+ - |
+ echo "Generating pp-admintools.spec ..."
+ PKG_VERSION=$( ./get-rpm-version )
+ PKG_RELEASE=$( ./get-rpm-release )
+ cat pp-admintools.spec.template | \
+ 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
+
build CentOS 7 with Python 3.6:
variables:
PYTHON_PACKAGES: >
python36 python36-pip python36-devel python3-setuptools
python36-pytz python36-babel python36-six
+ PYTHON_VERSION_DOT: 3.6
+ PYTHON_VERSION_NODOT: 36
extends:
- '.pkg-build-rules'
image: centos:7