update to 2.14

This commit is contained in:
panxiaohe 2022-02-21 17:08:43 +08:00
parent 4259e1f08e
commit 40cc513c2c
4 changed files with 30 additions and 3 deletions

View File

@ -0,0 +1,20 @@
diff --git a/configure.ac b/configure.ac
index 2571c5d..c913368 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,7 @@
AC_PREREQ([2.69])
AC_INIT([powertop], [2.14], [powertop@lists.01.org], [], [https://01.org/powertop])
+AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([
-Wall
1.12.2
@@ -37,6 +38,7 @@ AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_CC_C_O
PKG_PROG_PKG_CONFIG
+AX_PTHREAD
# Checks for libraries.

Binary file not shown.

BIN
powertop-2.14.tar.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
Name: powertop Name: powertop
Version: 2.13 Version: 2.14
Release: 2 Release: 1
Summary: Power consumption tool for Linux Summary: Power consumption tool for Linux
License: GPLv2 License: GPLv2
URL: http://01.org/powertop/ URL: http://01.org/powertop/
@ -8,7 +8,9 @@ Source0: https://01.org/sites/default/files/downloads//%{name}-%{ve
Source1: powertop.service Source1: powertop.service
Patch1: backport-powertop-2.7-always-create-params.patch Patch1: backport-powertop-2.7-always-create-params.patch
Patch2: backport-powertop-2.14-pthread.patch
BuildRequires: autoconf automake libtool
BuildRequires: gcc gcc-c++ systemd BuildRequires: gcc gcc-c++ systemd
BuildRequires: gettext-devel ncurses-devel pciutils-devel zlib-devel libnl3-devel BuildRequires: gettext-devel ncurses-devel pciutils-devel zlib-devel libnl3-devel
Requires(post): coreutils Requires(post): coreutils
@ -27,6 +29,8 @@ management settings for cases where the Linux distribution has not enabled these
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
# workaroud for 'error: too many loops'
autoreconf -fi || autoreconf -fi
%configure %configure
%make_build %make_build
@ -54,7 +58,7 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING README TODO %doc COPYING README.md README.traceevent CONTRIBUTE.md TODO
%{_sbindir}/powertop %{_sbindir}/powertop
%{_unitdir}/powertop.service %{_unitdir}/powertop.service
%dir %{_localstatedir}/cache/powertop %dir %{_localstatedir}/cache/powertop
@ -67,6 +71,9 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
%changelog %changelog
* Mon Feb 21 2022 panxiaohe <panxh.life@foxmail.com> - 2.14-1
- update to 2.14
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.13-2 * Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 2.13-2
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git - DESC: delete -Sgit from %autosetup, and delete BuildRequires git