Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package powertop for openSUSE:Factory 
checked in at 2026-08-14 22:06:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/powertop (Old)
 and      /work/SRC/openSUSE:Factory/.powertop.new.1258 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "powertop"

Fri Aug 14 22:06:50 2026 rev:61 rq:1371008 version:2.16

Changes:
--------
--- /work/SRC/openSUSE:Factory/powertop/powertop.changes        2026-08-11 
17:16:23.052135274 +0200
+++ /work/SRC/openSUSE:Factory/.powertop.new.1258/powertop.changes      
2026-08-14 22:07:09.639397293 +0200
@@ -1,0 +2,12 @@
+Thu Aug 13 09:30:44 UTC 2026 - Michael Vetter <[email protected]>
+
+- Migrate from automake to meson
+- Move binary manually to sbin to keep it like we have it since a long time
+- Add BuildRequires: pkgconfig(bash-completion) to resolve proper completion
+  directory paths
+- Remove shebang from bash-completion script
+- Declare /var/cache/powertop and files as %ghost
+- Enable unit tests
+- Drop powertop-2.16-fix-missing-sources.patch: sources in meson are complete
+
+-------------------------------------------------------------------

Old:
----
  powertop-2.16-fix-missing-sources.patch

----------(Old B)----------
  Old:- Enable unit tests
- Drop powertop-2.16-fix-missing-sources.patch: sources in meson are complete
----------(Old E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ powertop.spec ++++++
--- /var/tmp/diff_new_pack.Pgvu3w/_old  2026-08-14 22:07:10.344422962 +0200
+++ /var/tmp/diff_new_pack.Pgvu3w/_new  2026-08-14 22:07:10.346423035 +0200
@@ -26,21 +26,14 @@
 Source0:        https://github.com/fenrus75/powertop/archive/v%{version}.tar.gz
 Source1:        powertop.service
 Source2:        powertop.conf
-# PATCH-FIX-UPSTREAM https://github.com/fenrus75/powertop/pull/212
-Patch0:         powertop-2.16-fix-missing-sources.patch
-# they repeatedly forget to upload a release tarball and only have the one from
-# GitHub which doesnt contain configure thus adding:
-# autoconf, autoconf-archive, automake, libtool
-BuildRequires:  autoconf
-BuildRequires:  autoconf-archive
-BuildRequires:  automake
 BuildRequires:  gcc-c++
 BuildRequires:  gettext
-BuildRequires:  libtool
 BuildRequires:  libtracefs-devel
+BuildRequires:  meson
 BuildRequires:  ncurses-devel
 BuildRequires:  pkgconfig
 BuildRequires:  systemd-rpm-macros
+BuildRequires:  pkgconfig(bash-completion)
 BuildRequires:  pkgconfig(libnl-3.0)
 BuildRequires:  pkgconfig(libnl-genl-3.0)
 BuildRequires:  pkgconfig(libpci)
@@ -56,26 +49,27 @@
 
 %prep
 %setup -q -n powertop-%{version}
-%patch -P 0 -p1
 
 # Delete objects files left in tarball
 find . -name '*.o' -delete
 
 %build
-# workaround for 'error: too many loops' in sle15sp3
-# also see rhbz#1826935
-autoreconf -fi || autoreconf -fi
-export CFLAGS="%{optflags} -D_GNU_SOURCE -pthread"
-export CXXFLAGS="%{optflags} -std=c++20"
-%configure --disable-static
-%make_build
+%meson -Denable-tests=true
+%meson_build
 
 %install
-%make_install
+%meson_install
+mkdir -p %{buildroot}%{_sbindir}
+mv %{buildroot}%{_bindir}/powertop %{buildroot}%{_sbindir}/powertop
 install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/powertop.service
 ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
 install -D -m 0644 %{SOURCE2} 
%{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
 %find_lang %{name}
+# remove shebang from bash completion file
+sed -i '1s/^#!.*//' 
%{buildroot}%{_datadir}/bash-completion/completions/powertop
+
+%check
+%meson_test
 
 %pre
 %service_add_pre %{name}.service
@@ -99,6 +93,9 @@
 %{_unitdir}/%{name}.service
 %{_sbindir}/rc%{name}
 %{_datadir}/bash-completion/completions/powertop
+%ghost %attr(0755,-,-) %dir %{_localstatedir}/cache/%{name}
+%ghost %attr(0644,-,-) 
%{_localstatedir}/cache/%{name}/saved_parameters.powertop
+%ghost %attr(0644,-,-) %{_localstatedir}/cache/%{name}/saved_results.powertop
 
 %files lang -f %{name}.lang
 

Reply via email to