From b2b1328b19224f5ab0897f5610d987f4e72c01d5b926c2911cfe932b067c3a97 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Fri, 25 May 2012 13:41:38 +0000 Subject: [PATCH] - run_permissions macro is obsolete: use set_permissions (bnc#764099) OBS-URL: https://build.opensuse.org/package/show/network:utilities/bing?expand=0&rev=11 --- bing.changes | 6 ++++++ bing.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/bing.changes b/bing.changes index 98d60ac..d5c99f7 100644 --- a/bing.changes +++ b/bing.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 25 13:40:45 UTC 2012 - puzel@suse.com + +- run_permissions macro is obsolete: use set_permissions + (bnc#764099) + ------------------------------------------------------------------- Wed Oct 5 15:02:56 UTC 2011 - uli@suse.com diff --git a/bing.spec b/bing.spec index 967821a..1211bc7 100644 --- a/bing.spec +++ b/bing.spec @@ -1,7 +1,7 @@ # # spec file for package bing # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 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 @@ -16,15 +16,14 @@ # - 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 +License: BSD-3-Clause +Group: Productivity/Networking/Diagnostic Version: 1.0.5 -Release: 136 +Release: 0 Source: bing-%{version}.tar.bz2 Patch0: bing-%{version}.dif Patch1: %{name}-%{version}-permissions.patch @@ -52,7 +51,11 @@ mkdir -p $RPM_BUILD_ROOT/{%{_mandir}/man8,usr/sbin} make install MANDIR=$RPM_BUILD_ROOT/%{_mandir} BINDIR=$RPM_BUILD_ROOT/usr/sbin %post +%if 0%{?suse_version} <= 1130 %run_permissions +%else +%set_permissions /usr/sbin/bing +%endif %verifyscript %verify_permissions -e /usr/sbin/bing