File p0f.spec of Package p0f

#
# spec file for package python-iso8601
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

Name:           p0f
Version:        3.00
Release:        0
Url:            http://lcamtuf.coredump.cx/p0f3/
Summary:        Identify the players behind any incidental TCP/IP communications
License:        GPL-3-Clause
Group:          Productivity/Networking/Diagnostic
Source:        %{name}-%{version}-rc0.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libpcap-devel

%description
P0f is a tool that utilizes an array of sophisticated, purely passive
traffic fingerprinting mechanisms to identify the players behind any
incidental TCP/IP communications (often as little as a single normal
SYN) without interfering in any way. Version 3 is a complete rewrite
of the original codebase, incorporating a significant number of
improvements to network-level fingerprinting, and introducing the
ability to reason about application-level payloads (e.g., HTTP).

%prep
%setup -q -n %{name}-%{version}-rc0

%build
export CFLAGS="%{optflags}"
%{__make} all
pushd tools
    %{__make}
popd

%install
%{__install} -D p0f %{buildroot}%{_bindir}/p0f
pushd tools
    for binary in p0f-client p0f-sendsyn p0f-sendsyn6
    do
        %{__install} -D $binary %{buildroot}%{_bindir}/$binary
    done
popd

%files
%defattr(-,root,root)
%{_bindir}/*

%changelog