File masscan.spec of Package masscan

#
# spec file for package masscan
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 Georg Pfuetzenreuter
#
# 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 https://bugs.opensuse.org/
#


Name:           masscan
Version:        1.3.2
Release:        0
Summary:        Internet-scale port scanner
License:        AGPL-3.0-only
Group:          Productivity/Networking/Diagnostic
URL:            https://github.com/robertdavidgraham/masscan
Source0:        %{name}-%{version}.tar.gz
# for tests
BuildRequires:  pkgconfig(libpcap)

%description
This is an Internet-scale port scanner. It can scan the entire Internet in under 5 minutes, transmitting 10 million packets per second, from a single machine.

%prep
%autosetup -p1

%build
%make_build

%install
%make_install
install -Dm0644 -t %{buildroot}%{_mandir}/man8 doc/%{name}.8

%check
%{__make} test

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8%{?ext_man}

%changelog
openSUSE Build Service is sponsored by