- Update to version 0.04.03: * Re-use last ujoules setting if current value is invalid * Ignore power readings that are zero * Minor copyright updates and optimization flag setting changes OBS-URL: https://build.opensuse.org/request/show/1156877 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/powerstat?expand=0&rev=36
65 lines
1.9 KiB
RPMSpec
65 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package powerstat
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2017-2021, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: powerstat
|
|
Version: 0.04.03
|
|
Release: 0
|
|
Summary: Laptop power measuring tool
|
|
License: GPL-2.0-only
|
|
URL: https://github.com/ColinIanKing/powerstat
|
|
Source: https://github.com/ColinIanKing/powerstat/archive/refs/tags/V%{version}.tar.gz
|
|
|
|
%description
|
|
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}
|
|
BuildRequires: bash-completion
|
|
Requires: %{name} = %{version}
|
|
Requires: bash-completion
|
|
Supplements: (powerstat and bash-completion)
|
|
BuildArch: noarch
|
|
|
|
%description bash-completion
|
|
Bash completion script for %{name}.
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_bindir}/powerstat
|
|
%{_mandir}/man8/powerstat.8%{?ext_man}
|
|
|
|
%files bash-completion
|
|
%{_datadir}/bash-completion/completions/%{name}
|
|
|
|
%changelog
|