File amap.spec of Package amap

#
# spec file for package amap
#
# Copyright (c) 2017 SUSE LINUX 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/
#

%define jobs $(( `/usr/bin/getconf _NPROCESSORS_ONLN` + 1 ))

Name:           amap
Version:        5.4
Release:        1.0
License:        GPL-2.0
Group:          Productivity/Networking/Security
Url:            http://freeworld.thc.org/thc-amap/
Source:         %{name}-%{version}.tar.gz
Patch:		    amap-Path_corrections-5.2.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:	libopenssl-devel pcre-devel
Summary:        Networt protocol probing tool

%description
Amap was innovative - the first tool to perform application protocol detection.
Then a better approach was implemented into nmap, this and the large user
base of nmap made amap pretty much obsolete.

%prep
%setup -q
%patch

%build
%configure
%__make %{?jobs:-j%jobs}

%install
%makeinstall
%__rm %{buildroot}%{_bindir}/amap6
%__ln_s %{_bindir}/amap %{buildroot}%{_bindir}/amap6


%files
%defattr(-,root,root)
%{_bindir}/amap
%{_bindir}/amap6
%{_bindir}/amapcrap
%{_datadir}/amap
%{_mandir}/man1/amap.1.gz

%changelog
openSUSE Build Service is sponsored by