public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/powertop] rawhide: Switched to meson
Date: Tue, 18 Aug 2026 17:33:44 GMT	[thread overview]
Message-ID: <178707442403.1.2765191912852264632.rpms-powertop-75fa21047200@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/powertop
            Branch : rawhide
            Commit : 75fa21047200b7fa169722b6251683d42ec14f4b
            Author : Jaroslav Škarvada <jskarvad@redhat.com>
            Date   : 2026-08-18T19:33:20+02:00
            Stats  : +6/-16 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/powertop/c/75fa21047200b7fa169722b6251683d42ec14f4b?branch=rawhide

            Log:
            Switched to meson

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>

---
diff --git a/powertop.spec b/powertop.spec
index 7761647..7918675 100644
--- a/powertop.spec
+++ b/powertop.spec
@@ -8,16 +8,13 @@ URL:              http://01.org/powertop/
 Source0:          http://github.com/fenrus75/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
 Source1:          powertop.service
 
-BuildRequires:    make
+BuildRequires:    meson
 BuildRequires:    gettext-devel
 BuildRequires:    ncurses-devel
 BuildRequires:    pciutils-devel
 BuildRequires:    zlib-devel
 BuildRequires:    libnl3-devel
-BuildRequires:    automake
-BuildRequires:    libtool
 BuildRequires:    systemd
-BuildRequires:    autoconf-archive
 BuildRequires:    gcc
 BuildRequires:    gcc-c++
 BuildRequires:    libtracefs-devel
@@ -34,21 +31,13 @@ computer use more power than necessary while it is idle.
 
 %prep
 %autosetup -p1
-# https://www.gnu.org/software/gettext/manual/html_node/autopoint-Invocation.html
-sed -i -e 's|AM_GNU_GETTEXT_VERSION|AM_GNU_GETTEXT_REQUIRE_VERSION|' configure.ac
-
-echo "v%{version}" > version-long
-echo '"v%{version}"' > version-short
 
 %build
-# workaround for rhbz#1826935
-autoreconf -fi || autoreconf -fi
-%configure
-make %{?_smp_mflags} CFLAGS="%{optflags}" V=1
+%meson
+%meson_build
 
 %install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
+%meson_install
 install -Dd %{buildroot}%{_localstatedir}/cache/powertop
 touch %{buildroot}%{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.powertop}
 %find_lang %{name}
@@ -68,7 +57,7 @@ install -Dpm 644 %{SOURCE1} %{buildroot}%{_unitdir}/powertop.service
 touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.powertop} &> /dev/null || :
 
 %files -f %{name}.lang
-%doc COPYING README.md README.traceevent CONTRIBUTE.md TODO
+%doc COPYING README.md CONTRIBUTE.md TODO
 %dir %{_localstatedir}/cache/powertop
 %ghost %{_localstatedir}/cache/powertop/saved_parameters.powertop
 %ghost %{_localstatedir}/cache/powertop/saved_results.powertop
@@ -81,6 +70,7 @@ touch %{_localstatedir}/cache/powertop/{saved_parameters.powertop,saved_results.
 * Tue Aug 18 2026 Jaroslav Škarvada <jskarvad@redhat.com> - 2.16-1
 - New version
   Resolves: rhbz#2513571
+- Switched to meson
 
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.15-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild

                 reply	other threads:[~2026-08-18 17:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178707442403.1.2765191912852264632.rpms-powertop-75fa21047200@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox