[packages/powertop] up to 2.16
atler
atler at pld-linux.org
Sun Aug 16 17:44:55 CEST 2026
commit 0be0775d63dfa3c3b7b63a397f037df5a90f5658
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Aug 16 17:43:42 2026 +0200
up to 2.16
switch to meson build system. while autoconf is still kept around, it's
no longer functional.
powertop.spec | 35 +++++++++++------------------------
1 file changed, 11 insertions(+), 24 deletions(-)
---
diff --git a/powertop.spec b/powertop.spec
index 6ce8d5c..7c48650 100644
--- a/powertop.spec
+++ b/powertop.spec
@@ -1,26 +1,25 @@
Summary: PowerTOP - tool that finds the software component(s) that make your laptop use more power
Summary(pl.UTF-8): PowerTOP - narzędzie wykrywające programy zwiększające pobór energii laptopa
Name: powertop
-Version: 2.15
+Version: 2.16
Release: 1
License: GPL v2
Group: Applications
Source0: https://github.com/fenrus75/powertop/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: a8008e2b16fb648c03faeec3c1047521
+# Source0-md5: e1f991666ed41de3595b627cb0d9f62d
URL: https://01.org/powertop/
-BuildRequires: autoconf >= 2.69
-BuildRequires: autoconf-archive
-BuildRequires: automake >= 1:1.12.2
BuildRequires: bash-completion >= 1:2.0
BuildRequires: gettext-tools >= 0.20.2
BuildRequires: libnl-devel
-BuildRequires: libstdc++-devel >= 6:4.7
-BuildRequires: libtool
+BuildRequires: libstdc++-devel >= 6:14
+BuildRequires: libtracefs-devel
+BuildRequires: meson >= 0.56.0
BuildRequires: ncurses-devel
+BuildRequires: ninja
BuildRequires: pciutils-devel
BuildRequires: pkgconfig
BuildRequires: rpm-build >= 4.6
-BuildRequires: rpmbuild(macros) >= 1.752
+BuildRequires: rpmbuild(macros) >= 2.042
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -67,25 +66,13 @@ Bashowe dopełnianie linii poleceń programu powertop.
%prep
%setup -q
-echo "v%{version}" > version-long
-echo '"v%{version}"' > version-short
-
%build
-%{__gettextize}
-%{__libtoolize}
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
- --disable-silent-rules
-%{__make}
+%meson
+%meson_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+%meson_install
install -d $RPM_BUILD_ROOT/var/cache/powertop
touch $RPM_BUILD_ROOT/var/cache/powertop/saved_parameters.powertop
@@ -106,7 +93,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc README.md TODO
-%attr(755,root,root) %{_sbindir}/powertop
+%attr(755,root,root) %{_bindir}/powertop
%{_mandir}/man8/powertop.8*
%dir /var/cache/powertop
%ghost /var/cache/powertop/saved_parameters.powertop
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/powertop.git/commitdiff/0be0775d63dfa3c3b7b63a397f037df5a90f5658
More information about the pld-cvs-commit
mailing list