File arp-scan.spec of Package arp-scan

#
# spec file for package arp-scan
#
# Copyright (c) 2016 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/
#


Name:           arp-scan
Version:        1.9
Release:        0
Summary:        ARP scanning and fingerprinting tool
License:        GPL-3.0 and LGPL-2.1 and ISC
Group:          Productivity/Networking/Security
# strlcpy.c and strlcat.c have ISC header and embeded {getopt,obstack}.{c,h} has LGPL-2.1
Url:            https://github.com/royhills/arp-scan
Source:         https://github.com/royhills/arp-scan/releases/download/%{version}/arp-scan-%{version}.tar.gz
Patch0:         arp-scan-avoid-crash.patch
BuildRequires:  libpcap-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
arp-scan is a command-line tool that uses the ARP protocol to discover and fingerprint IP hosts on the local network.

%define debug_package_requires %{name} = %{version}-%{release}

%prep
%setup -q
%patch0 -p1

%build
%configure
make %{?_smp_mflags}

%check
make %{?_smp_mflags} check

%install
make %{?_smp_mflags} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/arp-fingerprint
%{_bindir}/arp-scan
%{_bindir}/get-iab
%{_bindir}/get-oui
%{_datadir}/arp-scan
%{_mandir}/man1/arp-fingerprint.1%{ext_man}
%{_mandir}/man1/arp-scan.1%{ext_man}
%{_mandir}/man1/get-iab.1%{ext_man}
%{_mandir}/man1/get-oui.1%{ext_man}
%{_mandir}/man5/mac-vendor.5%{ext_man}

%changelog
openSUSE Build Service is sponsored by