File sslsplit.spec of Package sslsplit

#
# spec file for package sslsplit
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines
Name:           sslsplit
Version:        0.5.5
Release:        0
Summary:        Transparent and scalable SSL/TLS interception
License:        BSD-2-Clause
Group:          Productivity/Networking/Security
URL:            https://www.roe.ch/SSLsplit
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  check-devel
BuildRequires:  gcc
BuildRequires:  libevent-devel
BuildRequires:  libnet-devel
BuildRequires:  libopenssl-devel
BuildRequires:  libpcap-devel
BuildRequires:  make
Requires:       iptables

%description
SSLsplit is a tool for man-in-the-middle attacks against SSL/TLS
encrypted network connections. Connections are transparently intercepted
through a network address translation engine and redirected to SSLsplit.
SSLsplit terminates SSL/TLS and initiates a new SSL/TLS connection to
the original destination address, while logging all data transmitted.
SSLsplit is intended to be useful for network forensics and penetration
testing.

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
%make_build PREFIX="%{_prefix}"

%install
make install DESTDIR=%{buildroot} PREFIX="%{_prefix}"

%files
%license LICENSE
%doc NEWS.md README.md
%{_mandir}/man1/sslsplit.1%{?ext_man}
%attr(0755,root,root) %{_bindir}/sslsplit
%dir %{_prefix}%{_sysconfdir}
%dir %{_prefix}%{_sysconfdir}/sslsplit
%{_prefix}%{_sysconfdir}/sslsplit/sslsplit.conf.sample
%{_mandir}/man5/sslsplit.conf.5%{?ext_man}

%changelog
openSUSE Build Service is sponsored by