# # spec file for package iputils # # Copyright (c) 2015 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: iputils BuildRequires: docbook_3 BuildRequires: iso_ent BuildRequires: libcap-devel BuildRequires: libopenssl-devel BuildRequires: pkgconfig(libidn) BuildRequires: opensp BuildRequires: perl-SGMLS Summary: IPv4 and IPv6 Networking Utilities License: BSD-3-Clause and GPL-2.0+ Group: Productivity/Networking/Other Version: s20150815 Release: 0 Url: https://github.com/iputils/iputils Source: https://github.com/iputils/iputils/archive/%{version}.tar.gz # XXX: from linux/Documentation/networking/ifenslave.c Source1: ifenslave.c Patch2: iputils-traceroute6-stdint.diff Patch3: iputils-ifenslave.diff Patch8: iputils-sec-ping-unblock.diff Patch9: iputils-ping-interrupt.diff # PATCH-FIX-UPSTREAM iputils-remove-bogus-check-required-for-2.4.9-kernels.patch tiwai@suse.de - boo#927831 Patch10: iputils-remove-bogus-check-required-for-2.4.9-kernels.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: permissions %description This package contains some small network tools for IPv4 and IPv6 like rdisc, ping6, traceroute6, tracepath, and tracepath6. %prep %setup -q cp -a %SOURCE1 . %patch2 -p1 %patch3 %patch8 -p1 %patch9 -p1 %patch10 -p1 %build make %{?_smp_mflags} CFLAGS='%{optflags} -fPIC' KERNEL_INCLUDE=$PWD \ CCOPT='%optflags -fno-strict-aliasing -fpie -D_GNU_SOURCE' \ LDLIBS='-Wl,-z,relro,-z,now -pie -lcap -lresolv' \ CAPABILITIES=1 LDFLAG_GNUTLS='-lcrypto -lssl' gcc $RPM_OPT_FLAGS -o ifenslave ifenslave.c make man %install mkdir -p $RPM_BUILD_ROOT/%_sbindir mkdir -p $RPM_BUILD_ROOT/%_bindir install arping $RPM_BUILD_ROOT/%{_sbindir} install ifenslave $RPM_BUILD_ROOT/%{_sbindir} install clockdiff $RPM_BUILD_ROOT/%{_sbindir} install rdisc $RPM_BUILD_ROOT/%{_sbindir}/in.rdisc install tracepath $RPM_BUILD_ROOT/%{_sbindir} install tracepath6 $RPM_BUILD_ROOT/%{_sbindir} install traceroute6 $RPM_BUILD_ROOT/%{_sbindir} install ping $RPM_BUILD_ROOT/%{_bindir} install ipg $RPM_BUILD_ROOT/%{_bindir} install tftpd $RPM_BUILD_ROOT/%{_bindir} install rarpd $RPM_BUILD_ROOT/%{_bindir} mkdir -p $RPM_BUILD_ROOT%_mandir/man8 install -m 644 doc/*.8 $RPM_BUILD_ROOT%_mandir/man8/ install -m 644 doc/ping.8 $RPM_BUILD_ROOT%_mandir/man8/ping6.8 %post %set_permissions %{_bindir}/ping %{_bindir}/ping6 %verifyscript %verify_permissions %{_bindir}/ping %{_bindir}/ping6 %files %defattr(-,root,root) %doc RELNOTES %verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping %{_bindir}/ipg %{_bindir}/rarpd %{_bindir}/tftpd %{_sbindir}/arping %{_sbindir}/ifenslave %{_sbindir}/clockdiff %{_sbindir}/tracepath %{_sbindir}/tracepath6 %{_sbindir}/traceroute6 %{_sbindir}/in.rdisc %attr(644,root,root) %_mandir/man8/* %changelog