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.64 by elmer, Mon Apr 19 16:13:00 2010 UTC vs.
Revision 1.67 by eulisse, Wed Aug 11 13:00:09 2010 UTC

# Line 116 | Line 116 | perl -p -i -e "s|^#!.*python|#!/usr/bin/
116                      %{i}/lib/python2.6/test/test_bz2.py \
117                      %{i}/lib/python2.6/test/test_largefile.py \
118                      %{i}/lib/python2.6/test/test_optparse.py
119 < rm  `find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*'`
120 < rm  `find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*'`
119 >
120 > find %{i}/lib -maxdepth 1 -mindepth 1 ! -name '*python*' -exec rm {} \;
121 > find %{i}/include -maxdepth 1 -mindepth 1 ! -name '*python*' -exec rm {} \;
122  
123   # remove tkinter that brings dependency on libtk:
124   find %{i}/lib -type f -name "_tkinter.so" -exec rm {} \;
125  
125 # SCRAM ToolBox toolfile
126 mkdir -p %i/etc/scram.d
127 cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
128 <doc type=BuildSystem::ToolDoc version=1.0>
129 <Tool name=%n version=%v>
130 <lib name=python2.6>
131 <Client>
132 <Environment name=PYTHON_BASE default="%i"></Environment>
133 <Environment name=LIBDIR default="$PYTHON_BASE/lib"></Environment>
134 <Environment name=INCLUDE default="$PYTHON_BASE/include/python2.6"></Environment>
135 <Environment name=PYTHON_COMPILE default="$PYTHON_BASE/lib/python2.6/compileall.py"></Environment>
136 </Client>
137 <use name=sockets>
138 <Runtime name=PATH value="$PYTHON_BASE/bin" type=path>
139 </Tool>
140 EOF_TOOLFILE
141
126   # Makes sure that executables start with /usr/bin/env perl and not with comments.
127   find %i -type f -perm -555 -name '*.py' -exec perl -p -i -e 'if ($. == 1) {s|^"""|#/usr/bin/env python\n"""|}' {} \;
128   find %i -type f -perm -555 -name '*.py' -exec perl -p -i -e 'if ($. == 1) {s|^\'\'\'|#/usr/bin/env python\n\'\'\'|}' {} \;
# Line 156 | Line 140 | for x in %pkgreqs; do
140   done
141  
142   %post
159 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
160 %{relocateConfig}etc/scram.d/%n
143   %{relocateConfig}lib/python2.6/config/Makefile
162
163 # Relocation for dependencies
144   %{relocateConfig}etc/profile.d/dependencies-setup.sh
145   %{relocateConfig}etc/profile.d/dependencies-setup.csh
146  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines