File dba-ssldump.spec of Package dba-ssldump
%define real_name ssldump
%define version 0.9b3
%define vers 09b3
%define prefix /DBA/%{real_name}/%{version}
%define _libdir %{prefix}/lib
%define _sysconfdir %{prefix}/etc
%define _bindir %{prefix}/bin
%define _sbindir %{prefix}/sbin
%define _includedir %{prefix}/include
%define _mandir %{prefix}/man
%define maketest 0
Name: dba-%{real_name}-%{vers}
Version: %{version}
Release: 0
Summary: SSLv3/TLS Network Protocol Analyzer
License: BSD-3-Clause
Group: Productivity/Networking/Diagnostic
Url: http://www.rtfm.com/ssldump
Source: ssldump-%{version}.tar.gz
Patch: ssldump-0.9b3-libpcap.diff
Patch1: random_return.patch
Patch2: ssldump-0.9b3-aes.patch
Patch3: implicit_def.patch
Patch4: ssldump-0.9b3-newssl.patch
Patch5: ssldump-cvs-06-19-2006.diff
Patch6: update-config.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libpcap-devel
BuildRequires: libtool
BuildRequires: openssl-devel
#!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c
%if 0%{?suse_version} >= 1100
BuildRequires: -post-build-checks
%endif
%description
ssldump is an SSLv3/TLS network protocol analyzer. It identifies TCP
connections on the chosen network interface and attempts to interpret
them as SSLv3/TLS traffic. When it identifies SSLv3/TLS traffic, it
decodes the records and outputs them in a textual form to stdout. If
provided with the appropriate keying material, it also decrypts the
connections and displays the application data traffic.
Authors:
--------
Eric Rescorla <ekr@rtfm.com>
%prep
%setup -n %{real_name}-%{version}
%patch
%patch1
%patch2 -p 1
%patch3
%patch4
%patch5 -p 1
%patch6 -p1
%build
%{?suse_update_config:%{suse_update_config}}
libtoolize --force
autoreconf
export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
#./configure --mandir=%{_mandir} \
# --prefix=%{_prefix} \
# --libdir=%{_libdir} \
# --with-pcap-lib=%{_libdir}
./configure --prefix="%{prefix}" --libdir="%{_libdir}" --bindir="%{_bindir}" --sysconfdir="%{_sysconfdir}" --includedir="%{_includedir}" --mandir="%{_mandir}" --with-pcap-lib=%{_libdir}
make
%install
#rm -rf $RPM_BUILD_ROOT
#make BINDIR=$RPM_BUILD_ROOT/%{_prefix}/sbin MANDIR=$RPM_BUILD_ROOT/%{_mandir} install
make install PREFIX=%{_prefix} DESTDIR="%{buildroot}" DATAROOTDIR="%{prefix}/usr"
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/sbin/*
%doc COPYRIGHT CREDITS ChangeLog FILES INSTALL* README VERSION
%doc %{_mandir}/man?/*.gz
%changelog