SUNWPython.spec revision 20120
18008N/A# spec file for package SUNWPython 18705N/A# Copyright 2009 Sun Microsystems, Inc. 18008N/A# This file and all modifications and additions to the pristine 18008N/A# package are under the same license as the package itself. 19142N/A# test script for the rbac and privileges modules implemented in 18993N/A# date:2005-10-27 owner:laca type:bug 18008N/A# date:2005-10-30 owner:laca type:feature 18008N/A# date:2006-09-18 owner:laca type:feature 18008N/A# date:2006-09-18 owner:laca type:bug 18008N/A# date:2006-09-18 owner:laca type:feature 18503N/A# date:2006-09-18 owner:laca type:bug bugster:6463378 18503N/A# date:2007-03-23 owner:laca type:bug bugid:1648435 state:upstream 18503N/A# date:2007-08-08 owner:laca type:bug bugster:6544688 18008N/A# date:2008-04-10 owner:laca type:feature bugster:6686506 18008N/A# 2008/243 Python interface to ucred_get(3C)/getpeercred(3C) 18503N/A# date:2008-06-06 owner:laca type:bug bugster:6614467 bugid:837046 18503N/A# date:2008-08-28 owner:laca type:feature 18503N/A# PSARC/2008/514 Python interface to dlpi(7P) 18503N/A# date:2008-11-25 owner:laca type:bug bugster:6775355 18008N/A# date:2008-11-28 owner:fujiwara type:feature bugster:6776575 18008N/A# date:2008-12-16 owner:laca type:bug bugster:6784248 18503N/A# date:2009-01-23 owner:laca type:bug 18503N/A# date:2009-10-12 owner:laca type:feature bugster:6890801 18503N/A# PSARC/2009/529 Python interface to privileges(5) & rbac(5) 18503N/A# written by John.Sonnenschein@Sun.COM 18008N/A# date:2009-12-01 owner:laca type:bug head -1 \$1 | egrep -s '^#!.*python$' line1=\$(head -1 \$fname) echo "Changing '\$line1' to '\$interp' (\$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 # These #define's break the build with gcc and cause problems when # building c99 compliant python modules export CC=
"$CC %optflags64" # These #define's break the build with gcc and cause problems when # building c99 compliant python modules # the pycc script is a C/C++ compiler wrapper to be used in perl -
pi -e
's|^(INSTALL=\s*)/.*$|$1install|' \
perl -
pi -e
's|^(OPT=\s*).*$|$1-DNDEBUG|' \
perl -
pi -e
's|^(RUNSHARED=\s*).*$|$1|' \
perl -
pi -e
"s|^(CONFIG_ARGS=\s*.*'CFLAGS=)[^']*('.*)\$|\$1\$2|" \
# search for vendor packages in /usr/lib/python<version>/vendor-packages # delete stuff that doesn't build/work on Solaris: 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 * Tue Jun 20 2006 - damien.carbery@sun.com - Add BuildRequires of the openssl libraries package (already a 'Requires'). * 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 - set the C/C++ compiler in the distutils Makefile to the pycc/pyCC wrapper scripts, fixes 6247860 * Fri Oct 28 2005 - laca@sun.com - build shared libpython and remove the static one, fixes 6199942 - add missing dependencies, fixes 6318436 * Tue Sep 27 2005 - laca@sun.com - omit some unnecessary compiler flags - 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. * Tue Sep 20 2005 - laca@sun.com - move python 2.4.1 to /usr and keep python 2.3 in /usr/sfw for backcompat - omit -xregs=no%frameptr as it breaks the build * Fri Aug 26 2005 - laca@sun.com * 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