I have built RPMs of OpenSSL 0.9.4 under Redhat 6.0 and uploaded them
to ftp.replay.com.

I have also attached a spec file so you can build you own.

Regards,
Damien Miller


--
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller - http://www.ilogic.com.au/~dmiller
| Email: [EMAIL PROTECTED] (home) -or- [EMAIL PROTECTED] (work)
%define libmaj 0
%define libmin 9
%define librel 4
#%define librev a

%define openssldir /var/ssl

Summary: Secure Sockets Layer and cryptography libraries and tools
Name: openssl
Version: %{libmaj}.%{libmin}.%{librel}
#Version: %{libmaj}.%{libmin}.%{librel}%{librev}
Release: 1
Source0: ftp://ftp.openssl.org/pub/openssl/%{name}-%{version}.tar.gz
Copyright: Freely distributable
Group: System Environment/Libraries
Provides: SSL
URL: http://www.openssl.org/
Packager: Damien Miller <[EMAIL PROTECTED]>
BuildRoot:   /tmp/%{name}-%{version}-root

%description
The OpenSSL Project is a collaborative effort to develop a robust,
commercial-grade, fully featured, and Open Source toolkit implementing the
Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
protocols with full-strength cryptography world-wide. The project is
managed by a worldwide community of volunteers that use the Internet to
communicate, plan, and develop the OpenSSL tookit and its related
documentation. 

OpenSSL is based on the excellent SSLeay library developed from Eric A.
Young and Tim J. Hudson.  The OpenSSL toolkit is licensed under an
Apache-style licence, which basically means that you are free to get and
use it for commercial and non-commercial purposes. 

This package contains the base OpenSSL cryptography and SSL/TLS 
libraries and tools.

%package devel
Summary: Secure Sockets Layer and cryptography static libraries and headers
Group: Development/Libraries
Requires: openssl
%description devel
The OpenSSL Project is a collaborative effort to develop a robust,
commercial-grade, fully featured, and Open Source toolkit implementing the
Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1)
protocols with full-strength cryptography world-wide. The project is
managed by a worldwide community of volunteers that use the Internet to
communicate, plan, and develop the OpenSSL tookit and its related
documentation. 

OpenSSL is based on the excellent SSLeay library developed from Eric A.
Young and Tim J. Hudson.  The OpenSSL toolkit is licensed under an
Apache-style licence, which basically means that you are free to get and
use it for commercial and non-commercial purposes. 

This package contains the the OpenSSL cryptography and SSL/TLS 
static libraries and header files required when developing applications.

%prep

%setup -q

# Set path to perl
perl util/perlpath.pl /usr/bin/perl
#mv ./apps/der_chop ./apps/der_chop.bak
#sed '/#!\/usr\/local\/bin\/perl/s//#!\/usr\/bin\/perl/' < ./apps/der_chop.bak > 
./apps/der_chop 

%build 
./Configure --prefix=/usr --openssldir=%{openssldir} linux-elf
make linux-shared
LD_LIBRARY_PATH=`pwd` make
LD_LIBRARY_PATH=`pwd` make rehash

%install
rm -rf $RPM_BUILD_ROOT
make install INSTALL_PREFIX="$RPM_BUILD_ROOT"

# Install RSAref stuff
install -m644 rsaref/rsaref.h $RPM_BUILD_ROOT/usr/include/openssl
install -m644 libRSAglue.a $RPM_BUILD_ROOT/usr/lib

# Make backwards-compatibility symlink to ssleay
ln -s /usr/bin/openssl $RPM_BUILD_ROOT/usr/bin/ssleay

# Install shared libs
install -m755 libcrypto.so.%{libmaj}.%{libmin}.%{librel} $RPM_BUILD_ROOT/usr/lib
install -m755 libssl.so.%{libmaj}.%{libmin}.%{librel} $RPM_BUILD_ROOT/usr/lib
ln -s /usr/lib/libcrypto.so.%{libmaj}.%{libmin}.%{librel} 
$RPM_BUILD_ROOT/usr/lib/libcrypto.so.%{libmaj}
ln -s /usr/lib/libcrypto.so.%{libmaj}.%{libmin}.%{librel} 
$RPM_BUILD_ROOT/usr/lib/libcrypto.so
ln -s /usr/lib/libssl.so.%{libmaj}.%{libmin}.%{librel} 
$RPM_BUILD_ROOT/usr/lib/libssl.so.%{libmaj}
ln -s /usr/lib/libssl.so.%{libmaj}.%{libmin}.%{librel} 
$RPM_BUILD_ROOT/usr/lib/libssl.so

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%doc %attr(0644,root,root) CHANGES
%doc %attr(0644,root,root) CHANGES.SSLeay
%doc %attr(0644,root,root) LICENSE
%doc %attr(0644,root,root) NEWS
%doc %attr(0644,root,root) README
%doc %attr(0644,root,root) doc

%attr(0755,root,root) /usr/bin/*
%attr(0755,root,root) /usr/lib/*.so*
%attr(0755,root,root) %{openssldir}/misc/*

%config %attr(0644,root,root) %{openssldir}/openssl.cnf 
%dir %attr(0755,root,root) %{openssldir}/certs
%dir %attr(0755,root,root) %{openssldir}/lib
%dir %attr(0755,root,root) %{openssldir}/misc
%dir %attr(0750,root,root) %{openssldir}/private

%files devel
%doc %attr(0644,root,root) CHANGES
%doc %attr(0644,root,root) CHANGES.SSLeay
%doc %attr(0644,root,root) LICENSE
%doc %attr(0644,root,root) NEWS
%doc %attr(0644,root,root) README
%doc %attr(0644,root,root) doc
%doc %attr(0644,root,root) demos

%attr(0644,root,root) /usr/lib/*.a
%attr(0644,root,root) /usr/include/openssl/*

%post
ldconfig

%postun
ldconfig

%changelog
* Tue Sep 10 1999 Damien Miller <[EMAIL PROTECTED]>
- Updated to version 0.9.4
* Tue May 25 1999 Damien Miller <[EMAIL PROTECTED]>
- Updated to version 0.9.3
- Added attributes for all files
- Paramatised openssl directory
* Sat Mar 20 1999 Carlo M. Arenas Belon <[EMAIL PROTECTED]>
- Added "official" bnrec patch and taking other out
- making a link from ssleay to openssl binary
- putting all changelog together on SPEC file
* Fri Mar  5 1999 Henri Gomez <[EMAIL PROTECTED]>
- Added bnrec patch
* Tue Dec 29 1998 Jonathan Ruano <[EMAIL PROTECTED]>
- minimum spec and patches changes for openssl
- modified for openssl sources
* Sat Aug  8 1998 Khimenko Victor <[EMAIL PROTECTED]>
- shared library creating process honours $RPM_OPT_FLAGS
- shared libarry supports threads (as well as static library)
* Wed Jul 22 1998 Khimenko Victor <[EMAIL PROTECTED]>
- building of shared library completely reworked
* Tue Jul 21 1998 Khimenko Victor <[EMAIL PROTECTED]>
- RPM is BuildRoot'ed
* Tue Feb 10 1998 Khimenko Victor <[EMAIL PROTECTED]>
- all stuff is moved out of /usr/local

Reply via email to