File wondershaper.spec of Package wondershaper

# spec file for package wondershaper
# Copyright (c) 2014 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

Name:           wondershaper
Version:        1.1a
Release:        0
Summary:        Wondershaper is a QOS (Quality of Service) script.
License:        GPL-2.0+
Group:          Productivity/Networking/System

Source0:        wondershaper-1.1a.tar.bz2
Source1:        sysconfig.wondershaper
Source2:        rcwondershaper
Patch0:         %{name}-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       iproute2
PreReq:         %fillup_prereq

Many cablemodem and ADSL users experience horrifying latency while
uploading or downloading. They also notice that uploading hampers
downloading greatly. The wondershaper neatly addresses these issues,
allowing users of a router with a wondershaper to continue using SSH
over a loaded link happily.

    Bert Hubert <>

cp %{S:1} %{S:2} .
%patch0 -p1


mv wshaper wshaper.cbq
install -m 755 -d $RPM_BUILD_ROOT/usr/sbin
install -m 755 -d $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 755 -d $RPM_BUILD_ROOT/etc/init.d
install -m 750 wshaper.* $RPM_BUILD_ROOT/usr/sbin/
install -m 644 sysconfig.wondershaper $RPM_BUILD_ROOT/var/adm/fillup-templates/
install -m 755 rcwondershaper $RPM_BUILD_ROOT/etc/init.d/wondershaper
ln -sf ../../etc/init.d/wondershaper $RPM_BUILD_ROOT/usr/sbin/rcwondershaper


%stop_on_removal wondershaper

%restart_on_update wondershaper

%defattr(-, root, root)
%config /etc/init.d/wondershaper