File xprobe2.spec of Package xprobe2

# spec file for package xprobe2
# Copyright (c) 2010-2014 Malcolm J Lewis <>
# 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:           xprobe2
Version:        0.3
Release:        1
License:        GPL-2.0
Summary:        Remote active operating system fingerprinting tool
Group:          Productivity/Networking/Security
# PATCH-FIX-OPENSUSE xprobe2-fix-gcc-error.patch -- Add cstdlib and cstring to, and tcp.h for newer gcc
Patch0:         xprobe2-fix-gcc-error.patch
# PATCH-FIX-OPENSUSE xprobe2-strict-aliasing-punning.patch -- Add -fno-strict-aliasing to Makefile for
Patch1:         xprobe2-strict-aliasing-punning.patch
# PATCH-FIX-OPENSUSE xprobe2-fix-incorrect-fsf-address.patch -- Fix FSF address warning in COPYING.
Patch2:         xprobe2-fix-incorrect-fsf-address.patch
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  libpcap-devel
%if 0%{?suse_version} >= 1130
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  glib2-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Xprobe2 uses advanced technics, such as the usage of fuzzy logic
to match fingerprinting results with the tool's signature database,
unique fingerprinting methods and other, to provide with accurate

Xprobe2 has evolved from the original Xprobe tool, but it has been
completely rewritten from scratch in C++.

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
chmod 0644 COPYING TODO

make %{?_smp_mflags}


%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf

openSUSE Build Service is sponsored by