SUNWPython.spec revision 20239
#
# spec file for package SUNWPython
#
# includes module(s): Python
#
# Copyright 2009 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Bugdb:http://bugs.python.org/issue
#
SUNW_BaseDir: %{_basedir}
# test script for the ucred module implemented in Python-xx-ucred.diff
# test script for the dlpi module implemented in Python-xx-dlpi.diff
# test script for the rbac and privileges modules implemented in
# date:2005-10-27 owner:laca type:bug
# upstreamable
# date:2005-10-30 owner:laca type:feature
# date:2006-09-18 owner:laca type:feature
# date:2006-09-18 owner:laca type:bug
# upstreamable
# date:2006-09-18 owner:laca type:feature
# maybe upstreamable
# date:2006-09-18 owner:laca type:bug bugster:6463378
# maybe upstreamable
# date:2007-03-23 owner:laca type:feature written by John.Levon
# date:2007-03-23 owner:laca type:bug bugid:1648435 state:upstream
# date:2007-08-08 owner:laca type:bug bugster:6544688
# date:2008-04-10 owner:laca type:feature bugster:6686506
# 2008/243 Python interface to ucred_get(3C)/getpeercred(3C)
# written by John.Levon@Sun.Com
# date:2008-06-06 owner:laca type:bug bugster:6614467 bugid:837046
# date:2008-08-28 owner:laca type:feature
# PSARC/2008/514 Python interface to dlpi(7P)
# written by Max.Zhen@Sun.COM
# date:2008-11-25 owner:laca type:bug bugster:6775355
# date:2008-11-28 owner:fujiwara type:feature bugster:6776575
# date:2008-12-16 owner:laca type:bug bugster:6784248
# Patch15: Python-15-ext-stdio.diff
# date:2009-01-23 owner:laca type:bug
# date:2009-10-12 owner:laca type:feature bugster:6890801
# PSARC/2009/529 Python interface to privileges(5) & rbac(5)
# written by John.Sonnenschein@Sun.COM
# date:2009-12-01 owner:laca type:bug
# python's socketmodule.c
%prep
#%patch15 -p1
cd ..
#!/bin/sh
head -1 \$1 | egrep -s '^#!.*python$'
EOF
#!/bin/bash
interp=\$1
fname=\$2
line1=\$(head -1 \$fname)
echo "Changing '\$line1' to '\$interp' (\$fname)";
chmod u+w \$fname
sed -e "1s,^#!.*,#! \$interp," \$fname > \$fname.update-interp && \
cat \$fname.update-interp > \$fname && \
rm -f \$fname.update-interp || \
echo WARNING: set_python_interpreter failed for \$fname
EOF
find Python-%{version} -type f -exec %{_builddir}/%name-%version/is_python_script {} \; -exec %{_builddir}/%name-%version/set_python_interpreter %{_bindir}/python2.4 {} \;
export DFLAGS=-32
# These #define's break the build with gcc and cause problems when
# building c99 compliant python modules
cd ..
export CXXFLAGS="%cxx_optflags64"
export DFLAGS=-64
# These #define's break the build with gcc and cause problems when
# building c99 compliant python modules
cd ..
# the pycc script is a C/C++ compiler wrapper to be used in
# the distutils Makefile
echo "import site; site.addsitedir('%{_libdir}/python2.4/vendor-packages')" \
cd $RPM_BUILD_ROOT%{_bindir}
cd %{_arch64}
cd ..
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%{_mandir}/*/*
%{_includedir}/*
64/foo.so; some really nasty fixes to pyconfig.h: we cannot use the
compile-time version of SIZEOF, so we hack them in using _LP64.
We use PY_CHECK_SIZEOF to avoid autoconf automatically adding them
to pyconfig.h; in the Makefile, make python obey libdir for libpython,
* Fri Jul 21 2006 - damien.carbery@sun.com
- Bump to 2.4.3.
* Tue Jun 20 2006 - damien.carbery@sun.com
* Tue May 09 2006 - laca@sun.com
- merge -share pkg(s) into the base pkg(s)
* Sun Oct 30 2005 - laca@sun.com
- change interpreter in python scripts to full path to the appropriate
wrapper scripts, fixes 6247860
* Fri Oct 28 2005 - laca@sun.com
- update to 2.4.2
- build shared libpython and remove the static one, fixes 6199942
- remove XOPEN/POSIX defines from pyconfig.h: fixes 6240077
- add missing dependencies, fixes 6318436
* Tue Sep 27 2005 - laca@sun.com
- omit some unnecessary compiler flags
- remove .pyo files
- add a pth file to site-packages that tells python to search for modules
in the vendor-packages directory too
- change default permissions to root:bin.
* Wed Oct 19 2005 - damien.carbery@sun.com
- Add another missing runtime dependency, SUNWlibmsr, fixes 6208617.
- Move Pyrex to SUNWPython-extra.spec file.
* Tue Sep 20 2005 - laca@sun.com
- omit -xregs=no%frameptr as it breaks the build
* Fri Aug 26 2005 - laca@sun.com
- update to 2.4.1
* Tue Aug 02 2005 - laca@sun.com
- added SUNWsfwhea build dependency needed for expat headers
* Tue Aug 02 2005 - damien.carbery@sun.com
- Add SUNWlexpt dependency as the Expat library is required for building.
* Fri Jul 29 2005 - damien.carbery@sun.com
- Add missing runtime dependencies, fixes 6208617.
* Sun Nov 14 2004 - laca@sun.com
* Fri Oct 22 2004 - laca@sun.com
* Thu Mar 04 2004 - Niall.Power@sun.com
- initial version added to CVS