File arping2.spec of Package arping2

#
# spec file for package arping2
#
# Copyright (c) 2024 SUSE LLC
#
# 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:           arping2
Version:        2.25
Release:        0
Summary:        Layer-2 Ethernet pinger
License:        GPL-2.0-or-later
Group:          Productivity/Networking/Diagnostic
URL:            https://www.habets.pp.se/synscan/programs.php?prog=arping
#Git-Clone:	https://github.com/ThomasHabets/arping
Source:         https://www.habets.pp.se/synscan/files/arping-%version.tar.gz
Source2:        https://www.habets.pp.se/synscan/files/arping-%version.tar.gz.asc
Source3:        %name.keyring
BuildRequires:  libnet-devel
BuildRequires:  libpcap-devel

%description
Arping is a util to find out it a specific IP address on the LAN is
"taken" and what MAC address owns it. It is designed to work on
unrouted networks and with ICMP-blocking hosts.

%prep
%autosetup -n arping-%version

%build
%configure
%make_build

%install
b="%buildroot"
%make_install
# Avoid collision with iputils's inferior arping.
mv "$b/%_sbindir/arping" "$b/%_sbindir/%name"
mv "$b/%_mandir/man8/arping.8" "$b/%_mandir/man8/arping2.8"
# Unused
rm -Rv "$b/%_includedir"

%files
%_sbindir/arping2
%_mandir/man8/arping2.8*
%doc README

%changelog
openSUSE Build Service is sponsored by