bing/bing.spec

122 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# 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
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: 134
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
%patch
%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
* Fri Nov 09 2007 mkudlvasr@suse.cz
- moved bing to /usr/sbin
- removed SUID bit
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jul 11 2005 postadal@suse.cz
- updated to version 1.0.5
- bziped
* Wed Jan 26 2005 meissner@suse.de
- added RPM_OPT_FLAGS. Fixed some bugs.
- Moved privilege drop up to earliest place.
* Thu Nov 11 2004 ro@suse.de
- permission handling fixes
* Mon Aug 23 2004 postadal@suse.cz
- added missing include arpa/inet.h [#43637]
* Wed Jun 23 2004 hmacht@suse.de
- building as non root user
- added patch to correct owner/group
* Tue Apr 06 2004 kukuk@suse.de
- Fix default permissions
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Wed Jan 24 2001 nadvornik@suse.de
- fixed usage of %%{_mandir}
* Wed Apr 26 2000 nadvornik@suse.cz
- added URL
- changed Group
* Fri Apr 07 2000 nadvornik@suse.cz
- added BuildRoot
* Wed Feb 02 2000 ro@suse.de
- applied another security fix
* Wed Jan 26 2000 ro@suse.de
- applied small security fix
* Mon Jan 17 2000 ro@suse.de
- man to usr/share/man
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Wed Jun 17 1998 ro@suse.de
- changed "ifdef linux" to "defined linux && !defined __NETINET_IP_ICMP_H"
to build with libc5 and glibc
* Thu Nov 27 1997 bs@suse.de
- compressed man page
* Fri Oct 31 1997 ro@suse.de
- first suse version 1.0.4