bing/bing.spec

67 lines
2.0 KiB
RPMSpec

#
# spec file for package bing
#
# Copyright (c) 2011 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/
#
Name: bing
License: BSD 3-clause (or similar)
Group: Productivity/Networking/Diagnostic
PreReq: permissions
Url: http://www.freenix.fr/freenix/logiciels/bing.html
Summary: A Point-to-Point Bandwidth Measurement Tool
Version: 1.0.5
Release: 136
Source: bing-%{version}.tar.bz2
Patch0: bing-%{version}.dif
Patch1: %{name}-%{version}-permissions.patch
Patch2: %{name}-%{version}-includes.diff
Patch3: %{name}-%{version}-moresecure.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Bing determines the real (raw, as opposed to available or average)
throughput of a link by measuring ICMP echo request round trip times
for different packet sizes for each end of the link.
%prep
%setup
%patch0
%patch1
%patch2
%patch3 -p1
%build
make CC="%__cc" CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{?_smp_mflags}
%install
mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man8,usr/sbin}
make install MANDIR=$RPM_BUILD_ROOT/%{_mandir} BINDIR=$RPM_BUILD_ROOT/usr/sbin
%post
%run_permissions
%verifyscript
%verify_permissions -e /usr/sbin/bing
%files
%defattr(-,root,root)
%verify(not mode) %attr(0755,root,trusted) /usr/sbin/bing
%doc %{_mandir}/man8/bing.*
%doc bing.ps
%doc ChangeLog README
%changelog