File hping.spec of Package hping

# spec file for package hping
# Copyright (c) 2011 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

Name:           hping
License:        GPL-2.0
Group:          Productivity/Networking/Diagnostic
BuildRequires:  automake
BuildRequires:  libpcap-devel
BuildRequires:  tcl-devel
Version:        3
Release:        0
Summary:        Command-line oriented TCP/IP packet assembler/analyzer
Source:         %{name}%{version}-20051105.tar.bz2
Patch0:         %{name}-include.patch
Patch1:         %{name}-cflags.patch
Patch2:         %{name}-bytesex.patch
Patch3:         %{name}-64bit.patch
Patch4:         %{name}-build-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

hping is a command-line oriented TCP/IP packet assembler/analyzer.
The interface is inspired to the ping(8) unix command, but hping 
isn't only able to send ICMP echo requests. It supports TCP, UDP, 
ICMP and RAW-IP protocols, has a traceroute mode, the ability to 
send files between a covered channel, and many other features.

%setup -q -n %{name}%{version}-20051105
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch4 -p0

autoreconf -fiv
make %{?_smp_mflags}


%doc docs/HPING2-IS-OPEN docs/MORE-FUN-WITH-IPID docs/SPOOFED_SCAN.txt docs/HPING3.txt docs/AS-BACKDOOR docs/HPING2-HOWTO.txt  
%attr(755,root,root) %{_sbindir}/hping3