ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/python.spec
(Generate patch)

Comparing COMP/CMSDIST/python.spec (file contents):
Revision 1.78 by eulisse, Wed Nov 2 14:15:50 2011 UTC vs.
Revision 1.84 by lat, Mon Mar 12 09:46:28 2012 UTC

# Line 18 | Line 18 | Requires: zlib openssl sqlite
18   Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz
19   Patch0: python-2.6.4-dont-detect-dbm
20   Patch1: python-2.6.4-fix-macosx-relocation
21 + Patch2: python-2.6.4-macosx-64bit
22  
23   %prep
24   %setup -n Python-%realversion
# Line 34 | Line 35 | case %cmsplatf in
35   esac
36   %patch0 -p1
37   %patch1 -p1
38 + %patch2 -p1
39  
40   %build
41   # Python is awkward about passing other include or library directories
# Line 62 | Line 64 | dirs="$EXPAT_ROOT $BZ2LIB_ROOT $NCURSES_
64   # location of DB4, this was needed to avoid having it picked up from the system.
65   export DB4_ROOT
66  
67 + # Python's configure parses LDFLAGS and CPPFLAGS to look for aditional library and include directories
68   echo $dirs
69 + LDFLAGS=""
70 + CPPFLAGS=""
71   for d in $dirs; do
72 <  for f in $d/include/*; do
73 <    [ -e $f ] || continue
69 <    rm -f %i/include/$(basename $f)
70 <    ln -s $f %i/include
71 <  done
72 <  for f in $d/lib/*; do
73 <    [ -e $f ] || continue
74 <    rm -f %i/lib/$(basename $f)
75 <    ln -s $f %i/lib
76 <  done
72 >  LDFLAGS="$LDFLAGS -L $d/lib"
73 >  CPPFLAGS="$CPPFLAGS -I $d/include"
74   done
75 + export LDFLAGS
76 + export CPPFLAGS
77  
78   additionalConfigureOptions=""
79   case %cmsplatf in

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines