Source

openpython /

Filename Size Date modified Message
23 B
1.9 KB
53.5 KB
OPEN PYTHON
-----------
RHEL/CentOS 5 Python 3.2 RPMS
https://bitbucket.org/khightower/openpython/downloads

TESTED PLATFORMS
----------------
CentOS 5.5
RHEL 5.5
RHEL 5.6

REBUILDING THE SOURCE RPM
-------------------------
1. Download and install autoconf 2.5

curl -O http://ftp.gnu.org/gnu/autoconf/autoconf-2.65.tar.bz2
tar -jxf autoconf-2.65.tar.bz2
pushd autoconf-2.65
./configure --prefix=$HOME/autoconf-2.65
make
make install
popd

# Add our newly built autoconf to our PATH
export PATH=~/autoconf-2.65/bin:$PATH

2. Install build requirements
yum install \
readline-devel openssl-devel gmp-devel \
ncurses-devel gdbm-devel zlib-devel expat-devel \
libGL-devel gcc-c++ libX11-devel glibc-devel \
bzip2 tar pkgconfig tcl-devel tk-devel \
tix-devel bzip2-devel sqlite-devel db4-devel autoconf \
rpm-build gcc redhat-rpm-config

# Grab libffi-devel and libffi from epel
rpm -ivh \
http://download.fedora.redhat.com/pub/epel/5/i386/libffi-devel-3.0.5-1.el5.i386.rpm \
http://download.fedora.redhat.com/pub/epel/5/i386/libffi-3.0.5-1.el5.i386.rpm

3. Download and build python32-3.2-0.1.rc1.el5.src.rpm
wget https://bitbucket.org/khightower/openpython/downloads/python32-3.2-0.1.rc1.el5.src.rpm
rpm -ivh python32-3.2-0.1.rc1.el5.src.rpm
cd /usr/src/redhat/SPECS/
rpmbuild -bb python32.spec

You should end up with 7 RPMS

/usr/src/redhat/RPMS/i386/python32-3.2-0.1.rc1.el5.i386.rpm
/usr/src/redhat/RPMS/i386/python32-libs-3.2-0.1.rc1.el5.i386.rpm
/usr/src/redhat/RPMS/i386/python32-devel-3.2-0.1.rc1.el5.i386.rpm
/usr/src/redhat/RPMS/i386/python32-tools-3.2-0.1.rc1.el5.i386.rpm
/usr/src/redhat/RPMS/i386/python32-tkinter-3.2-0.1.rc1.el5.i386.rpm
/usr/src/redhat/RPMS/i386/python32-test-3.2-0.1.rc1.el5.i386.rpm
/usr/src/redhat/RPMS/i386/python32-debuginfo-3.2-0.1.rc1.el5.i386.rpm

4. Install python32
rpm -ivh /usr/src/redhat/RPMS/i386/python32-3.2-0.1.rc1.el5.i386.rpm \
/usr/src/redhat/RPMS/i386/python32-libs-3.2-0.1.rc1.el5.i386.rpm