1 |
< |
### RPM external openssl 0.9.7b |
2 |
< |
Source: http://www.openssl.org/source/%n-%v.tar.gz |
1 |
> |
### RPM external openssl 0.9.7d-XXXX |
2 |
> |
Source: http://www.openssl.org/source/%n-%realversion.tar.gz |
3 |
> |
|
4 |
> |
%prep |
5 |
> |
%setup -n %n-%{realversion} |
6 |
|
|
7 |
|
%build |
8 |
|
./config --prefix=%i shared |
9 |
+ |
case $(uname)-$(uname -m) in |
10 |
+ |
Darwin*) |
11 |
+ |
perl -p -i -e 's|-compatibility_version.*|-compatibility_version \${SHLIB_MAJOR}.\${SHLIB_MINOR} \\|' Makefile.ssl |
12 |
+ |
esac |
13 |
+ |
|
14 |
|
make |
15 |
+ |
%install |
16 |
+ |
make install |
17 |
+ |
perl -p -i -e "s|^#!.*perl|#!/usr/bin/env perl|" %{i}/ssl/misc/CA.pl %{i}/ssl/misc/der_chop %{i}/bin/c_rehash |
18 |
+ |
# |