19 |
|
Source0: http://www.python.org/ftp/%n/%realversion/Python-%realversion.tgz |
20 |
|
Patch1: python-fix-macosx-relocation |
21 |
|
Patch2: python-2.7.3-fix-pyport |
22 |
+ |
Patch3: python-2.7.3-ssl-fragment.patch |
23 |
|
|
24 |
|
%prep |
25 |
|
%setup -n Python-%realversion |
34 |
|
%patch2 -p1 |
35 |
|
%endif |
36 |
|
|
37 |
+ |
%patch3 -p1 |
38 |
+ |
|
39 |
|
%build |
40 |
|
# Python is awkward about passing other include or library directories |
41 |
|
# to it. Basically there is no way to pass anything from configure to |
187 |
|
# Remove .pyo files |
188 |
|
find %i -name '*.pyo' -exec rm {} \; |
189 |
|
|
187 |
– |
# Fix symlinks to match ``bin'' layout as in Python 2.6.4 |
188 |
– |
rm %{i}/bin/python %{i}/bin/python2 %{i}/bin/python2-config |
189 |
– |
ln -s python2.7 %{i}/bin/python |
190 |
– |
|
190 |
|
# Generate dependencies-setup.{sh,csh} so init.{sh,csh} picks full environment. |
191 |
|
mkdir -p %i/etc/profile.d |
192 |
|
: > %i/etc/profile.d/dependencies-setup.sh |