Mercurial > hg
view contrib/packaging/docker/centos5 @ 43340:e0812b032bcc stable
packaging: make python snippets in rpm building python3 compatible
Fedora 31 has Python3 at /usr/bin/python, and buildrpm would fail on snippets
that use python2 syntax. Instead of forcing python2, just accept for the future
while staying backwards compatible.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 27 Oct 2019 20:17:33 +0100 |
parents | 4c0d4bbdc395 |
children |
line wrap: on
line source
FROM centos:centos5 RUN groupadd -g %GID% build && \ useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build RUN \ sed -i 's/^mirrorlist/#mirrorlist/' /etc/yum.repos.d/*.repo && \ sed -i 's/^#\(baseurl=\)http:\/\/mirror.centos.org\/centos/\1http:\/\/vault.centos.org/' /etc/yum.repos.d/*.repo && \ sed -i 's/\$releasever/5.11/' /etc/yum.repos.d/*.repo RUN yum install -y \ gcc \ gettext \ make \ python-devel \ python-docutils \ rpm-build \ tar # For creating repo meta data RUN yum install -y \ bzip2-devel \ createrepo \ ncurses-devel \ openssl-devel \ readline-devel \ zlib-devel