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.10 by lat, Mon May 15 18:33:01 2006 UTC vs.
Revision 1.21 by steen, Mon Aug 28 22:30:35 2006 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2
1 > ### RPM external python 2.4.3
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
5 > Requires: zlib expat openssl bz2lib db4 gdbm openssl
6   # FIXME: readline, crypt
7   # FIXME: gmp, panel, tk/tcl, x11
8  
9   Source0: http://www.python.org/ftp/%n/%v/Python-%v.tgz
10 < #Patch0: python-osx
10 > Patch0: python-Include-pyport.h
11 > Patch1: python-Lib-plat-mac-applesingle.py
12 > Patch2: python-Lib-site.py
13 > Patch3: python-Mac-OSX-Makefile
14 > Patch4: python-Makefile.pre.in
15 > Patch5: python-configure
16 > Patch6: python-setup.py
17 >
18  
19   %prep
20   %setup -n Python-%v
21 + #%patch0
22 + #%patch1
23 + #%patch2
24 + #%patch3
25 + #%patch4
26 + #%patch5
27 + #%patch6
28   perl -p -i -e "s|#!.*/usr/local/bin/python|#!/usr/bin/env python|" Lib/cgi.py
29  
30   %ifos darwin
# Line 31 | Line 45 | perl -p -i -e "s|#!.*/usr/local/bin/pyth
45   # whether we like to pick up system libraries or want total control.
46   mkdir -p %i/include %i/lib
47   dirs="$ZLIB_ROOT $EXPAT_ROOT $OPENSSL_ROOT $BZ2LIB_ROOT $NCURSES_ROOT $DB4_ROOT $GDBM_ROOT"
48 + echo $dirs
49   for d in $dirs; do
50    for f in $d/include/*; do
51      [ -f $f ] || continue
# Line 51 | Line 66 | make %makeprocesses
66   make install
67   %define pythonv %(echo %v | cut -d. -f 1,2)
68  
69 < if [ $(uname) = Darwin ]; then
69 > #if [ $(uname) = Darwin ]; then
70    # make install prefix=%i
71    # (cd Misc; /bin/rm -rf RPM)
72    # mkdir -p %i/share/doc/%n
73    # cp -R Demo Doc %i/share/doc/%n
74    # cp -R Misc Tools %i/lib/python%{pythonv}
75 <  cc -dynamiclib -all_load -single_module \
76 <    -framework System -framework CoreServices -framework Foundation \
77 <    %i/lib/python%{pythonv}/config/libpython%{pythonv}.a \
78 <    -o %i/lib/python%{pythonv}/config/libpython%{pythonv}.dylib \
79 <    -install_name %i/lib/python%{pythonv}/config/libpython%{pythonv}.dylib \
80 <    -current_version %{pythonv} -compatibility_version %{pythonv} -ldl
81 <  ln -s libpython%{pythonv}.dylib %i/lib/python%{pythonv}/config/libpython%{pythonv}.dylib # for boost
75 > #  gcc -dynamiclib -all_load -single_module \
76 > #    -framework System -framework CoreServices -framework Foundation \
77 > #    %i/lib/python%{pythonv}/config/libpython%{pythonv}.a \
78 > #    -undefined dynamic_lookup \
79 > #    -o %i/lib/python%{pythonv}/config/libpython%{pythonv}.dylib \
80 > #    -install_name %i/lib/python%{pythonv}/config/libpython%{pythonv}.dylib \
81 > #    -current_version %{pythonv} -compatibility_version %{pythonv} -ldl
82 > #  ln -s libpython%{pythonv}.dylib %i/lib/python%{pythonv}/config/libpython%{pythonv}.dylib # for boost
83    # (cd %i/lib/python%{pythonv}/config; mv Makefile Makefile.orig;
84    #  sed 's|-fno-common||g' < Makefile.orig > Makefile; /bin/rm -f Makefile.orig)
85 < fi
85 > #fi
86  
87   perl -p -i -e "s|^#!.*python|#!/usr/bin/env python|" %{i}/bin/idle \
88                      %{i}/bin/pydoc \
# Line 75 | Line 91 | perl -p -i -e "s|^#!.*python|#!/usr/bin/
91                      %{i}/lib/python2.4/test/test_bz2.py \
92                      %{i}/lib/python2.4/test/test_largefile.py \
93                      %{i}/lib/python2.4/test/test_optparse.py
94 + # boost.spec rfio.spec
95 + #
96 + #
97 + rm  `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'`
98 + rm  `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'`
99 + %post
100 + 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