public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/latencytop] rawhide: modernize spec file
Date: Fri, 31 Jul 2026 00:07:37 GMT	[thread overview]
Message-ID: <178545645776.1.1498897190786126513.rpms-latencytop-38fe6e5b68c5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/latencytop
            Branch : rawhide
            Commit : 38fe6e5b68c5174bee6b44b72059324337ad1268
            Author : Michal Schmidt <mschmidt@redhat.com>
            Date   : 2026-07-30T18:47:27+02:00
            Stats  : +10/-9 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/latencytop/c/38fe6e5b68c5174bee6b44b72059324337ad1268?branch=rawhide

            Log:
            modernize spec file

Use modern RPM features and macros.
Rely on build flags being exported to the environment by redhat-rpm-config.

[skip changelog]

---
diff --git a/latencytop.spec b/latencytop.spec
index 41bff7e..931526f 100644
--- a/latencytop.spec
+++ b/latencytop.spec
@@ -6,16 +6,18 @@ Summary:        System latency monitor (with GUI)
 License:        GPL-2.0-only
 URL:            http://www.latencytop.org/
 Source0:        http://www.latencytop.org/download/%{name}-%{version}.tar.gz
-Patch0:         latencytop-Makefile-fixes.patch
-Patch1:         latencytop-Makefile-default-to-no-gtk.patch
-Patch2:         latencytop-remove-the-fsync-view.patch
-Patch3:         latencytop-better-error-message.patch
-Patch4:         latencytop-add-return-type-c99.patch
 
 BuildRequires:  gcc make
 BuildRequires:  ncurses-devel glib2-devel gtk2-devel pkgconfig
 Requires:       %{name}-common = %{version}-%{release}
 
+%patchlist
+latencytop-Makefile-fixes.patch
+latencytop-Makefile-default-to-no-gtk.patch
+latencytop-remove-the-fsync-view.patch
+latencytop-better-error-message.patch
+latencytop-add-return-type-c99.patch
+
 %description
 LatencyTOP is a tool for software developers (both kernel and userspace), aimed
 at identifying where in the system latency is happening, and what kind of
@@ -50,15 +52,14 @@ This package contains files needed by both the GUI and TUI builds of LatencyTOP.
 %autosetup -p1
 
 %build
-export CFLAGS="${CFLAGS:-%{optflags}}"
 # make two builds, first without GUI, then with
-make %{?_smp_mflags}
+%make_build
 mv latencytop latencytop-tui
 make clean
-make %{?_smp_mflags} HAS_GTK_GUI=1
+%make_build HAS_GTK_GUI=1
 
 %install
-make install DESTDIR=%{buildroot} SBINDIR=%{_sbindir}
+%make_install SBINDIR=%{_sbindir}
 install -m 0755 latencytop-tui %{buildroot}%{_sbindir}/
 ln -s latencytop.8 %{buildroot}%{_mandir}/man8/latencytop-tui.8
 

                 reply	other threads:[~2026-07-31  0:07 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=178545645776.1.1498897190786126513.rpms-latencytop-38fe6e5b68c5@fedoraproject.org \
    --to=mschmidt@redhat.com \
    --cc=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