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.14 by eulisse, Wed Jul 5 14:52:39 2006 UTC vs.
Revision 1.35 by ratnik, Tue Oct 16 08:38:00 2007 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2
1 > ### RPM external python 2.4.2-CMS9
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 >
6 > Requires: expat bz2lib db4 gdbm
7 >
8 > %if "%{?online_release:set}" != "set"
9 > Requires: zlib openssl
10 > %endif
11 >
12   # FIXME: readline, crypt
13   # FIXME: gmp, panel, tk/tcl, x11
14  
15 < Source0: http://www.python.org/ftp/%n/%v/Python-%v.tgz
15 > Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz
16   Patch0: python-Include-pyport.h
17   Patch1: python-Lib-plat-mac-applesingle.py
18   Patch2: python-Lib-site.py
# Line 15 | Line 21 | Patch4: python-Makefile.pre.in
21   Patch5: python-configure
22   Patch6: python-setup.py
23  
24 +
25   %prep
26 < %setup -n Python-%v
26 > %setup -n Python-%realversion
27   #%patch0
28   #%patch1
29   #%patch2
# Line 43 | Line 50 | perl -p -i -e "s|#!.*/usr/local/bin/pyth
50   # linked specifically, or could be built by ourselves, depending on
51   # whether we like to pick up system libraries or want total control.
52   mkdir -p %i/include %i/lib
53 < dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT"
53 >
54 > %if "%{?online_release:set}" != "set"
55 > %define extradirs $ZLIB_ROOT $OPENSSL_ROOT
56 > %else
57 > %define extradirs %{nil}
58 > %endif
59 >
60 > dirs="$EXPAT_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT %{extradirs}"
61 >
62 > echo $dirs
63   for d in $dirs; do
64    for f in $d/include/*; do
65 <    [ -f $f ] || continue
65 >    [ -e $f ] || continue
66      rm -f %i/include/$(basename $f)
67      ln -s $f %i/include
68    done
69    for f in $d/lib/*; do
70 <    [ -f $f ] || continue
70 >    [ -e $f ] || continue
71      rm -f %i/lib/$(basename $f)
72      ln -s $f %i/lib
73    done
# Line 62 | Line 78 | make %makeprocesses
78  
79   %install
80   make install
81 < %define pythonv %(echo %v | cut -d. -f 1,2)
81 > %define pythonv %(echo %realversion | cut -d. -f 1,2)
82  
83   #if [ $(uname) = Darwin ]; then
84    # make install prefix=%i
# Line 90 | Line 106 | perl -p -i -e "s|^#!.*python|#!/usr/bin/
106                      %{i}/lib/python2.4/test/test_largefile.py \
107                      %{i}/lib/python2.4/test/test_optparse.py
108   # boost.spec rfio.spec
109 + #
110 + #
111 + rm  `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'`
112 + rm  `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'`
113 +
114 + # SCRAM ToolBox toolfile
115 + mkdir -p %i/etc/scram.d
116 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
117 + <doc type=BuildSystem::ToolDoc version=1.0>
118 + <Tool name=%n version=%v>
119 + <lib name=python2.4>
120 + <Client>
121 + <Environment name=PYTHON_BASE default="%i"></Environment>
122 + <Environment name=LIBDIR default="$PYTHON_BASE/lib"></Environment>
123 + <Environment name=INCLUDE default="$PYTHON_BASE/include/python2.4"></Environment>
124 + <Environment name=PYTHON_COMPILE default="$PYTHON_BASE/lib/python2.4/compileall.py"></Environment>
125 + </Client>
126 + <use name=sockets>
127 + <Runtime name=PATH value="$PYTHON_BASE/bin" type=path>
128 + </Tool>
129 + EOF_TOOLFILE
130 +
131 + %post
132 + 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
133 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines