File ssldump.spec of Package ssldump

#
# spec file for package ssldump (Version 0.9b3)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           ssldump
BuildRequires:  libpcap-devel openssl-devel
Version:        0.9b3
Release:        145
Summary:        SSLv3/TLS Network Protocol Analyzer
License:        BSD 3-Clause
Group:          Productivity/Networking/Diagnostic
Autoreqprov:    on
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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 ssldump-%{version}
%patch
%patch1
%patch2 -p 1
%patch3
%patch4
%patch5 -p 1

%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}
make

%install
rm -rf $RPM_BUILD_ROOT
make BINDIR=$RPM_BUILD_ROOT/%{_prefix}/sbin MANDIR=$RPM_BUILD_ROOT/%{_mandir} install

%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
* Thu Jul 26 2007 - prusnak@suse.cz
- changed libpcap to libpcap-devel in BuildRequires
* Tue Jun 05 2007 - mc@suse.de
- add ssldump-cvs-06-19-2006.diff
- re-work patch for new ssl version
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Oct 14 2005 - ro@suse.de
- include openssl/md5.h in ssldecode.c
* Wed Jul 06 2005 - choeger@suse.de
- #include <string.h> when using related functions
* Thu Feb 17 2005 - choeger@suse.de
- Bugfix Bugzilla ID#50952 - ssldump has no support for AES cipher-suites
* Fri Apr 23 2004 - choeger@suse.de
- use -fno-strict-aliasing to compile
- fixed two functions which does not return anything matching
  their prototypes
* Thu Feb 12 2004 - ro@suse.de
- adapt to change in libpcap: include moved to pcap_bpf.h
* Mon Nov 03 2003 - choeger@suse.de
- make it build on biarch platforms
* Fri Oct 31 2003 - choeger@suse.de
- new package (v0.9b3)