SUNWPython.spec
author hawklu
Fri, 18 Jul 2008 08:53:12 +0000
branchgnome-2-22
changeset 12476 3a21fc945607
parent 12343 49ad28f79310
child 12708 3ed49c9a0e31
permissions -rw-r--r--
* patches/firefox3-11-getting-started-bookmark.diff: change the default homepage and bookmark to opensolaris welcome page
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
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
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
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Version:                 2.4.4
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
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
# date:2005-10-27 owner:laca type:bug
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
# upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Patch1:                  Python-01-solaris-lib-dirs.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
# date:2005-10-30 owner:laca type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Patch2:                  Python-02-pycc.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
# date:2006-09-18 owner:laca type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
Patch3:                  Python-03-distutils-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:bug
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
# upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
Patch4:                  Python-04-distutils-log.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
# date:2006-09-18 owner:laca type:feature
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
# maybe upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
Patch5:                  Python-05-isalibs.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
# 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
    38
# maybe upstreamable
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
Patch6:                  Python-06-write_compiled_module-atomic.diff
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    40
# 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
    41
Patch7:                  Python-07-dtrace.diff
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    42
# 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
    43
Patch8:                  Python-08-pty-leak.diff
10542
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
    44
# date:2007-08-08 owner:laca type:bug bugid:6544688
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
    45
Patch9:                  Python-09-shared-expat.diff
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    46
# date:2008-04-10 owner:laca type:feature bugid:6686506
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    47
# 2008/243 Python interface to ucred_get(3C)/getpeercred(3C)
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    48
# written by [email protected]
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    49
Patch10:                 Python-10-ucred.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
BuildRequires: SUNWTk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
BuildRequires: SUNWTcl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
BuildRequires: SUNWlexpt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
BuildRequires: SUNWsfwhea
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
BuildRequires: SUNWopenssl-libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
BuildRequires: SUNWopenssl-include
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
Requires: SUNWopenssl-libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
Requires: SUNWTk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
Requires: SUNWTcl
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
Requires: SUNWlexpt
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    62
%if %option_with_fox
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    63
Requires: FSWxorg-clientlibs
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    64
%else
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
Requires: SUNWxwplt
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
    66
%endif
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
Requires: SUNWbzip
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
Requires: SUNWlibmsr
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
Requires: SUNWlibms
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
Requires: SUNWzlib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    71
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
Summary:                 %{summary} - development files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
%include default-depend.inc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
Requires: SUNWPython
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
Requires: SUNWscpu
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
%setup -q -c -n %name-%version
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    81
cd Python-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    82
%patch1 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
%patch2 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%patch3 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
%patch4 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%patch5 -p1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%patch6 -p1
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
    88
%patch7 -p1
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
    89
%patch8 -p1
10542
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
    90
%patch9 -p1
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
    91
%patch10 -p1
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
echo fixing python binary name/path in python scripts:
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
cat > %{_builddir}/%name-%version/is_python_script <<EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
#!/bin/sh
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
head -1 \$1 | egrep -s '^#!.*python$'
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
chmod +x %{_builddir}/%name-%version/is_python_script
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
cat > %{_builddir}/%name-%version/set_python_interpreter <<EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
#!/bin/bash
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
interp=\$1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
fname=\$2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   106
line1=\$(head -1 \$fname)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   107
echo "Changing '\$line1' to '\$interp' (\$fname)";
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   108
chmod u+w \$fname
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   109
sed -e "1s,^#!.*,#! \$interp," \$fname > \$fname.update-interp && \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   110
    cat \$fname.update-interp > \$fname && \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   111
    rm -f \$fname.update-interp || \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   112
    echo WARNING: set_python_interpreter failed for \$fname
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   113
EOF
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   114
chmod +x %{_builddir}/%name-%version/set_python_interpreter
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
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
   117
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
cp -pr Python-%{version} Python-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
cd Python-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
autoconf
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   126
export DFLAGS=-32
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   127
export CFLAGS="%optflags"
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
./configure --prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
  --libdir=%{_libdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
  --mandir=%{_mandir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
  --datadir=%{_datadir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
  --infodir=%{_datadir}/info \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
  --enable-shared \
12343
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   134
  --disable-static %{?_with_pydebug}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
# 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
   137
# building c99 compliant python modules
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
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
   139
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
   140
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
   141
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   142
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   143
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   144
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   145
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   146
cd Python-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   147
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   148
export CXXFLAGS="%cxx_optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   149
export CFLAGS="%optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   150
export CC="$CC %optflags64"
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   151
export CXX="$CXX %cxx_optflags64"
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   152
export DFLAGS=-64
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   153
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   154
autoheader
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   155
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   156
./configure --prefix=%{_prefix} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   157
  --libdir=%{_libdir}/%{_arch64} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   158
  --mandir=%{_mandir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   159
  --datadir=%{_datadir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   160
  --infodir=%{_datadir}/info \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   161
  --enable-shared \
12343
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   162
  --disable-static %{?_with_pydebug}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   163
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   164
# 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
   165
# building c99 compliant python modules
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   166
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
   167
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
   168
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
   169
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   170
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   171
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   172
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   173
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   174
[ "$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
   175
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   176
cd Python-%{version}-64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   177
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_bindir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   178
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/idle
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   179
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/pydoc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   180
rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/smtpd.py
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   181
cd ..
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   182
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   183
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   184
cd Python-%{version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   185
make install DESTDIR=$RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   186
mkdir -p $RPM_BUILD_ROOT%{_prefix}/demo/python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   187
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
   188
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   189
# 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
   190
# the distutils Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   191
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
   192
(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
   193
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
   194
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   195
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
   196
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   197
perl -pi -e 's|^(INSTALL=\s*)/.*$|$1install|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   198
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   199
perl -pi -e 's|^(OPT=\s*).*$|$1-DNDEBUG|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   200
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   201
perl -pi -e 's|^(RUNSHARED=\s*).*$|$1|' \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   202
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   203
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
   204
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   205
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
   206
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   207
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
   208
    $RPM_BUILD_ROOT%{_libdir}/python2.4/config/Makefile
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   209
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   210
# 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
   211
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
   212
    > $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
   213
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
   214
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   215
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
   216
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   217
# 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
   218
mkdir -p $RPM_BUILD_ROOT/usr/sfw/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   219
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
   220
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   221
# delete stuff that doesn't build/work on Solaris:
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   222
rm $RPM_BUILD_ROOT%{_libdir}/python?.?/config/lib*.a
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   223
rm -r $RPM_BUILD_ROOT%{_libdir}/python?.?/bsddb
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   224
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   225
echo deleting pyo files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   226
find $RPM_BUILD_ROOT -name '*.pyo' -exec rm {} \;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   227
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   228
install -m 755 %SOURCE1 $RPM_BUILD_ROOT%{_libdir}/python2.4/test/
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   229
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   230
%{?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
   231
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   232
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   233
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   234
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   235
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   236
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   237
%dir %attr (0755, root, bin) /usr/sfw
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   238
%dir %attr (0755, root, bin) /usr/sfw/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   239
/usr/sfw/bin/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   240
%dir %attr (0755, root, bin) %{_bindir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   241
%{_bindir}/idle
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   242
%{_bindir}/pydoc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   243
%{_bindir}/python
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   244
%{_bindir}/python2.4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   245
%{_prefix}/demo/python/smtpd.py
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   246
%dir %attr (0755, root, bin) %{_libdir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   247
%{_libdir}/python?.?/LICENSE.txt
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   248
%{_libdir}/python?.?/*.py*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   249
%{_libdir}/python?.?/*.doc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   250
%{_libdir}/python?.?/compiler
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   251
%{_libdir}/python?.?/email
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   252
%{_libdir}/python?.?/encodings
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   253
%{_libdir}/python?.?/hotshot
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   254
%{_libdir}/python?.?/idlelib
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   255
%{_libdir}/python?.?/lib-dynload
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   256
%{_libdir}/python?.?/lib-old
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   257
%{_libdir}/python?.?/lib-tk
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   258
%{_libdir}/python?.?/logging
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   259
%{_libdir}/python?.?/plat-*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   260
%{_libdir}/python?.?/site-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   261
%{_libdir}/python?.?/vendor-packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   262
%{_libdir}/python?.?/xml
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   263
%{_libdir}/python?.?/curses
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   264
%{_libdir}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   265
%ifarch sparcv9 amd64
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   266
%dir %attr(0755, root, bin) %{_libdir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   267
%{_libdir}/%{_arch64}/lib*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   268
%dir %attr(0755, root, bin) %{_bindir}/%{_arch64}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   269
%{_bindir}/%{_arch64}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   270
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   271
%dir %attr(0755, root, sys) %{_datadir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   272
%dir %attr(0755, root, bin) %{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   273
%dir %attr(0755, root, bin) %{_mandir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   274
%{_mandir}/*/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   275
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   276
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   277
%defattr (-, root, bin)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   278
%dir %attr (0755, root, bin) %{_includedir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   279
%{_includedir}/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   280
%{_libdir}/python?.?/config
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   281
%{_libdir}/python?.?/distutils
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   282
%{_libdir}/python?.?/test
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   283
%{_libdir}/python?.?/py[cC][cC]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   284
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   285
%changelog
12343
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   286
* Fri May 23 2008 - [email protected]
49ad28f79310 2008-05-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 12075
diff changeset
   287
- 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
   288
  it breaks modules built with non-debug python
12074
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   289
* Thu Apr 10 2008 - [email protected]
9b55b0eb183a 2008-04-10 Laszlo (Laca) Peter <[email protected]>
laca
parents: 11965
diff changeset
   290
- 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
   291
  PSARC/2008/243
10572
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
   292
* Fri Sep 28 2007 - [email protected]
8cdee8cd9c9c 2007-09-29 Laszlo (Laca) Peter <[email protected]>
laca
parents: 10543
diff changeset
   293
- add option to build with FOX X libs
10542
affc2803857a 2007-09-20 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9633
diff changeset
   294
* Wed Aug  8 2007 - [email protected]
10543
4d118a0ac42a correct bugid
laca
parents: 10542
diff changeset
   295
- add patch shared-expat.diff, fixes 6531456
9633
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   296
* Tue Mar 27 2007 - [email protected]
ba01fb96d0d8 2007-03-27 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9630
diff changeset
   297
- set DFLAGS to fix phelper.d build
9619
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   298
* Wed Mar 23 2007 - [email protected]
ec2d81c0a557 2007-03-23 Laszlo (Laca) Peter <[email protected]>
laca
parents: 9565
diff changeset
   299
- add patches dtrace.diff and pty-leak.diff
9565
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   300
* Wed Mar 15 2007 - [email protected]
4f6ed9cc5ede 2007-03-15 Doug Scott <[email protected]>
drdoug
parents: 9397
diff changeset
   301
- Removed CC64. Not needed anymore
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   302
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   303
- 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
   304
  is used
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   305
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   306
- 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
   307
  I removed Python 2.3
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   308
* Mon Feb  5 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   309
- 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
   310
* Sun Feb  4 2007 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   311
- remove python 2.3 as per PSARC/2006/666
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   312
- 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
   313
  installed
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   314
* Tue Dec 05 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   315
- 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
   316
* Sat Nov  4 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   317
- bump to 2.4.4.  (also fixes 6483597)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   318
- add the curses module to %files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   319
* Tue Oct  3 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   320
- 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
   321
- 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
   322
  ended up in the packages
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   323
- 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
   324
  are compiled, fixes 6469243;
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   325
* Mon Sep 18 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   326
- 64-bit python changes
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   327
- 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
   328
  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
   329
- 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
   330
  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
   331
  can build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   332
- 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
   333
  CFLAGS/LDFLAGS are picked up from the environment
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   334
- 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
   335
  when the '%' char appears in a compiler flags
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   336
- 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
   337
  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
   338
  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
   339
  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
   340
  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
   341
  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
   342
  (not /usr/lib/amd64/python2.4...)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   343
* Fri Jul 21 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   344
- Bump to 2.4.3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   345
* Tue Jun 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   346
- 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
   347
* Tue May 09 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   348
- merge -share pkg(s) into the base pkg(s)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   349
* Sun Oct 30 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   350
- 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
   351
  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
   352
- 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
   353
  wrapper scripts, fixes 6247860
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   354
* Fri Oct 28 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   355
- update to 2.4.2
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   356
- 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
   357
- remove XOPEN/POSIX defines from pyconfig.h: fixes 6240077
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   358
- add missing dependencies, fixes 6318436
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   359
* Tue Sep 27 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   360
- omit some unnecessary compiler flags
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   361
- remove .pyo files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   362
- 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
   363
  in the vendor-packages directory too
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   364
- change default permissions to root:bin.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   365
* Wed Oct 19 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   366
- Add another missing runtime dependency, SUNWlibmsr, fixes 6208617.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   367
- Move Pyrex to SUNWPython-extra.spec file.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   368
* Tue Sep 20 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   369
- 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
   370
- omit -xregs=no%frameptr as it breaks the build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   371
* Fri Aug 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   372
- update to 2.4.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   373
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   374
- added SUNWsfwhea build dependency needed for expat headers
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   375
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   376
- 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
   377
* Fri Jul 29 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   378
- Add missing runtime dependencies, fixes 6208617.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   379
* Sun Nov 14 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   380
- add /usr/sfw/lib to RPATH
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   381
* Fri Oct 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   382
- 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
   383
* Sat Oct 02 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   384
- added %pkgbuild_postprocess
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   385
* Sat Sep 18 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   386
- move to /usr/sfw
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   387
* Tue Jun 22 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   388
- changed install location to /usr/lib and /usr/bin
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   389
* Fri Mar 05 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   390
- remove package root def'n
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   391
* Thu Mar 04 2004 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   392
- initial version added to CVS