File xprobe2.spec of Package xprobe2

#
# spec file for package xprobe2
#
# Copyright (c) 2010-2014 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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:           xprobe2
Version:        0.3
Release:        1
License:        GPL-2.0
Summary:        Remote active operating system fingerprinting tool
Url:            http://sourceforge.net/apps/mediawiki/xprobe/index.php?title=Main_Page
Group:          Productivity/Networking/Security
Source0:        http://colocrossing.dl.sourceforge.net/project/xprobe/xprobe2/Xprobe2%200.3/xprobe2-0.3.tar.gz
# PATCH-FIX-OPENSUSE xprobe2-fix-gcc-error.patch malcolmlewis@opensuse.org -- Add cstdlib and cstring to misc.cc, ip.cc and tcp.h for newer gcc
Patch0:         xprobe2-fix-gcc-error.patch
# PATCH-FIX-OPENSUSE xprobe2-strict-aliasing-punning.patch malcolmlewis@opensuse.org -- Add -fno-strict-aliasing to Makefile for tcp.cc
Patch1:         xprobe2-strict-aliasing-punning.patch
# PATCH-FIX-OPENSUSE xprobe2-fix-incorrect-fsf-address.patch malcolmlewis@opensuse.org -- 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)
%else
BuildRequires:  glib2-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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
results.

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

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

%build
%configure
make %{?_smp_mflags}

%install
%makeinstall

%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG COPYING CREDITS README TODO
%{_bindir}/xprobe2
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_mandir}/man1/xprobe2.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by