From 740450aa394ea2dc4f2944cf5fdbb97d82018b6e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 13 Aug 2023 23:25:12 -0400 Subject: [PATCH] Use fmt in header-only mode in RHEL builds This allows fmt to be buildroot-only and avoids the need to support the fmt runtime library, which frequently breaks ABI and is therefore unwanted, in RHEL. --- paps.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/paps.spec b/paps.spec index e7e75ff..db80552 100644 --- a/paps.spec +++ b/paps.spec @@ -1,6 +1,6 @@ Name: paps Version: 0.8.0 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPL-2.0-or-later URL: https://github.com/dov/paps @@ -95,6 +95,10 @@ popd %build ./autogen.sh +%set_build_flags +%if 0%{?rhel} +CXXFLAGS="$CXXFLAGS -DFMT_HEADER_ONLY" +%endif %configure --disable-static make %{?_smp_mflags} @@ -146,6 +150,9 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p" %changelog +* Mon Aug 14 2023 Yaakov Selkowitz - 0.8.0-5 +- Use fmt in header-only mode in RHEL builds + * Thu Jul 20 2023 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild