File powerstat.spec of Package powerstat

# spec file for package powerstat
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2017-2021, Martin Hauke <>
# 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:           powerstat
Version:        0.02.25
Release:        0
Summary:        Laptop power measuring tool
License:        GPL-2.0-only
Group:          System/Monitoring

Powerstat measures the power consumption of a mobile PC that has a battery
power source. The output is like vmstat but also shows power consumption
statistics. At the end of a run, powerstat will calculate the average,
standard deviation and min/max of the gathered data.

%package bash-completion
Summary:        Bash Completion for %{name}
Group:          System/Benchmark
Requires:       %{name} = %{version}
Requires:       bash-completion
Supplements:    (powerstat and bash-completion)
BuildArch:      noarch

%description bash-completion
Bash completion script for %{name}.

%setup -q

export CFLAGS="%{optflags}"


%license COPYING

%files bash-completion

openSUSE Build Service is sponsored by