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.52 by elmer, Thu Sep 3 20:05:08 2009 UTC vs.
Revision 1.61 by diego, Mon Dec 14 18:39:57 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   %define closingbrace )
6   %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac)
7 <
7 > %define downloadv %(echo %realversion | cut -d"_" -f1)
8   Requires: expat bz2lib db4 gdbm
9 + Provides: libpython2.4.so.1.0
10  
11   %if "%online" != "true"
12   Requires: zlib openssl
# Line 14 | Line 15 | Requires: zlib openssl
15   # FIXME: readline, crypt
16   # FIXME: gmp, panel, tk/tcl, x11
17  
18 < Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz
18 > Source0: http://www.python.org/ftp/%n/%downloadv/Python-%downloadv.tgz
19   Patch0: python-Include-pyport.h
20   Patch1: python-Lib-plat-mac-applesingle.py
21   Patch2: python-Lib-site.py
# Line 25 | Line 26 | Patch6: python-setup.py
26  
27  
28   %prep
29 < %setup -n Python-%realversion
29 > %setup -n Python-%downloadv
30   #%patch0
31   #%patch1
32   #%patch2
# Line 99 | Line 100 | make %makeprocesses
100  
101   %install
102   make install
103 < %define pythonv %(echo %realversion | cut -d. -f 1,2)
103 > %define pythonv %(echo %downloadv | cut -d. -f 1,2)
104  
105   #if [ $(uname) = Darwin ]; then
106    # make install prefix=%i
# Line 134 | Line 135 | rm  `find %{i}/include -maxdepth 1 -mind
135  
136   %if "%online" == "true"
137   # remove tkinter that brings dependency on libtk:
138 < rm  `find %{i}/lib -type f -name "_tkinter.so"`
138 > find %{i}/lib -type f -name "_tkinter.so" -exec rm {} \;
139   %endif
140  
141   # SCRAM ToolBox toolfile
142   mkdir -p %i/etc/scram.d
143   cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
144   <doc type=BuildSystem::ToolDoc version=1.0>
145 < <Tool name=%n version=%v>
145 > <Tool name=%n version=%downloadv>
146   <lib name=python2.4>
147   <Client>
148   <Environment name=PYTHON_BASE default="%i"></Environment>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines