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 |
16 |
|
Patch5: python-configure |
17 |
|
Patch6: python-setup.py |
18 |
|
|
19 |
+ |
|
20 |
|
%prep |
21 |
|
%setup -n Python-%v |
22 |
|
#%patch0 |
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 |
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 |