#include <openssl/rand.h>
#include <openssl/err.h>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
# define USE_TOD
#elif !defined(MSDOS) && (!defined(VMS) || defined(__DECC))
# define TIMES
#endif
-#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(MPE)
+#if !defined(_UNICOS) && !defined(__OpenBSD__) && !defined(sgi) && !defined(__FreeBSD__) && !(defined(__bsdi) || defined(__bsdi__)) && !defined(_AIX) && !defined(MPE) && !defined(__NetBSD__)
# define TIMEB
#endif
%define libmin 9
%define librel 6
%define librev a
+%define libstatus beta3_dev
+%define fileversion %{libmaj}.%{libmin}.%{librel}%{librev}-beta3-dev
+%define rpmversion %{libmaj}.%{libmin}.%{librel}%{librev}_%{libstatus}
Release: 1
%define openssldir /var/ssl
Summary: Secure Sockets Layer and cryptography libraries and tools
Name: openssl
#Version: %{libmaj}.%{libmin}.%{librel}
-Version: %{libmaj}.%{libmin}.%{librel}%{librev}
-Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
+Version: %{rpmversion}
+Source0: ftp://ftp.openssl.org/source/%{name}-%{fileversion}.tar.gz
Copyright: Freely distributable
Group: System Environment/Libraries
Provides: SSL
%prep
-%setup -q
+%setup -n %{name}-%{fileversion}
%build
%ifarch alpha
./Configure %{CONFIG_FLAGS} --openssldir=%{openssldir} linux-alpha shared
%endif
-LD_LIBRARY_PATH=`pwd` make
-LD_LIBRARY_PATH=`pwd` make rehash
-LD_LIBRARY_PATH=`pwd` make test
+LD_LIBRARY_PATH=`pwd` ( make && make rehash && make test )
%install
rm -rf $RPM_BUILD_ROOT