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.43 by eulisse, Mon Feb 23 16:13:23 2009 UTC vs.
Revision 1.45 by valya, Thu May 14 13:35:07 2009 UTC

# Line 1 | Line 1
1 < ### RPM external python 2.4.2-CMS19
1 > ### RPM external python 2.5.4
2   ## INITENV +PATH PATH %i/bin
3   ## INITENV +PATH LD_LIBRARY_PATH %i/lib
4   # OS X patches and build fudging stolen from fink
# Line 8 | Line 8 | Requires: expat bz2lib db4 gdbm
8   %if "%cmsplatf" != "slc4onl_ia32_gcc346"
9   Requires: zlib openssl
10   %endif
11 + Provides: python2.5
12  
13   # FIXME: readline, crypt
14   # FIXME: gmp, panel, tk/tcl, x11
# Line 150 | Line 151 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
151   </Tool>
152   EOF_TOOLFILE
153  
154 + # Makes sure that executables start with /usr/bin/env perl and not with comments.
155 + find %i -type f -perm -555 -name '*.py' -exec perl -p -i -e 'if ($. == 1) {s|^"""|#/usr/bin/env python\n"""|}' {} \;
156 + find %i -type f -perm -555 -name '*.py' -exec perl -p -i -e 'if ($. == 1) {s|^\'\'\'|#/usr/bin/env python\n\'\'\'|}' {} \;
157 + find %i -type f -perm -555 -name '*.py' -exec perl -p -i -e 'if ($. == 1) {s|/usr/local/bin/python|/usr/bin/env python|}' {} \;
158 + rm -f %i/share/doc/python/Demo/rpc/test
159 +
160   %post
161   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
162   %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines