From 28aaf0e5758a2be45082b1a33e375744ce36686a Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Jan 25 2022 14:25:43 +0000 Subject: Move %configure and associated steps to %build %configure and friends invoke code that is part of the package and should be in %build. If https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/172 is merged, %configure would start throwing an error. This change is proactively to avoid a later build failure. No rebuild will be done. --- diff --git a/ibutils.spec b/ibutils.spec index 9570008..bc7ec92 100644 --- a/ibutils.spec +++ b/ibutils.spec @@ -78,6 +78,7 @@ Static libraries from the Mellanox Infiniband diagnostic utilities %patch2 %patch3 -p1 -b .gcc10 +%build autoreconf -fiv -I config sed -i "s/^libibmscli_la_LIBADD =/& -lpthread/" ibmgtsim/src/Makefile.in sed -e 's#all-am: Makefile $(PROGRAMS) $(LIBRARIES) $(LTLIBRARIES)#all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(PROGRAMS)#' -i ibis/src/Makefile.in @@ -87,7 +88,6 @@ sed -e 's|^LTCC="gcc"|LTCC="gcc -Wl,--as-needed"|' \ -e 's|^CC="g++"|CC="g++ -Wl,--as-needed"|' \ -i ibdm/libtool ibis/libtool ibmgtsim/libtool -%build # The build isn't smp safe, so no %{?_smp_mflags} export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing -fPIC" make