From 974b9d2eff2f3b2665ab67948a8f5dfdb7e5ab23 Mon Sep 17 00:00:00 2001 From: Jerome Marchand Date: Jun 18 2024 10:19:05 +0000 Subject: Use proper building flags Use the distribution building flags. Also remove the call to %set_build_flags: it's uncessary as it's called automatically before %build. Resolves: RHEL-33502 Signed-off-by: Jerome Marchand --- diff --git a/libtraceevent.spec b/libtraceevent.spec index 0d08b09..01f0aa1 100644 --- a/libtraceevent.spec +++ b/libtraceevent.spec @@ -5,7 +5,7 @@ Name: libtraceevent Version: 1.8.2 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPL-2.1-only AND LGPL-2.1-or-later AND GPL-2.0-only AND GPL-2.0-or-later Summary: Library to parse raw trace event formats @@ -38,9 +38,8 @@ Development headers of %{name}-libs %build MANPAGE_DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep manpages/docbook.xsl` -%set_build_flags # Parallel build does not work -make -O -j1 V=1 VERBOSE=1 prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc +make -O -j1 V=1 VERBOSE=1 CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" prefix=%{_prefix} libdir=%{_libdir} MANPAGE_XSL=%{MANPAGE_DOCBOOK_XSL} all doc %install %make_install prefix=%{_prefix} libdir=%{_libdir} install doc-install @@ -64,6 +63,9 @@ rm -rf %{buildroot}/%{_libdir}/libtraceevent.a %{_libdir}/pkgconfig/libtraceevent.pc %changelog +* Tue Jun 18 2024 Jerome Marchand - 1.8.2-3 +- Use the distribution building flags (RHEL-33502) + * Thu Jan 25 2024 Fedora Release Engineering - 1.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild