New version

Resolves: rhbz#1756322
Changed source URL to github, which seems to be the most quickly updated source
Used automake
Dropped fix-vert-scrolling patch (upstreamed)
This commit is contained in:
Jaroslav Škarvada 2019-09-30 13:02:29 +02:00
parent 15600071f6
commit 3f60d58695
3 changed files with 15 additions and 22 deletions

View File

@ -1,13 +0,0 @@
diff --git a/src/display.cpp b/src/display.cpp
index 07227c5..7b3a7a2 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -244,7 +244,7 @@ void cursor_down(void)
w = tab_windows[tab_names[current_tab]];
if (w) {
if (w->ypad_pos < 1000) {
- if (tab_names[current_tab] == "Tunables" || "WakeUp") {
+ if (tab_names[current_tab] == "Tunables" || tab_names[current_tab] == "WakeUp") {
if ((w->cursor_pos + 7) >= LINES) {
prefresh(w->win, ++w->ypad_pos, w->xpad_pos,
1, 0, LINES - 3, COLS - 1);

View File

@ -1,18 +1,17 @@
Name: powertop
Version: 2.10
Release: 3%{?dist}
Version: 2.11
Release: 1%{?dist}
Summary: Power consumption monitor
License: GPLv2
URL: http://01.org/powertop/
Source0: http://01.org/sites/default/files/downloads/%{name}-v%{version}.tar.gz
Source0: http://github.com/fenrus75/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: powertop.service
# Sent upstream
Patch0: powertop-2.7-always-create-params.patch
Patch1: powertop-2.10-fix-vert-scrolling.patch
BuildRequires: gettext-devel, ncurses-devel, pciutils-devel, zlib-devel, libnl3-devel
BuildRequires: systemd
BuildRequires: automake, libtool, systemd
BuildRequires: gcc, gcc-c++
Requires(post): systemd, coreutils
Requires(preun): systemd
@ -24,12 +23,11 @@ PowerTOP is a tool that finds the software component(s) that make your
computer use more power than necessary while it is idle.
%prep
%setup -q -n %{name}-v%{version}
%setup -q
%patch0 -p1 -b .always-create-params
# Sent upstream
%patch1 -p1 -b .fix-vert-scrolling
%build
./autogen.sh
%configure
make %{?_smp_mflags} CFLAGS="%{optflags}"
@ -62,8 +60,16 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
%{_sbindir}/powertop
%{_mandir}/man8/powertop.8*
%{_unitdir}/powertop.service
%{_datadir}/bash-completion/completions/powertop
%changelog
* Mon Sep 30 2019 Jaroslav Škarvada <jskarvad@redhat.com> - 2.11-1
- New version
Resolves: rhbz#1756322
- Changed source URL to github, which seems to be the most quickly updated source
- Used automake
- Dropped fix-vert-scrolling patch (upstreamed)
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.10-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (powertop-v2.10.tar.gz) = 4219e7aadbeebdf6932c04f784434e4dd0f540bf4941d43c1830b1b5cad1f3928769b13897e24dd956b6bdee65fb1fbe902ee30685bca229b71e140d65367837
SHA512 (powertop-2.11.tar.gz) = bbe2882196f1b3ae39885d38dd86018576bfac5b5e8f16ea10c7dfd197197d0493ae4ce83c969417a4c4239c41dbcfada989063f14e2943c088a7489e43953b7