Description of problem:
Related to bug 1858941, there are macros in Fedora to allow optional out-of-source builds , as well as generic %cmake_build, %cmake_install, and %ctest macros. Neal has demonstrated adding these in the CentOS dist-git . Applying this to RHEL 8 would allow for consistency between Fedora, EPEL8, and EPEL7 to make packagers lives easier.
Created attachment 1701829 [details]
Sync Fedora macros for optional support for out-of-source builds
This patch can be applied to RHEL's dist-git with `git am -p2`.
Created attachment 1728193 [details]
Revised patch to sync Fedora macros for optional support for out-of-source builds
So I've tried out cmake-3.18.2-7.el8 in CentOS Stream since it landed couple of months ago. It seems to work quite well. Can we see some movement here to merge my change into the cmake package for RHEL/CentOS 8.4?
I've revised my patch to incorporate a minor fix from Fedora for the %ctest macro and attached it here. Like the original, this patch can be applied to RHEL's dist-git with `git am -p2`.
@Tom, can you please take a look at this and merge it in? It's becoming a serious issue that it hasn't been incorporated into the CMake package in CentOS Stream yet...
+1, can we get the macros in for 8.4 please? There's zero risk (AFAICS) and the sooner they're in the less issues people will face.
Tested against cmake-3.18.2-9.el8.
Verified against cmake-3.18.2-9.el8.