public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/latencytop] rawhide: modernize spec file
@ 2026-07-31  0:07 Michal Schmidt
  0 siblings, 0 replies; only message in thread
From: Michal Schmidt @ 2026-07-31  0:07 UTC (permalink / raw)
  To: git-commits

            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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-31  0:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-31  0:07 [rpms/latencytop] rawhide: modernize spec file Michal Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox