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.32 by ratnik, Mon Oct 1 20:20:54 2007 UTC vs.
Revision 1.51 by muzaffar, Fri Jun 19 12:59:52 2009 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2-CMS3q
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 < Requires: zlib expat openssl bz2lib db4 gdbm
5 > %define closingbrace )
6 > %define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac)
7 >
8 > Requires: expat bz2lib db4 gdbm
9 >
10 > %if "%online" != "true"
11 > Requires: zlib openssl
12 > %endif
13 >
14   # FIXME: readline, crypt
15   # FIXME: gmp, panel, tk/tcl, x11
16  
# Line 44 | Line 52 | perl -p -i -e "s|#!.*/usr/local/bin/pyth
52   # linked specifically, or could be built by ourselves, depending on
53   # whether we like to pick up system libraries or want total control.
54   mkdir -p %i/include %i/lib
55 < dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT"
55 >
56 > %if "%online" != "true"
57 > %define extradirs $ZLIB_ROOT $OPENSSL_ROOT
58 > %else
59 > %define extradirs %{nil}
60 > %endif
61 >
62 > dirs="$EXPAT_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT %{extradirs}"
63 >
64   echo $dirs
65   for d in $dirs; do
66    for f in $d/include/*; do
# Line 59 | Line 75 | for d in $dirs; do
75    done
76   done
77  
78 < ./configure --prefix=%i --enable-shared --without-tkinter --disable-tkinter
79 <
80 < # Link 32-bit readline library missing in the system area on 64-bit
81 < # machines:
82 <
83 < mkdir -p %{i}/lib
84 < ln -s /usr/lib/libreadline.so.4.3 %{i}/lib/libreadline.so
85 <
78 > additionalConfigureOptions=""
79 > case %cmsplatf in
80 >    osx105* )
81 >    additionalConfigureOptions="--disable-readline"
82 >    ;;
83 > esac
84 >
85 > ./configure --prefix=%i $additionalConfigureOptions --enable-shared \
86 >            --without-tkinter --disable-tkinter
87 >
88 > # The following is a kludge around the fact that the /usr/lib/libreadline.so
89 > # symlink (for 32-bit lib) is missing on the 64bit machines
90 > %if "%cmsplatf" == "slc4_ia32_gcc345"
91 >  mkdir -p %{i}/lib
92 >  ln -s /usr/lib/libreadline.so.4.3 %{i}/lib/libreadline.so
93 > %endif
94 > %if "%cmsplatf" == "slc4_ia32_gcc412"
95 >  mkdir -p %{i}/lib
96 >  ln -s /usr/lib/libreadline.so.4.3 %{i}/lib/libreadline.so
97 > %endif
98   make %makeprocesses
99  
100   %install
# Line 104 | 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 + rm  `find %{i}/lib -type f -name "_tkinter.so"`
138 + %endif
139 +
140   # SCRAM ToolBox toolfile
141   mkdir -p %i/etc/scram.d
142   cat << \EOF_TOOLFILE >%i/etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines