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 |
150 |
|
</Tool> |
151 |
|
EOF_TOOLFILE |
152 |
|
|
153 |
+ |
# Makes sure that executables start with /usr/bin/env perl and not with comments. |
154 |
+ |
find %i -type f -perm -555 -name '*.py' -exec perl -p -i -e 'if ($. == 1) {s|^"""|#/usr/bin/env python\n"""|}' {} \; |
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/local/bin/python|/usr/bin/env python|}' {} \; |
157 |
+ |
rm -f %i/share/doc/python/Demo/rpc/test |
158 |
+ |
|
159 |
|
%post |
160 |
|
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 |
161 |
|
%{relocateConfig}etc/scram.d/%n |