File masscan.spec of Package masscan

#
# spec file for package checkpolicy
#
# 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 COMMIT 894b1ad5c0d4a8fbc4a1db29a023aa8f9db6151b
%define SHORTCOMMIT 894b1ad5

Name:           masscan
Version:        20190410
Release:        0
Summary:        Asynchronous port scanner
License:        AGPL-1.0
Group:          Productivity/Security
Url:            https://github.com/robertdavidgraham/masscan
Source:         https://github.com/robertdavidgraham/%{name}/archive/%{SHORTCOMMIT}.tar.gz
Patch1: 	enable-pie.patch
Patch2: 	pcap_names.patch
BuildRequires:  llvm-clang

%description
TCP port scanner, spews SYN packets asynchronously, scanning the
entire Internet in under 5 minutes. 

%prep
%setup -q -n masscan-%{COMMIT}
%patch1 -p1
%patch2 -p1

%build
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%files
/usr/bin/masscan

%changelog
openSUSE Build Service is sponsored by