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.41 by ratnik, Tue May 13 17:29:46 2008 UTC vs.
Revision 1.60 by diego, Mon Dec 14 10:24:14 2009 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2-CMS19
1 > ### RPM external python 2.4.2_CMS19
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 <
5 > %define closingbrace )
6 > %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac)
7 > %define downloadv %(echo %realversion | cut -d"_" -f1)
8   Requires: expat bz2lib db4 gdbm
9  
10 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
10 > %if "%online" != "true"
11   Requires: zlib openssl
12   %endif
13  
14   # FIXME: readline, crypt
15   # FIXME: gmp, panel, tk/tcl, x11
16  
17 < Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz
17 > Source0: http://www.python.org/ftp/%n/%downloadv/Python-%downloadv.tgz
18   Patch0: python-Include-pyport.h
19   Patch1: python-Lib-plat-mac-applesingle.py
20   Patch2: python-Lib-site.py
# Line 23 | Line 25 | Patch6: python-setup.py
25  
26  
27   %prep
28 < %setup -n Python-%realversion
28 > %setup -n Python-%downloadv
29   #%patch0
30   #%patch1
31   #%patch2
# Line 51 | Line 53 | perl -p -i -e "s|#!.*/usr/local/bin/pyth
53   # whether we like to pick up system libraries or want total control.
54   mkdir -p %i/include %i/lib
55  
56 < %if "%cmsplatf" != "slc4onl_ia32_gcc346"
56 > %if "%online" != "true"
57   %define extradirs $ZLIB_ROOT $OPENSSL_ROOT
58   %else
59   %define extradirs %{nil}
# Line 97 | Line 99 | make %makeprocesses
99  
100   %install
101   make install
102 < %define pythonv %(echo %realversion | cut -d. -f 1,2)
102 > %define pythonv %(echo %downloadv | cut -d. -f 1,2)
103  
104   #if [ $(uname) = Darwin ]; then
105    # make install prefix=%i
# Line 130 | Line 132 | perl -p -i -e "s|^#!.*python|#!/usr/bin/
132   rm  `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'`
133   rm  `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'`
134  
135 + %if "%online" == "true"
136 + # remove tkinter that brings dependency on libtk:
137 + find %{i}/lib -type f -name "_tkinter.so" -exec rm {} \;
138 + %endif
139 +
140   # SCRAM ToolBox toolfile
141   mkdir -p %i/etc/scram.d
142   cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
143   <doc type=BuildSystem::ToolDoc version=1.0>
144 < <Tool name=%n version=%v>
144 > <Tool name=%n version=%downloadv>
145   <lib name=python2.4>
146   <Client>
147   <Environment name=PYTHON_BASE default="%i"></Environment>
# Line 143 | Line 150 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
150   <Environment name=PYTHON_COMPILE default="$PYTHON_BASE/lib/python2.4/compileall.py"></Environment>
151   </Client>
152   <use name=sockets>
153 + <Runtime name=PYTHONHOME value="$PYTHON_BASE">
154   <Runtime name=PATH value="$PYTHON_BASE/bin" type=path>
155   </Tool>
156   EOF_TOOLFILE

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines