Summary: An interpreted, interactive object-oriented programming language. Name: python %define version 2.1.1 Version: %{version} Release: 3 Copyright: PSF Group: Development/Languages Source: Python-%{version}.tgz Patch0: Python-2.1-build.patch Patch1: Python-2.1-expat.patch Buildroot: /var/tmp/python-root %description Python is an interpreted, interactive, object-oriented programming language often compared to Tcl, Perl, Scheme or Java. Python includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python supports interfaces to many system calls and libraries, as well as to various windowing systems (X11, Motif, Tk, Mac and MFC). Programmers can write new built-in modules for Python in C or C++. Python can be used as an extension language for applications that need a programmable interface. This package contains most of the standard Python modules, as well as modules for interfacing to the Tix widget set for Tk and RPM. Note that documentation for Python is provided in the python-docs package. %package devel Summary: The libraries and header files needed for Python extension development. Requires: python = %{version} Group: Development/Libraries %description devel The Python programming language's interpreter can be extended with dynamically loaded extensions and can be embedded in other programs. This package contains the header files and libraries needed to do these types of tasks. Install python-devel if you want to develop Python extensions. The python package will also need to be installed. You'll probably also want to install the python-docs package, which contains Python documentation. %prep #%setup -T -D -n Python-%{version} #exit %setup -q -n Python-%{version} %patch0 %patch1 ed configure <<'EOF' /ld_so_aix/ /LDSHARED/ s/BINLIBDEST/LIBPL/g w q EOF %build #exit CFLAGS=-O2 LDFLAGS= CXXFLAGS="-mthreads -O2" export CFLAGS LDFLAGS CXXFLAGS ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ --with-gcc="gcc -mthreads" --with-threads --with-cycle-gc \ --with-readline make OPT=-O2 %install #exit # set the install path echo '[install_scripts]' >setup.cfg echo 'install_dir='"${RPM_BUILD_ROOT}%{_prefix}/bin" >>setup.cfg [ -d "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/python2.1/lib-dynload make prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir} \ DDIR=%{_prefix}/lib/python2.1 install make prefix=%{_prefix} MANDIR=%{_mandir} DEST=$RPM_BUILD_ROOT sharedinstall cd $RPM_BUILD_ROOT%{_prefix}/bin ln python2.1 python || true strip python || true %files %defattr(-,bin,bin) %doc README Misc/HYPE Misc/cheatsheet Misc/unicode.txt Misc/Porting %doc LICENSE Misc/ACKS Misc/BLURB.* Misc/HISTORY Misc/NEWS Misc/AIX-NOTES %{_mandir}/man1/* %{_prefix}/bin/* %dir %{_prefix}/lib/python2.1/ %{_prefix}/lib/python2.1/*.py* %{_prefix}/lib/python2.1/pdb.doc %{_prefix}/lib/python2.1/profile.doc %{_prefix}/lib/python2.1/curses %{_prefix}/lib/python2.1/distutils %{_prefix}/lib/python2.1/encodings %{_prefix}/lib/python2.1/lib-dynload %dir %{_prefix}/lib/python2.1/lib-old %{_prefix}/lib/python2.1/plat-aix4 %{_prefix}/lib/python2.1/site-packages %{_prefix}/lib/python2.1/test %{_prefix}/lib/python2.1/xml %files devel %defattr(-,bin,bin) %dir %{_prefix}/include/python2.1 %{_prefix}/include/python2.1/* %{_prefix}/lib/python2.1/config %changelog * Mon Jun 18 2001 Stuart Gathman - fix ownership and link main executable * Thu May 31 2001 Stuart Gathman - initial release