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.27 by elmer, Wed Jun 27 12:50:44 2007 UTC vs.
Revision 1.29 by eulisse, Wed Sep 19 21:13:25 2007 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2-CMS3
1 > ### RPM external python 2.4.2-CMS8
2   ## INITENV +PATH PATH %i/bin
3   ## INITENV +PATH LD_LIBRARY_PATH %i/lib
4   # OS X patches and build fudging stolen from fink
5 < Requires: zlib expat openssl bz2lib db4 gdbm openssl
5 > Requires: zlib expat openssl bz2lib db4 gdbm
6   # FIXME: readline, crypt
7   # FIXME: gmp, panel, tk/tcl, x11
8  
# Line 48 | Line 48 | dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_RO
48   echo $dirs
49   for d in $dirs; do
50    for f in $d/include/*; do
51 <    [ -f $f ] || continue
51 >    [ -e $f ] || continue
52      rm -f %i/include/$(basename $f)
53      ln -s $f %i/include
54    done
55    for f in $d/lib/*; do
56 <    [ -f $f ] || continue
56 >    [ -e $f ] || continue
57      rm -f %i/lib/$(basename $f)
58      ln -s $f %i/lib
59    done
# Line 96 | Line 96 | perl -p -i -e "s|^#!.*python|#!/usr/bin/
96   #
97   rm  `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'`
98   rm  `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'`
99 +
100 + # SCRAM ToolBox toolfile
101 + mkdir -p %i/etc/scram.d
102 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
103 + <doc type=BuildSystem::ToolDoc version=1.0>
104 + <Tool name=%n version=%v>
105 + <lib name=python2.4>
106 + <Client>
107 + <Environment name=PYTHON_BASE default="%i"></Environment>
108 + <Environment name=LIBDIR default="$PYTHON_BASE/lib"></Environment>
109 + <Environment name=INCLUDE default="$PYTHON_BASE/include/python2.4"></Environment>
110 + <Environment name=PYTHON_COMPILE default="$PYTHON_BASE/lib/python2.4/compileall.py"></Environment>
111 + </Client>
112 + <use name=sockets>
113 + <Runtime name=PATH value="$PYTHON_BASE/bin" type=path>
114 + </Tool>
115 + EOF_TOOLFILE
116 +
117   %post
118   find $RPM_INSTALL_PREFIX/%pkgrel/lib -type l | xargs ls -la | sed -e "s|.*[ ]\(/.*\) -> \(.*\)| \2 \1|;s|[ ]/[^ ]*/external| $RPM_INSTALL_PREFIX/%cmsplatf/external|g" | xargs -n2 ln -sf
119 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines