forked from pool/iputils
53ec53a9da
checked in (request 47850) OBS-URL: https://build.opensuse.org/request/show/47850 OBS-URL: https://build.opensuse.org/package/show/network:utilities/iputils?expand=0&rev=14
107 lines
3.1 KiB
RPMSpec
107 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package iputils (Version s20100418)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: iputils
|
|
BuildRequires: docbook_3 iso_ent libopenssl-devel opensp perl-SGMLS sysfsutils
|
|
Summary: IPv4and IPv6 Networking Utilities
|
|
Version: s20100418
|
|
Release: 1
|
|
License: BSD3c ; GPLv2+
|
|
Group: Productivity/Networking/Other
|
|
Provides: nkitb
|
|
Obsoletes: nkitb
|
|
Url: http://www.skbuff.net/iputils
|
|
Source: iputils.tar.bz2
|
|
Source1: iputils-ifenslave.tar.bz2
|
|
Patch1: %name-pingnamelookuponce.diff
|
|
Patch2: %name-traceroute6-stdint.diff
|
|
Patch3: %name-ifenslave.diff
|
|
Patch4: %name-arping-set_device_broadcast.diff
|
|
Patch5: %name-ADDLIB.diff
|
|
Prefix: %_prefix
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains some small network tools for IPv4 and IPv6 like
|
|
rdisc, ping6, traceroute6, tracepath, and tracepath6.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
|
|
YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
|
|
|
|
%prep
|
|
%setup -q -n %name -b1
|
|
%patch1
|
|
%patch2
|
|
%patch3
|
|
%patch4
|
|
%patch5
|
|
mkdir linux
|
|
touch linux/autoconf.h
|
|
|
|
%build
|
|
make %{?_smp_mflags} KERNEL_INCLUDE=$PWD DEFINES='%optflags -fpie' ADDLIB='-pie'
|
|
gcc $RPM_OPT_FLAGS -o ifenslave ifenslave.c
|
|
|
|
make man
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT%_sbindir
|
|
mkdir -p $RPM_BUILD_ROOT/{bin,sbin}
|
|
install arping $RPM_BUILD_ROOT/sbin/
|
|
install ifenslave $RPM_BUILD_ROOT/sbin/
|
|
install clockdiff $RPM_BUILD_ROOT/sbin/
|
|
install rdisc $RPM_BUILD_ROOT/sbin/in.rdisc
|
|
install ping $RPM_BUILD_ROOT/bin
|
|
install ping6 $RPM_BUILD_ROOT/bin
|
|
install ipg $RPM_BUILD_ROOT/bin
|
|
install tracepath $RPM_BUILD_ROOT/sbin
|
|
install tracepath6 $RPM_BUILD_ROOT/sbin
|
|
mkdir -p $RPM_BUILD_ROOT%_mandir/man8
|
|
install -m 644 doc/arping.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
install -m 644 doc/clockdiff.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
install -m 644 doc/tracepath.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
install -m 644 doc/ping.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
install -m 644 doc/ping.8 $RPM_BUILD_ROOT%_mandir/man8/ping6.8
|
|
install -m 644 doc/pg3.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
install -m 644 doc/rdisc.8 $RPM_BUILD_ROOT%_mandir/man8/
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc RELNOTES
|
|
/sbin/arping
|
|
/sbin/ifenslave
|
|
/sbin/clockdiff
|
|
%attr(4755,root,root) /bin/ping
|
|
%attr(4755,root,root) /bin/ping6
|
|
/bin/ipg
|
|
/sbin/tracepath
|
|
/sbin/tracepath6
|
|
/sbin/in.rdisc
|
|
%attr(644,root,root) %_mandir/man8/*
|
|
|
|
%changelog
|