diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-12-05 02:05:23 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-12-05 02:05:23 -0800 |
commit | 2c89990184d2b6aebd973ea52e3b6e8a3f8b8af0 (patch) | |
tree | d64a1e4c29022d0f2c942aa01b2be5d04f5ceafa | |
parent | c098f623bf888728e262e7813ffcdfe02df74937 (diff) | |
download | iputils-2c89990184d2b6aebd973ea52e3b6e8a3f8b8af0.tar.gz iputils-2c89990184d2b6aebd973ea52e3b6e8a3f8b8af0.tar.bz2 iputils-2c89990184d2b6aebd973ea52e3b6e8a3f8b8af0.zip |
fixed spec
-rw-r--r-- | packaging/iputils.spec | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/packaging/iputils.spec b/packaging/iputils.spec new file mode 100644 index 0000000..82bd9b7 --- /dev/null +++ b/packaging/iputils.spec @@ -0,0 +1,57 @@ +Name: iputils +#BuildRequires: docbook_3 +#BuildRequires: iso_ent +BuildRequires: libopenssl-devel +#BuildRequires: opensp +#BuildRequires: perl-SGMLS +BuildRequires: sysfsutils-devel +BuildRequires: libcap-devel +Summary: IPv4 and IPv6 Networking Utilities +License: BSD-3-Clause ; GPL-2.0+ +Group: Productivity/Networking/Other +Version: s20101006 +Release: 0 +Url: http://www.skbuff.net/iputils +Source: http://www.skbuff.net/iputils/iputils-%{version}.tar.bz2 + +%description +This package contains some small network tools for IPv4 and IPv6 like +rdisc, ping6, traceroute6, tracepath, and tracepath6. + +%prep +%setup -q +mkdir linux +touch linux/autoconf.h + +%build +make %{?_smp_mflags} KERNEL_INCLUDE=$PWD \ + CCOPT='%optflags -fno-strict-aliasing -fpie -D_GNU_SOURCE' \ + LDLIBS='-pie -lcap -lresolv' \ + CAPABILITIES=1 + +%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 ping $RPM_BUILD_ROOT/%{_bindir} +install ping6 $RPM_BUILD_ROOT/%{_bindir} +install ipg $RPM_BUILD_ROOT/%{_bindir} + +%files +%defattr(-,root,root) +%{_sbindir}/arping +%{_sbindir}/ifenslave +%{_sbindir}/clockdiff +%verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping +%verify(not mode caps) %attr(4755,root,root) %{_bindir}/ping6 +%{_bindir}/ipg +%{_sbindir}/tracepath +%{_sbindir}/tracepath6 +%{_sbindir}/in.rdisc + +%changelog |