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.68 by lat, Fri Sep 10 16:25:11 2010 UTC vs.
Revision 1.70 by eulisse, Fri Sep 24 09:37:16 2010 UTC

# Line 15 | Line 15 | Requires: zlib openssl sqlite
15   # FIXME: gmp, panel, tk/tcl, x11
16  
17   Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz
18 + Patch0: python-2.6.4-dont-detect-dbm
19  
20   %prep
21   %setup -n Python-%realversion
22   perl -p -i -e "s|#!.*/usr/local/bin/python|#!/usr/bin/env python|" Lib/cgi.py
23  
24 < %ifos darwin
25 < sed 's|@PREFIX@|%i|g' < %_sourcedir/python-osx | patch -p1
26 < %endif
24 > case %cmsplatf in
25 >  osx*)
26 >        sed 's|@PREFIX@|%i|g' < %_sourcedir/python-osx | patch -p1
27 >  ;;
28 > esac
29 > %patch0 -p1
30  
31   %build
32   # Python is awkward about passing other include or library directories
# Line 47 | Line 51 | mkdir -p %i/include %i/lib %i/bin
51  
52   dirs="$EXPAT_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT %{extradirs}"
53  
54 + # We need to export it because setup.py now uses it to determine the actual
55 + # location of DB4, this was needed to avoid having it picked up from the system.
56 + export DB4_ROOT
57 +
58   echo $dirs
59   for d in $dirs; do
60    for f in $d/include/*; do

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines