From ccf13191c9391075755b1856fc2905edb973db07 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 11 Aug 2023 11:54:54 -0400 Subject: [PATCH] Disable libunwind in RHEL builds libunwind, which is optional here, is unwanted in RHEL. --- sysprof.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sysprof.spec b/sysprof.spec index acd8c36..d0d0908 100644 --- a/sysprof.spec +++ b/sysprof.spec @@ -21,9 +21,10 @@ BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libadwaita-1) -BuildRequires: pkgconfig(libdazzle-1.0) BuildRequires: pkgconfig(libsystemd) +%if %{undefined rhel} BuildRequires: pkgconfig(libunwind-generic) +%endif BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(systemd) BuildRequires: /usr/bin/appstream-util @@ -98,7 +99,7 @@ developing applications that use %{name}. %build -%meson +%meson %{?rhel:-Dlibunwind=false} %meson_build