NetBSD and OpenBSD use TOD as well

This commit is contained in:
Richard Levitte 2001-04-11 10:06:44 +00:00
parent c4365acc48
commit ec11fa2159
2 changed files with 9 additions and 8 deletions

View file

@ -82,12 +82,12 @@
#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

View file

@ -2,6 +2,9 @@
%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
@ -9,8 +12,8 @@ Release: 1
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
@ -79,7 +82,7 @@ documentation and POD files from which the man pages were produced.
%prep
%setup -q
%setup -n %{name}-%{fileversion}
%build
@ -96,9 +99,7 @@ perl util/perlpath.pl /usr/bin/perl
%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