bing/bing.spec
OBS User autobuild 233ecdc189 Accepting request 24483 from network:utilities
Copy from network:utilities/bing based on submit request 24483 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/24483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bing?expand=0&rev=7
2009-11-16 16:53:57 +00:00

78 lines
2.1 KiB
RPMSpec

#
# spec file for package bing (Version 1.0.5)
#
# Copyright (c) 2009 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: bing
License: BSD 3-clause (or similar)
Group: Productivity/Networking/Diagnostic
PreReq: permissions
AutoReqProv: on
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.
Authors:
--------
Pierre Beyssac <pb@fasterix.freenix.fr>
%prep
%setup
%patch0
%patch1
%patch2
%patch3 -p1
%build
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install
mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man8,usr/sbin}
make install MANDIR=$RPM_BUILD_ROOT/%{_mandir} BINDIR=$RPM_BUILD_ROOT/usr/sbin
%clean
rm -rf $RPM_BUILD_ROOT
%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