SUNWPython.spec
author daniell
Wed, 13 Oct 2010 16:43:58 +0000
branchopensolaris-2009-06
changeset 20159 f18a6979f732
parent 14350 a2a21c35b63a
permissions -rw-r--r--
6965295 [CVE-2010-1205/CVE-2010-2249] Multiple security issues in libpng 1.2 versions before 1.2.44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package SUNWPython
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     4
# includes module(s): Python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
#
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
     6
# Copyright 2008 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     8
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     9
#
12967
5f4e5ac840fa * SUNWgnome-config.spec: Update Owner Comment, to confirm with all other
mattman
parents: 12708
diff changeset
    10
# Owner: laca
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    11
# Bugdb:https://sourceforge.net/tracker/?func=detail&atid=305470&group_id=5470&aid=
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    12
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    13
%include Solaris.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    15
Name:                    SUNWPython
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Summary:                 The Python interpreter, libraries and utilities
14350
a2a21c35b63a CR#6853618 SUNWPython 2.4.4 on S10U7 reported to contain a security vulnerability by customer scanner
an230044
parents: 14178
diff changeset
    17
Version:                 2.4.6
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    18
SUNW_BaseDir:            %{_basedir}
11965
acd528faf5ad 2008-03-30 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10572
diff changeset
    19
SUNW_Copyright:          %{name}.copyright
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    21
Source:                  http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    22
# test script for the ucred module implemented in Python-xx-ucred.diff
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    23
Source1:                ucredtest.py
13395
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
    24
# test script for the dlpi module implemented in Python-xx-dlpi.diff
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
    25
Source2:                dlpitest.py
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
# date:2005-10-27 owner:laca type:bug
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
# upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Patch1:                  Python-01-solaris-lib-dirs.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
# date:2005-10-30 owner:laca type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Patch2:                  Python-02-pycc.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
# date:2006-09-18 owner:laca type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Patch3:                  Python-03-distutils-pycc.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
# date:2006-09-18 owner:laca type:bug
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
# upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Patch4:                  Python-04-distutils-log.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
# date:2006-09-18 owner:laca type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
# maybe upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
Patch5:                  Python-05-isalibs.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
# date:2006-09-18 owner:laca type:bug bugster:6463378
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
# maybe upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
Patch6:                  Python-06-write_compiled_module-atomic.diff
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    42
# date:2007-03-23 owner:laca type:feature written by John.Levon
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    43
Patch7:                  Python-07-dtrace.diff
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    44
# date:2007-03-23 owner:laca type:bug bugid:1648435 state:upstream
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    45
Patch8:                  Python-08-pty-leak.diff
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
    46
# date:2007-08-08 owner:laca type:bug bugster:6544688
10542
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
    47
Patch9:                  Python-09-shared-expat.diff
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
    48
# date:2008-04-10 owner:laca type:feature bugster:6686506
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    49
# 2008/243 Python interface to ucred_get(3C)/getpeercred(3C)
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    50
# written by [email protected]
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    51
Patch10:                 Python-10-ucred.diff
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
    52
# date:2008-06-06 owner:laca type:bug bugster:6614467 bugid:837046
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
    53
Patch11:                 Python-11-gethostbyname.diff
13395
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
    54
# date:2008-08-28 owner:laca type:feature
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
    55
# PSARC/2008/514 Python interface to dlpi(7P)
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
    56
# written by [email protected]
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
    57
Patch12:                 Python-12-dlpi.diff
14178
eceff40e7580 2009-01-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13395
diff changeset
    58
# date:2009-01-23 owner:laca type:bug
eceff40e7580 2009-01-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13395
diff changeset
    59
Patch13:                 Python-13-cflags.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    62
BuildRequires: SUNWTk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
BuildRequires: SUNWTcl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
BuildRequires: SUNWlexpt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
BuildRequires: SUNWsfwhea
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
BuildRequires: SUNWopenssl-libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
BuildRequires: SUNWopenssl-include
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
Requires: SUNWopenssl-libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
Requires: SUNWTk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
Requires: SUNWTcl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
Requires: SUNWlexpt
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    72
%if %option_with_fox
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    73
Requires: FSWxorg-clientlibs
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    74
%else
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
Requires: SUNWxwplt
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    76
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
Requires: SUNWbzip
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
Requires: SUNWlibmsr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
Requires: SUNWzlib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
Requires: SUNWPython
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
Requires: SUNWscpu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%setup -q -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
cd Python-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%patch2 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%patch3 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%patch4 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%patch5 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%patch6 -p1
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
    98
%patch7 -p1
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    99
%patch8 -p1
10542
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
   100
%patch9 -p1
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   101
%patch10 -p1
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   102
%patch11 -p1
13395
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
   103
%patch12 -p1
14178
eceff40e7580 2009-01-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13395
diff changeset
   104
%patch13 -p1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
echo fixing python binary name/path in python scripts:
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
cat > %{_builddir}/%name-%version/is_python_script <<EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
#!/bin/sh
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
head -1 \$1 | egrep -s '^#!.*python$'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
chmod +x %{_builddir}/%name-%version/is_python_script
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
cat > %{_builddir}/%name-%version/set_python_interpreter <<EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
#!/bin/bash
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
interp=\$1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
fname=\$2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
line1=\$(head -1 \$fname)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
echo "Changing '\$line1' to '\$interp' (\$fname)";
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
chmod u+w \$fname
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
sed -e "1s,^#!.*,#! \$interp," \$fname > \$fname.update-interp && \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
    cat \$fname.update-interp > \$fname && \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
    rm -f \$fname.update-interp || \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
    echo WARNING: set_python_interpreter failed for \$fname
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
chmod +x %{_builddir}/%name-%version/set_python_interpreter
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
find Python-%{version} -type f -exec %{_builddir}/%name-%version/is_python_script {} \; -exec %{_builddir}/%name-%version/set_python_interpreter %{_bindir}/python2.4 {} \;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
cp -pr Python-%{version} Python-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
cd Python-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
autoconf
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   139
export DFLAGS=-32
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   140
export CFLAGS="%optflags"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   141
./configure --prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
  --libdir=%{_libdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
  --mandir=%{_mandir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
  --datadir=%{_datadir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
  --infodir=%{_datadir}/info \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
  --enable-shared \
12343
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   147
  --disable-static %{?_with_pydebug}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
# These #define's break the build with gcc and cause problems when
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
# building c99 compliant python modules
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
perl -pi -e 's/^(#define _POSIX_C_SOURCE.*)/\/* $1 *\//' pyconfig.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   152
perl -pi -e 's/^(#define _XOPEN_SOURCE.*)/\/* $1 *\//' pyconfig.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
perl -pi -e 's/^(#define _XOPEN_SOURCE_EXTENDED.*)/\/* $1 *\//' pyconfig.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
cd Python-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
export CXXFLAGS="%cxx_optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   162
export CFLAGS="%optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
export CC="$CC %optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
export CXX="$CXX %cxx_optflags64"
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   165
export DFLAGS=-64
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   167
autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   168
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   169
./configure --prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   170
  --libdir=%{_libdir}/%{_arch64} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   171
  --mandir=%{_mandir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   172
  --datadir=%{_datadir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   173
  --infodir=%{_datadir}/info \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   174
  --enable-shared \
12343
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   175
  --disable-static %{?_with_pydebug}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   176
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   177
# These #define's break the build with gcc and cause problems when
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   178
# building c99 compliant python modules
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   179
perl -pi -e 's/^(#define _POSIX_C_SOURCE.*)/\/* $1 *\//' pyconfig.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   180
perl -pi -e 's/^(#define _XOPEN_SOURCE.*)/\/* $1 *\//' pyconfig.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   181
perl -pi -e 's/^(#define _XOPEN_SOURCE_EXTENDED.*)/\/* $1 *\//' pyconfig.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   182
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   183
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   184
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   185
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   186
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   187
[ "$RPM_BUILD_ROOT" != "" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   188
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   189
cd Python-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   190
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   191
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/idle
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   192
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/pydoc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   193
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/smtpd.py
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   194
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   195
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   196
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   197
cd Python-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   198
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   199
mkdir -p $RPM_BUILD_ROOT%{_prefix}/demo/python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   200
mv $RPM_BUILD_ROOT%{_bindir}/smtpd.py $RPM_BUILD_ROOT%{_prefix}/demo/python/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   201
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   202
# the pycc script is a C/C++ compiler wrapper to be used in
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   203
# the distutils Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   204
install -m 755 -D pycc $RPM_BUILD_ROOT%{_libdir}/python2.4/pycc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   205
(cd $RPM_BUILD_ROOT%{_libdir}/python2.4; ln -s pycc pyCC)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   206
perl -pi -e 's|^(CC=\s*)/.*$|$1%{_libdir}/python2.4/pycc|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   207
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   208
perl -pi -e 's|^(CXX=\s*)/.*$|$1%{_libdir}/python2.4/pyCC|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   209
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   210
perl -pi -e 's|^(INSTALL=\s*)/.*$|$1install|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   211
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   212
perl -pi -e 's|^(OPT=\s*).*$|$1-DNDEBUG|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   213
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   214
perl -pi -e 's|^(RUNSHARED=\s*).*$|$1|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   215
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   216
perl -pi -e "s|^(CONFIG_ARGS=\s*.*'CC=)[^']*('.*)\$|\$1%{_libdir}/python2.4/pycc\$2|" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   217
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   218
perl -pi -e "s|^(CONFIG_ARGS=\s*.*'CFLAGS=)[^']*('.*)\$|\$1\$2|" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   219
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   220
perl -pi -e "s|^(CONFIG_ARGS=\s*.*'CPP=)[^']*('.*)\$|\$1%{_libdir}/python2.4/pycc -E\$2|" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   221
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   222
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   223
# search for vendor packages in /usr/lib/python<version>/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   224
echo "import site; site.addsitedir('%{_libdir}/python2.4/vendor-packages')" \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   225
    > $RPM_BUILD_ROOT%{_libdir}/python2.4/site-packages/vendor-packages.pth
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   226
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python2.4/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   227
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   228
cd $RPM_BUILD_ROOT%{_bindir} && rm python  && ln -s python2.4 python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   229
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   230
# backward compatibility with s10, where python lived in /usr/sfw
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   231
mkdir -p $RPM_BUILD_ROOT/usr/sfw/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   232
cd $RPM_BUILD_ROOT/usr/sfw/bin && ln -s ../../bin/python2.4 python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   233
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   234
# delete stuff that doesn't build/work on Solaris:
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   235
rm $RPM_BUILD_ROOT%{_libdir}/python?.?/config/lib*.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   236
rm -r $RPM_BUILD_ROOT%{_libdir}/python?.?/bsddb
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   237
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   238
echo deleting pyo files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   239
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   240
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   241
install -m 755 %SOURCE1 $RPM_BUILD_ROOT%{_libdir}/python2.4/test/
13395
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
   242
install -m 755 %SOURCE2 $RPM_BUILD_ROOT%{_libdir}/python2.4/test/
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   243
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   244
cd $RPM_BUILD_ROOT%{_bindir}
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   245
rm python
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   246
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   247
mkdir -p %{base_isa}
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   248
mv python2.4 %{base_isa}/isapython2.4
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   249
ln -s %{base_isa}/isapython2.4 python2.4
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   250
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   251
%ifarch amd64 sparcv9
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   252
cd %{_arch64}
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   253
mv python2.4 isapython2.4
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   254
ln -s isapython2.4 python2.4
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   255
cd ..
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   256
%endif
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   257
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   258
ln -s ../lib/isaexec isapython2.4
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   259
ln -s python2.4 python
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   260
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   261
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   262
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   263
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   264
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   265
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   266
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   267
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   268
%dir %attr (0755, root, bin) /usr/sfw
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   269
%dir %attr (0755, root, bin) /usr/sfw/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   270
/usr/sfw/bin/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   271
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   272
%{_bindir}/idle
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   273
%{_bindir}/pydoc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   274
%{_bindir}/python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   275
%{_bindir}/python2.4
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   276
%{_bindir}/%{base_isa}/isapython2.4
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   277
%hard %{_bindir}/isapython2.4
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   278
%{_prefix}/demo/python/smtpd.py
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   279
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   280
%{_libdir}/python?.?/LICENSE.txt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   281
%{_libdir}/python?.?/*.py*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   282
%{_libdir}/python?.?/*.doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   283
%{_libdir}/python?.?/compiler
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   284
%{_libdir}/python?.?/email
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   285
%{_libdir}/python?.?/encodings
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   286
%{_libdir}/python?.?/hotshot
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   287
%{_libdir}/python?.?/idlelib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   288
%{_libdir}/python?.?/lib-dynload
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   289
%{_libdir}/python?.?/lib-old
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   290
%{_libdir}/python?.?/lib-tk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   291
%{_libdir}/python?.?/logging
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   292
%{_libdir}/python?.?/plat-*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   293
%{_libdir}/python?.?/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   294
%{_libdir}/python?.?/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   295
%{_libdir}/python?.?/xml
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   296
%{_libdir}/python?.?/curses
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   297
%{_libdir}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   298
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   299
%dir %attr(0755, root, bin) %{_libdir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   300
%{_libdir}/%{_arch64}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   301
%dir %attr(0755, root, bin) %{_bindir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   302
%{_bindir}/%{_arch64}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   303
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   304
%dir %attr(0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   305
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   306
%dir %attr(0755, root, bin) %{_mandir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   307
%{_mandir}/*/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   308
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   309
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   310
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   311
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   312
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   313
%{_libdir}/python?.?/config
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   314
%{_libdir}/python?.?/distutils
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   315
%{_libdir}/python?.?/test
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   316
%{_libdir}/python?.?/py[cC][cC]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   317
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   318
%changelog
14350
a2a21c35b63a CR#6853618 SUNWPython 2.4.4 on S10U7 reported to contain a security vulnerability by customer scanner
an230044
parents: 14178
diff changeset
   319
* Fri Dec 11 2009 - [email protected]
a2a21c35b63a CR#6853618 SUNWPython 2.4.4 on S10U7 reported to contain a security vulnerability by customer scanner
an230044
parents: 14178
diff changeset
   320
- bump to 2.4.6 (also fixes 6853618)
14178
eceff40e7580 2009-01-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13395
diff changeset
   321
* Fri Jan 23 2009 - [email protected]
eceff40e7580 2009-01-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 13395
diff changeset
   322
- add patch cflags.diff, fixes 6792612
13395
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
   323
* Thu Aug 28 2008 - [email protected]
def600d6c7c0 2008-09-04 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12967
diff changeset
   324
- add patch dlpi.diff
12708
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   325
* Fri Jun 20 2008 - [email protected]
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   326
- add patch gethostname.diff, fixes 6614467
3ed49c9a0e31 2008-06-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12343
diff changeset
   327
- implement isapython, fixes 6705899
12343
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   328
* Fri May 23 2008 - [email protected]
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   329
- use a separate option, --with-pydebug for enabling python debug, because
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   330
  it breaks modules built with non-debug python
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   331
* Thu Apr 10 2008 - [email protected]
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   332
- add patch ucred.diff that implement the ucred python module as per
12075
2f449ffafbaf add missing "PSARC" to changelog entry
laca
parents: 12074
diff changeset
   333
  PSARC/2008/243
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
   334
* Fri Sep 28 2007 - [email protected]
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
   335
- add option to build with FOX X libs
10542
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
   336
* Wed Aug  8 2007 - [email protected]
10543
4d118a0ac42a correct bugid
laca
parents: 10542
diff changeset
   337
- add patch shared-expat.diff, fixes 6531456
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   338
* Tue Mar 27 2007 - [email protected]
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   339
- set DFLAGS to fix phelper.d build
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   340
* Wed Mar 23 2007 - [email protected]
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   341
- add patches dtrace.diff and pty-leak.diff
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   342
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   343
- Removed CC64. Not needed anymore
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   344
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   345
- add --with-pydebug configure option if --with-debug option (of pkgbuild)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   346
  is used
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   347
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   348
- restore some rm lines in %install that were accidentally deleted when
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   349
  I removed Python 2.3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   350
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   351
- Delete bsddb files if SUNWevolution-bdb-devel is not installed.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   352
* Sun Feb  4 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   353
- remove python 2.3 as per PSARC/2006/666
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   354
- define bsddb subpkg which gets built if SUNWevolution-bdb-devel is
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   355
  installed
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   356
* Tue Dec 05 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   357
- Remove "-j$CPUS" from 'make' calls to fix (parallel) build errors.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   358
* Sat Nov  4 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   359
- bump to 2.4.4.  (also fixes 6483597)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   360
- add the curses module to %files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   361
* Tue Oct  3 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   362
- add patch Python-06-write_compiled_module-atomic.diff, fixes 6463378
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   363
- make the patches not create .patch<n> backup files because some of them
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   364
  ended up in the packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   365
- fix the path to the python interpreter in the .py files before they
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   366
  are compiled, fixes 6469243;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   367
* Mon Sep 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   368
- 64-bit python changes
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   369
- Python-01-solaris-lib-dirs.diff: (update) merge for 2.4.3 and fix ssl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   370
  libdir part so that it uses a 64-bit libdir when built in 64-bit mode
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   371
- Python-02-pycc.diff: (update) reset IFS correctly; use = not ==;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   372
  add some hacks at the bottom to use the right gcc options, so 64-bit
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   373
  can build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   374
- Python-03-distutils-pycc.diff: force using pycc/pyCC so that CC/CXX
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   375
  CFLAGS/LDFLAGS are picked up from the environment
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   376
- Python-04-distutils-log.diff: fix log.info commands so that they work
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   377
  when the '%' char appears in a compiler flags
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   378
- Python-05-isalibs.diff: (new) make .so's be generated as foo.so,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   379
  64/foo.so; some really nasty fixes to pyconfig.h: we cannot use the
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   380
  compile-time version of SIZEOF, so we hack them in using _LP64.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   381
  We use PY_CHECK_SIZEOF to avoid autoconf automatically adding them
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   382
  to pyconfig.h; in the Makefile, make python obey libdir for libpython,
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   383
  but still put the generic stuff in /usr/lib/python2.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   384
  (not /usr/lib/amd64/python2.4...)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   385
* Fri Jul 21 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   386
- Bump to 2.4.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   387
* Tue Jun 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   388
- Add BuildRequires of the openssl libraries package (already a 'Requires').
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   389
* Tue May 09 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   390
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   391
* Sun Oct 30 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   392
- change interpreter in python scripts to full path to the appropriate
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   393
  version (/usr/bin/python2.4 or /usr/sfw/bin/python2.3), fixes 6318475
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   394
- set the C/C++ compiler in the distutils Makefile to the pycc/pyCC
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   395
  wrapper scripts, fixes 6247860
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   396
* Fri Oct 28 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   397
- update to 2.4.2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   398
- build shared libpython and remove the static one, fixes 6199942
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   399
- remove XOPEN/POSIX defines from pyconfig.h: fixes 6240077
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   400
- add missing dependencies, fixes 6318436
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   401
* Tue Sep 27 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   402
- omit some unnecessary compiler flags
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   403
- remove .pyo files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   404
- add a pth file to site-packages that tells python to search for modules
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   405
  in the vendor-packages directory too
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   406
- change default permissions to root:bin.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   407
* Wed Oct 19 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   408
- Add another missing runtime dependency, SUNWlibmsr, fixes 6208617.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   409
- Move Pyrex to SUNWPython-extra.spec file.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   410
* Tue Sep 20 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   411
- move python 2.4.1 to /usr and keep python 2.3 in /usr/sfw for backcompat
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   412
- omit -xregs=no%frameptr as it breaks the build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   413
* Fri Aug 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   414
- update to 2.4.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   415
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   416
- added SUNWsfwhea build dependency needed for expat headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   417
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   418
- Add SUNWlexpt dependency as the Expat library is required for building.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   419
* Fri Jul 29 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   420
- Add missing runtime dependencies, fixes 6208617.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   421
* Sun Nov 14 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   422
- add /usr/sfw/lib to RPATH
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   423
* Fri Oct 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   424
- remove bsddb bits (won't work without bsd db itself), fixes 6176600
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   425
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   426
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   427
* Sat Sep 18 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   428
- move to /usr/sfw
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   429
* Tue Jun 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   430
- changed install location to /usr/lib and /usr/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   431
* Fri Mar 05 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   432
- remove package root def'n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   433
* Thu Mar 04 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   434
- initial version added to CVS