text: Name: %{_cross_os}iputils
  Version: 20190709
  Release: 1%{?dist}
  Summary: A set of network monitoring tools
  License: GPL-2.0-or-later AND BSD-3-Clause
  URL: https://github.com/iputils/iputils
  Source0: https://github.com/iputils/iputils/archive/s%{version}.tar.gz#/iputils-s%{version}.tar.gz
  
  BuildRequires: %{_cross_os}glibc-devel
  BuildRequires: %{_cross_os}libcap-devel
  Requires: %{_cross_os}libcap
  
  %description
  %{summary}.
  
  %prep
  %autosetup -n iputils-s%{version} -p1
  cp ninfod/COPYING COPYING.ninfod
  
  %build
  CONFIGURE_OPTS=(
   -DUSE_CAP=true
   -DUSE_CRYPTO=none
   -DUSE_GETTEXT=false
   -DUSE_IDN=false
  
   -DBUILD_ARPING=true
   -DBUILD_PING=true
   -DBUILD_TRACEPATH=true
  
   -DBUILD_CLOCKDIFF=false
   -DBUILD_NINFOD=false
   -DBUILD_RARPD=false
   -DBUILD_RDISC=false
   -DBUILD_TFTPD=false
   -DBUILD_TRACEROUTE6=false
  
   -DBUILD_MANS=false
   -DBUILD_HTML_MANS=false
  )
  
  %cross_meson "${CONFIGURE_OPTS[@]}"
  %cross_meson_build
  
  %install
  %cross_meson_install
  
  %files
  %license LICENSE Documentation/LICENSE.GPL2 Documentation/LICENSE.BSD3 COPYING.ninfod
  %{_cross_attribution_file}
  %attr(0755,root,root) %caps(cap_net_raw=p) %{_cross_bindir}/arping
  %attr(0755,root,root) %caps(cap_net_raw=p cap_net_admin=p) %{_cross_bindir}/ping
  %{_cross_bindir}/tracepath
  
  %changelog
  