1 |
< |
### RPM external openssl 0.9.7d-CMS18 |
2 |
< |
Source: http://www.openssl.org/source/%n-%realversion.tar.gz |
1 |
> |
### RPM external openssl 0.9.8e |
2 |
> |
Source: http://cmsrep.cern.ch/cmssw/openssl-sources/%n-fips-%realversion-usa.tar.bz2 |
3 |
> |
Patch0: openssl-0.9.8e-rh-0.9.8e-12.el5_4.6 |
4 |
|
|
5 |
|
%prep |
6 |
< |
%setup -n %n-%{realversion} |
6 |
> |
%setup -n %n-fips-%{realversion} |
7 |
> |
%patch0 -p1 |
8 |
|
|
9 |
|
%build |
10 |
< |
./config --prefix=%i shared |
11 |
< |
case $(uname)-$(uname -m) in |
12 |
< |
Darwin*) |
13 |
< |
perl -p -i -e 's|-compatibility_version.*|-compatibility_version \${SHLIB_MAJOR}.\${SHLIB_MINOR} \\|' Makefile.ssl |
10 |
> |
# Looks like rpmbuild passes its own sets of flags via the |
11 |
> |
# RPM_OPT_FLAGS environment variable and those flags include |
12 |
> |
# -m64 (probably since rpmbuild processor detection is not |
13 |
> |
# fooled by linux32). A quick fix is to just set the variable |
14 |
> |
# to "" but we should probably understand how rpm determines |
15 |
> |
# those flags and use them for our own good. |
16 |
> |
export RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-DOPENSSL_USE_NEW_FUNCTIONS -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -mtune=generic" |
17 |
> |
|
18 |
> |
case %cmsplatf in |
19 |
> |
osx*) |
20 |
> |
perl -p -i -e 's|-compatibility_version.*|-compatibility_version \${SHLIB_MAJOR}.\${SHLIB_MINOR} \\|' Makefile.ssl ;; |
21 |
|
esac |
22 |
|
|
23 |
+ |
./config --prefix=%i enable-seed enable-tlsext enable-rfc3779 \ |
24 |
+ |
no-idea no-mdc2 no-rc5 no-ec no-ecdh no-ecdsa shared |
25 |
+ |
|
26 |
|
make |
27 |
|
%install |
28 |
|
make install |
29 |
+ |
rm -rf %{i}/lib/pkgconfig |
30 |
+ |
|
31 |
+ |
# MacOSX is case insensitive and the man page structure has case sensitive logic |
32 |
+ |
case %cmsplatf in |
33 |
+ |
osx* ) |
34 |
+ |
rm -rf %{i}/ssl/man |
35 |
+ |
;; |
36 |
+ |
esac |
37 |
|
perl -p -i -e "s|^#!.*perl|#!/usr/bin/env perl|" %{i}/ssl/misc/CA.pl %{i}/ssl/misc/der_chop %{i}/bin/c_rehash |
38 |
|
# |
39 |
|
# SCRAM ToolBox toolfile |