2007-01-15 23:17:50 +00:00
|
|
|
#
|
2012-02-18 01:51:40 +00:00
|
|
|
# spec file for package iputils
|
2007-01-15 23:17:50 +00:00
|
|
|
#
|
2022-01-25 14:58:26 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2007-01-15 23:17:50 +00:00
|
|
|
#
|
2008-09-05 00:54:56 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-05-24 17:12:38 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:17:50 +00:00
|
|
|
#
|
|
|
|
|
2008-09-05 00:54:56 +00:00
|
|
|
|
2007-01-15 23:17:50 +00:00
|
|
|
Name: iputils
|
2022-11-26 00:36:03 +00:00
|
|
|
Version: 20221126
|
2012-02-18 01:51:40 +00:00
|
|
|
Release: 0
|
2017-11-13 18:09:26 +00:00
|
|
|
Summary: IPv4 and IPv6 Networking Utilities
|
2018-04-18 01:10:52 +00:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later
|
2017-11-13 18:09:26 +00:00
|
|
|
Group: Productivity/Networking/Other
|
2020-07-12 21:10:09 +00:00
|
|
|
URL: https://github.com/iputils/iputils
|
2017-12-11 00:05:41 +00:00
|
|
|
Source0: https://github.com/iputils/iputils/archive/%{version}.tar.gz
|
2019-05-24 17:12:38 +00:00
|
|
|
BuildRequires: docbook5-xsl-stylesheets
|
|
|
|
BuildRequires: docbook_5
|
2021-07-22 16:55:39 +00:00
|
|
|
BuildRequires: iproute2
|
2017-11-13 18:09:26 +00:00
|
|
|
BuildRequires: iso_ent
|
|
|
|
BuildRequires: libcap-devel
|
2019-07-10 10:32:03 +00:00
|
|
|
BuildRequires: libcap-progs
|
2019-05-24 17:12:38 +00:00
|
|
|
BuildRequires: meson
|
2017-11-13 18:09:26 +00:00
|
|
|
BuildRequires: opensp
|
|
|
|
BuildRequires: perl-SGMLS
|
|
|
|
BuildRequires: pkgconfig
|
2017-12-11 00:05:41 +00:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2020-07-12 21:10:09 +00:00
|
|
|
BuildRequires: pkgconfig(libidn2)
|
2019-05-24 17:12:38 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2017-11-13 18:09:26 +00:00
|
|
|
Requires(pre): permissions
|
2016-05-23 15:21:37 +00:00
|
|
|
# I have spotted at least two packages (yast-printer and dhcp-client) that need
|
|
|
|
# /bin/ping and /sbin/arping but they do not seem to use them with absolute
|
2019-05-24 17:12:38 +00:00
|
|
|
# paths so we may be lucky and no further changes are necessary.
|
2016-05-23 15:21:37 +00:00
|
|
|
Provides: /bin/ping
|
|
|
|
Provides: /sbin/arping
|
2007-01-15 23:17:50 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains some small network tools for IPv4 and IPv6 like
|
2022-02-14 21:32:16 +00:00
|
|
|
ping, arping and tracepath.
|
2017-11-28 22:18:35 +00:00
|
|
|
|
2007-01-15 23:17:50 +00:00
|
|
|
%prep
|
2020-08-14 14:47:40 +00:00
|
|
|
%autosetup -p1
|
2007-01-15 23:17:50 +00:00
|
|
|
|
|
|
|
%build
|
2016-05-23 15:21:37 +00:00
|
|
|
# Pulled-in by the LINK.o variable.
|
2021-03-17 21:17:19 +00:00
|
|
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
2016-05-23 15:21:37 +00:00
|
|
|
|
2022-11-26 00:36:03 +00:00
|
|
|
%meson -DNO_SETCAP_OR_SUID=true -Db_pie=true -Dc_std=none
|
2019-05-24 17:12:38 +00:00
|
|
|
%meson_build
|
2010-07-14 12:07:32 +00:00
|
|
|
|
2007-01-15 23:17:50 +00:00
|
|
|
%install
|
2019-05-24 17:12:38 +00:00
|
|
|
%meson_install
|
|
|
|
|
2017-01-04 21:38:41 +00:00
|
|
|
# boo#1017616
|
2017-11-13 18:09:26 +00:00
|
|
|
ln -sf %{_bindir}/ping %{buildroot}/%{_bindir}/ping6
|
|
|
|
ln -sf %{_bindir}/tracepath %{buildroot}/%{_bindir}/tracepath6
|
2017-01-04 21:38:41 +00:00
|
|
|
|
2019-05-24 17:12:38 +00:00
|
|
|
# symlink to man tracepath6(8)
|
|
|
|
ln -sf %{_mandir}/man8/tracepath.8%{ext_man} %{buildroot}%{_mandir}/man8/tracepath6.8%{ext_man}
|
|
|
|
|
2020-11-20 10:37:09 +00:00
|
|
|
%if !0%{?usrmerged}
|
2016-05-23 15:21:37 +00:00
|
|
|
# We still have reverse dependencies using /sbin/* or /bin/*
|
|
|
|
# so keep these symlinks for now. They are slowly being fixed
|
|
|
|
# but lets not just break them yet.
|
2017-11-13 18:09:26 +00:00
|
|
|
mkdir -p %{buildroot}/{bin,sbin}
|
2019-05-24 17:12:38 +00:00
|
|
|
ln -sf %{_bindir}/arping %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/clockdiff %{buildroot}/bin
|
2017-11-13 18:09:26 +00:00
|
|
|
ln -sf %{_bindir}/ping %{buildroot}/bin
|
|
|
|
ln -sf %{_bindir}/ping6 %{buildroot}/bin
|
2019-05-24 17:12:38 +00:00
|
|
|
ln -sf %{_bindir}/tracepath %{buildroot}/bin
|
2017-11-13 18:09:26 +00:00
|
|
|
ln -sf %{_bindir}/tracepath6 %{buildroot}/bin
|
2020-11-20 10:37:09 +00:00
|
|
|
%endif
|
2016-05-23 15:21:37 +00:00
|
|
|
|
2019-05-24 17:12:38 +00:00
|
|
|
%find_lang %{name}
|
2007-01-15 23:17:50 +00:00
|
|
|
|
2010-11-04 15:51:08 +00:00
|
|
|
%post
|
2019-07-26 07:18:34 +00:00
|
|
|
%set_permissions %{_bindir}/clockdiff
|
2010-11-04 15:51:08 +00:00
|
|
|
|
|
|
|
%verifyscript
|
2019-07-26 07:18:34 +00:00
|
|
|
%verify_permissions -e %{_bindir}/clockdiff
|
2019-05-24 17:12:38 +00:00
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%license LICENSE
|
|
|
|
%{_bindir}/arping
|
2019-07-26 07:18:34 +00:00
|
|
|
%verify(not mode caps) %attr(0755,root,root) %{_bindir}/clockdiff
|
|
|
|
%verify(not mode caps) %attr(0755,root,root) %{_bindir}/ping
|
2017-01-04 21:38:41 +00:00
|
|
|
%{_bindir}/ping6
|
2016-05-23 15:21:37 +00:00
|
|
|
%{_bindir}/tracepath
|
|
|
|
%{_bindir}/tracepath6
|
2019-05-24 17:12:38 +00:00
|
|
|
|
2020-11-20 10:37:09 +00:00
|
|
|
%if !0%{?usrmerged}
|
2019-05-24 17:12:38 +00:00
|
|
|
/bin/arping
|
|
|
|
/bin/clockdiff
|
2017-11-28 22:18:35 +00:00
|
|
|
/bin/ping
|
|
|
|
/bin/ping6
|
|
|
|
/bin/tracepath
|
|
|
|
/bin/tracepath6
|
2020-11-20 10:37:09 +00:00
|
|
|
%endif
|
2020-07-12 21:10:09 +00:00
|
|
|
%{_mandir}/man8/arping.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/clockdiff.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ping.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/tracepath.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/tracepath6.8%{?ext_man}
|
2017-11-28 22:18:35 +00:00
|
|
|
|
2007-03-06 18:08:15 +00:00
|
|
|
%changelog
|