|
|
@ -1,21 +1,13 @@
|
|
|
|
%global _hardened_build 1
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} > 14
|
|
|
|
|
|
|
|
%global use_capnetraw 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?rhel} > 5
|
|
|
|
|
|
|
|
%global use_capnetraw 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: fping
|
|
|
|
Name: fping
|
|
|
|
Version: 3.16
|
|
|
|
Version: 4.0
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Summary: Scriptable, parallelized ping-like utility
|
|
|
|
Summary: Scriptable, parallelized ping-like utility
|
|
|
|
Group: Applications/Internet
|
|
|
|
Group: Applications/Internet
|
|
|
|
License: BSD with advertising
|
|
|
|
License: BSD with advertising
|
|
|
|
URL: http://www.fping.org/
|
|
|
|
URL: http://www.fping.org/
|
|
|
|
Source0: http://fping.org/dist/%{name}-%{version}.tar.gz
|
|
|
|
Source0: http://fping.org/dist/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
fping is a ping-like program which can determine the accessibility of
|
|
|
|
fping is a ping-like program which can determine the accessibility of
|
|
|
@ -27,7 +19,7 @@ use in scripting in mind.
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
CFLAGS="%{?use_capnetraw:-DENABLE_F_OPTION} $RPM_OPT_FLAGS" %configure --enable-ipv4 --enable-ipv6
|
|
|
|
%configure
|
|
|
|
make
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
@ -38,18 +30,18 @@ make DESTDIR="$RPM_BUILD_ROOT" install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGELOG.md COPYING
|
|
|
|
%doc ChangeLog COPYING README
|
|
|
|
|
|
|
|
%if 0%{?use_capnetraw}
|
|
|
|
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/fping
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/fping
|
|
|
|
%attr(0755,root,root) %caps(cap_net_raw=ep) %{_sbindir}/fping6
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%attr(4711,root,root) %{_sbindir}/fping
|
|
|
|
|
|
|
|
%attr(4711,root,root) %{_sbindir}/fping6
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu May 04 2017 Charles R. Anderson <cra@wpi.edu> - 4.0-2
|
|
|
|
|
|
|
|
- remove obsolete CFLAGS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed May 03 2017 Charles R. Anderson <cra@wpi.edu> - 4.0-1
|
|
|
|
|
|
|
|
- update to 4.0
|
|
|
|
|
|
|
|
- remove EL5 and old Fedora compatibility
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 20 2017 Charles R. Anderson <cra@wpi.edu> - 3.16-1
|
|
|
|
* Mon Feb 20 2017 Charles R. Anderson <cra@wpi.edu> - 3.16-1
|
|
|
|
- update to 3.16 (rhbz#1420733)
|
|
|
|
- update to 3.16 (rhbz#1420733)
|
|
|
|
|
|
|
|
|
|
|
|