You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, we need to remove the call to %configure because we did not provide a ifdef::rhel[configure script].
This would seem to be bad advice at any point. The %configure macro will place $CFLAGS, etc into the environment to be used by the follow-up 'make' command; not using it may not output a correct build for the distro. A better option (while also tutorializing how to get around certain issues caused by upstream) might be:
%build
# source has no configure script; use macro anyway
echo "#!/bin/sh" > configure ; chmod +x configure
%configure
make %{?_smp_mflags}
For current RPM releases, one could also use this instead of making a dummy file:
%define _configure /bin/true
The text was updated successfully, but these errors were encountered:
In https://github.com/redhat-developer/rpm-packaging-guide/blob/master/source/packaging-software.adoc it is written:
This would seem to be bad advice at any point. The %configure macro will place $CFLAGS, etc into the environment to be used by the follow-up 'make' command; not using it may not output a correct build for the distro. A better option (while also tutorializing how to get around certain issues caused by upstream) might be:
For current RPM releases, one could also use this instead of making a dummy file:
The text was updated successfully, but these errors were encountered: