%define openssldir /etc/ssl
# provide well-know certificates? (1=yes, 0=no)
%define CERTS 1
# package them in a dedicated sub-package? (1=yes, 0=no)
%define CERTS-pkg 0
Name : openssl
Version : 0.9.6
Release : 17
Group : System/Library
Summary : Secure Sockets Layer communications libs & utils.
SSL (Secure Sockets Layer).
Copyright : BSD-style
Packager : Stephan Seyboth <sps@caldera.de>
URL :
http://www.openssl.org/
#Requires : /usr/lib/OpenLinux/install/finish.sh
BuildRoot : /tmp/%{Name}-%{Version}
Source0: openssl-%{Version}-pruned-1.3.tar.gz
Source1: openssl-prune-1.3
Source2: openssl-ca.cnf
Source3: openssl-default_certs.sh
Source4:
http://www.modssl.org/.../mod_ssl-2...._ca-bundle.crt
Patch0: openssl-0.9.6-make.patch
Patch1: openssl-0.9.6-ca.patch
Patch2: openssl-0.9.6-tmp.patch
Patch3: openssl-0.9.6-getenv.patch
Patch4: openssl-0.9.6-ia64.patch
Patch5: openssl096a-prng.patch
Patch6: openssl096a-prng-2.patch
%Package devel
Group : Programming/Library
Requires : %{Name} = %{Version}
Summary : Static SSL libraries, header files, and utilities.
%Package devel-static
Group : Programming/Library
Requires : %{Name}-devel = %{Version}
Summary : OpenSSL static development libraries.
# %%%%%% LINE 73 %%%%%% #
%if %{CERTS-pkg}
%Package certs
Group : System/Data
Requires : %{Name}
Summary : Well-known certificates.
%endif
%Description
This package installs the OpenSSL certificate management tool and the shared libraries that provide various encryption and decryption algorithms and protocols, including DES, RC4, RSA and SSL.
%Description devel
The static libraries and include files needed to compile apps
with support for various cryptographic algorithms and protocols,
including DES, RC4, RSA and SSL.
%Description devel-static
This package contains the OpenSSL static development libraries.
%Description -l de devel-static
Dieses Paket enthält die statischen Entwicklerbibliotheken für OpenSSL.
%Description -l es devel-static
Este paquete contiene las librerías estáticas de desarrollo de OpenSSL.
%Description -l fr devel-static
Ce paquetage contient les bibliothčques statiques de développement de
OpenSSL.
%Description -l it devel-static
Questo pacchetto contiene le librerie per lo sviluppo statico con OpenSSL.
%Description -l pt devel-static
Este pacote contém as bibliotecas estáticas de desenvolvimento do OpenSSL.
%Description -l pt_BR devel-static
Este pacote contem as bibliotecas estáticas de desenvolvimento do OpenSSL.
%if %{CERTS-pkg}
%Description certs
This package contains certificates from well-known CAs for use with
OpenSSL.
%endif
%Prep
%setup -q
%patch0 -p1 -b .make
%patch1 -p1 -b .ca
%patch2 -p1 -b .tmp
%patch3 -p1 -b .getenv
%patch4 -p1 -b .ia64
pushd crypto/rand
%patch5 -p0 -b .prng
popd
pushd doc/crypto
%patch6 -p0 -b .prng2
popd
%Build
# FIXME: rpm_opt_flags
./config \
--prefix=/usr \
--openssldir=%{openssldir} \
no-idea \
no-rc5 \
no-mdc2 \
no-md2 \
shared \
-fPIC
# set the correct perl path
perl util/perlpath.pl /usr/bin
# needed if algorithms have been pruned
make depend
make
%{NoBuildCheck} || LD_LIBRARY_PATH=`pwd` make test
%Install
%{mkDESTDIR}
make INSTALL_PREFIX="$DESTDIR" MANDIR="/usr/man" LIBS="lib*" install
chmod 0700 $DESTDIR/%{openssldir}/private
# install structure for CA stuff
mkdir -p $DESTDIR%{openssldir}/ca/{certs,crl,newcerts,private}
install -m 0644 %{SOURCE2} $DESTDIR%{openssldir}/ca/default-ca.cnf
install -m 0755 %{SOURCE3} $DESTDIR%{openssldir}/misc/default_certs.sh
for i in $DESTDIR%{openssldir}/misc/{CA.*,default_certs.sh} ; do
%{fixUP} -T $i -e 's:\@OPENSSLDIR\@:%{openssldir}:';
done
%if %{CERTS}
#mkdir $DESTDIR%{openssldir}/trusted
install -p -o 0 -g 0 -m 0444 %{SOURCE4} $DESTDIR%{openssldir}/ca-bundle.crt
%endif
# remove man-page conflicts and compress them
MD="$DESTDIR/usr/man"
mv $MD/man1/passwd.1 $MD/man1/passwd-ssl.1
mv $MD/man3/rand.3 $MD/man3/rand-ssl.3
%{fixManPages}
# install remaining docs
DocD="$DESTDIR%{_defaultdocdir}/%{Name}-%{Version}"; mkdir -p $DocD/doc
cp -a CHANGES CHANGES.SSLeay FAQ LICENSE NEWS README $DocD
cp -a doc/{*.txt,openssl_button.gif,openssl_button.html} $DocD/doc
# generate file lists
%{mkLists} -c %{Name}
%{mkLists} -d %{Name} <<'EOF'
%if %{CERTS-pkg}
%{openssldir}/trusted certs
%endif
* default
EOF
%{mkLists} -a -f %{Name} <<'EOF'
/etc * prefix(%%config)
%if %{CERTS-pkg}
%{openssldir}/trusted/.*\.(pem|crl)$ certs
%{openssldir}/ca-bundle.crt certs
%endif
%{openssldir}/openssl.cnf base #refix(%%config)
* default
EOF
%Clean
%{rmDESTDIR}
%Post
: %OL-lizard-finish
/sbin/ldconfig
%{openssldir}/misc/default_certs.sh
/usr/bin/c_rehash %{openssldir}/certs
%if %{CERTS-pkg}
%Post certs
%endif
%if %{CERTS}
[ ! -d %{openssldir}/trusted ] || /usr/bin/c_rehash %{openssldir}/trusted
%endif
%PostUn
/sbin/ldconfig
[ ! -x /usr/bin/c_rehash ] || /usr/bin/c_rehash %{openssldir}/certs
%if %{CERTS-pkg}
%PostUn certs
%endif
%if %{CERTS}
[ ! -x /usr/bin/c_rehash -o ! -d %{openssldir}/trusted ] ||
/usr/bin/c_rehash %{openssldir}/trusted
%endif
%Files -f files-%{Name}-base
%defattr(-,root,root)
%Files devel -f files-%{Name}-devel
%defattr(-,root,root)
%Files devel-static -f files-%{Name}-devel-static
%defattr(-,root,root)
%if %{CERTS-pkg}
%Files certs -f files-%{Name}-certs
%defattr(-,root,root)
%endif
%ChangeLog
* Mon Jan 01 1998 ...
Template Version: 1.31
$Id: openssl.spec,v 1.17 2001/11/07 15:19:32 ray Exp $
_________________________________________
Thanks