I am working on spec/RPM for Zope 2.6.x, but obviously a working python2.1.3 install is a pre-req if I want to support RH8.0 with the Zope RPMS :-) Attached are the changes made to the spec so that the python 2.1.3 SRPM from python.org would --rebuild nicely on RedHat 8.0 Changes: Made tools optional Used "%{__prefix}/lib/python2.1/Tools" instead of tools.files for "tools" sub-package. Removed BuildPrereq for db1-devel. No longer included in RH8 (see: http://www.redhat.com/software/linux/technical/packages.html) I don't have a RH7.x box to test on anymore.. (should have kept one of my dev boxes at 7.x.......) could someone please test the below on RedHat 7.2 and/or 7.3? ------------------------------------------------- To build the source RPM as a NON ROOT user Create necessary directories in your home directory: mkdir $HOME/rpm mkdir $HOME/rpm/SOURCES mkdir $HOME/rpm/SPECS mkdir $HOME/rpm/BUILD mkdir $HOME/rpm/SRPMS mkdir $HOME/rpm/RPMS mkdir $HOME/rpm/RPMS/i386 Tell RPM to use your private rpm/ tree: echo "%_topdir $HOME/rpm" >> $HOME/.rpmmacros Install the source RPM: rpm -Uvh python2.1-2.1.3-1.src.rpm Patch the spec file cd $HOME/rpm/SPECS patch -p0 </path_to_attached/python2.1.spec.10-22.patch Build: rpmbuild -ba --without tkinter python-2.1.spec Install: su -l rpm -Uvh ~yourusername/rpm/RPMS/i386/python2.1*.rpm exit Test: python2.1 /usr/lib/python2.1/test/regrtest.py I got: 128 tests OK. 13 tests skipped: ------------------------------------------------- Adam
participants (1)
-
Adam Manock