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.13 by elmer, Thu Jun 1 22:41:48 2006 UTC vs.
Revision 1.22 by ratnik, Wed Apr 18 23:46:02 2007 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2
1 > ### RPM external python 2.4.3
2 > Requires: gcc-wrapper
3   ## INITENV +PATH PATH %i/bin
4   ## INITENV +PATH LD_LIBRARY_PATH %i/lib
5   # OS X patches and build fudging stolen from fink
# Line 15 | Line 16 | Patch4: python-Makefile.pre.in
16   Patch5: python-configure
17   Patch6: python-setup.py
18  
19 +
20   %prep
21   %setup -n Python-%v
22   #%patch0
# Line 31 | Line 33 | perl -p -i -e "s|#!.*/usr/local/bin/pyth
33   %endif
34  
35   %build
36 + ## IMPORT gcc-wrapper
37   # Python is awkward about passing other include or library directories
38   # to it.  Basically there is no way to pass anything from configure to
39   # make, or down to python itself.  To get python detect the extensions
# Line 44 | Line 47 | perl -p -i -e "s|#!.*/usr/local/bin/pyth
47   # whether we like to pick up system libraries or want total control.
48   mkdir -p %i/include %i/lib
49   dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT"
50 + echo $dirs
51   for d in $dirs; do
52    for f in $d/include/*; do
53      [ -f $f ] || continue
# Line 89 | Line 93 | perl -p -i -e "s|^#!.*python|#!/usr/bin/
93                      %{i}/lib/python2.4/test/test_bz2.py \
94                      %{i}/lib/python2.4/test/test_largefile.py \
95                      %{i}/lib/python2.4/test/test_optparse.py
96 + # boost.spec rfio.spec
97 + #
98 + #
99 + rm  `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'`
100 + rm  `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'`
101 + %post
102 + 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines