Compare commits

...

90 Commits

Author SHA1 Message Date
Sandro
7fdd987674
Add python3-cmake sub package
The sub package provides metadata only for Python packages depending on
CMake facilitating automatic dependency resolution.
2024-05-16 13:56:56 +02:00
Orion Poplawski
103d8d98cf Build with gui again 2024-04-22 21:51:27 -06:00
Orion Poplawski
fd9f6505a2 Build without gui to avoid circular dep on self 2024-04-22 20:49:02 -06:00
Orion Poplawski
b6af92ee63 Rebuild for rhash 1.4.4 soname bump 2024-04-22 20:39:07 -06:00
335568208d Disable another timeout test on riscv64
We are timing out on Qt6Autogen.MocIncludeSymlink.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-03-06 10:58:09 +00:00
Orion Poplawski
809dad0080 Update to 3.28.3 (should fix bz#2261013) 2024-02-27 17:35:22 -07:00
Richard W.M. Jones
8d718fa234 Add %ctest timeout on riscv64
Since our riscv64 builders are slow at the moment some tests fail with
timeouts, eg:
https://src.fedoraproject.org/rpms/kokkos/pull-request/11

Adding the --timeout flag on riscv64 only increases the timeout and
makes the tests pass.  Adding this centrally makes it easier to remove
it later once faster hardware becomes widely available.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2024-02-20 17:16:38 +00:00
František Zatloukal
815f5fcb16 cmake-3.28.2 2024-02-01 16:39:55 +01:00
Fedora Release Engineering
ceb582021b Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-24 07:33:16 +00:00
Fedora Release Engineering
8330761951 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-19 15:44:18 +00:00
Florian Weimer
2081d2ee8b Improve C compatibility of LoadCommand tests
Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2023-11-23 10:05:41 +01:00
Björn Esser
a2c98e0624
cmake-3.28.0-rc3
Fixes rhbz#2243343
2023-10-24 21:07:54 +02:00
Björn Esser
40e5ea4b51
cmake-3.28.0-rc2
Fixes rhbz#2243343
2023-10-19 12:40:37 +02:00
Björn Esser
317a334610
cmake-3.28.0-rc1
Fixes rhbz#2243343
2023-10-12 10:49:02 +02:00
Björn Esser
e4497063d8
cmake-3.27.7
Fixes rhbz#2242491
2023-10-07 18:03:10 +02:00
Björn Esser
b8b1ab716d
Include new upstream patches 2023-10-03 16:32:06 +02:00
Björn Esser
c12643cb55
tests/cmake-testsuite-sanity: Adapt directory regex to allow RC versions 2023-09-28 01:45:56 +02:00
Björn Esser
e9463cc03d
cmake-3.27.6, include new upstream patch
Fixes rhbz#2239015, rhbz#2240311
2023-09-27 21:07:33 +02:00
Björn Esser
140aec0b79
cmake-3.27.5
Fixes rhbz#2239015
2023-09-27 21:07:33 +02:00
Michal Kolar
9d61b705e7 tests/cmake-testsuite-sanity: build test dependency for RunCMake.GetPrerequisites 2023-09-24 16:39:05 +00:00
Michal Kolar
94fdf0975f tests/cmake-testsuite-sanity: disable color output for terminal 2023-09-24 16:35:51 +00:00
Björn Esser
e3ad0b0e2e
Fix CI failure finally 2023-09-15 12:37:27 +02:00
Björn Esser
b105e87742
Fix CI failure, second try 2023-09-14 21:54:02 +02:00
Björn Esser
1ca25b2fbc
Fix CI failure 2023-09-14 21:34:36 +02:00
Björn Esser
dadba242b0
Add upstream patches from milestone to cmake-3.27.5 2023-09-14 18:57:23 +02:00
Panu Matilainen
4b282d073f Only require cmake-rpm-macros when rpm-build is installed part II
Turns out there's a duplicate dependency on cmake-rpm-macros
in the -data package. This looks redundant but...
Should've been in commit 9802a8d657
2023-09-06 10:52:07 +03:00
Tom Stellard
18bbba6a1b Convert license to SPDX 2023-09-02 09:48:47 +00:00
Björn Esser
1c4c4226f4
Fix outdated CI configuration 2023-09-01 13:18:35 +02:00
Panu Matilainen
9802a8d657 Only require cmake-rpm-macros when rpm-build is installed
There are other use-cases for cmake besides building rpms, for which a hard
requirement of rpm is absurd. Ironically enough, this hard dependency also
causes an ugly conflict requiring --nodeps hacks when building rpm's own
test-suite.

A conditional dependency on rpm-build sorts the issue nicely with no
regressions to the use-case of building packages.
2023-08-31 14:24:06 +03:00
Björn Esser
cbd49edade
Add upstream patch to fix linking non-builtin libatomic on some arches 2023-08-28 17:51:07 +02:00
Björn Esser
94df49d123
cmake-3.27.4
Fixes rhbz#2233852
2023-08-24 08:51:29 +02:00
Björn Esser
3cbfafffa5
cmake-3.27.3
Fixes rhbz#2232421
2023-08-17 08:16:54 +02:00
Björn Esser
bd82644a09
cmake-3.27.2
Fixes rhbz#2231131
2023-08-10 21:33:51 +02:00
Björn Esser
576059f704
Fix baserelease 2023-07-26 01:02:02 +02:00
Björn Esser
82675b9369
cmake-3.27.1
Fixes rhbz#2226276
2023-07-26 00:56:27 +02:00
Fedora Release Engineering
47184c29d9 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 15:56:59 +00:00
Björn Esser
4e11520f2d
cmake-3.27.0
Fixes rhbz#2223754
2023-07-18 23:02:44 +02:00
Björn Esser
2c0f546ee8
cmake-3.27.0-rc5
Fixes rhbz#2222977
2023-07-14 19:55:02 +02:00
Björn Esser
cad39465ff
Re-include tests that were failing with rc1 2023-07-06 16:24:41 +02:00
Björn Esser
91fff81fc3
Fix FTBFS for redhat-rpm-config v260 and later 2023-07-06 15:11:26 +02:00
Björn Esser
0c33c34b3a
cmake-3.27.0-rc4
Fixes rhbz#2218941
2023-06-30 18:49:53 +02:00
Björn Esser
ed8f42b443
cmake-3.27.0-rc3
Fixes rhbz#2214407
2023-06-20 21:08:07 +02:00
Björn Esser
4065822b5e
Backport some upstream patches which will be included in rc3 2023-06-19 21:25:27 +02:00
Björn Esser
a6a357b9e1
cmake-3.27.0-rc2 2023-06-12 20:16:21 +02:00
Björn Esser
6412e59e91
Exclude tests that started failing 2023-06-09 06:09:50 +02:00
Björn Esser
37488cd73f
Fix copy-rename of cppdap license files 2023-06-08 22:07:58 +02:00
Björn Esser
bda724cdc3
Fix evaluation of license tag 2023-06-08 21:42:06 +02:00
Björn Esser
b48f5368e6
Add licensing information for cppdap to packaged files if needed 2023-06-08 21:34:35 +02:00
Björn Esser
f71762392d
Use CMake-provided cppdap
It is currently shipped as a static lib from the upstream developers,
and for that reason we do not have it in the repos.
2023-06-08 21:06:27 +02:00
Björn Esser
29494dc734
cmake-3.27.0-rc1 2023-06-08 19:58:39 +02:00
Björn Esser
fb7816c555
Backport several bugfixes and support for Boost v1.82 from upstream 2023-06-01 15:00:49 +02:00
Björn Esser
ae71be464b
Exclude tests that are failing for rpm 4.19 2023-05-27 21:44:47 +02:00
Björn Esser
3b50d283fc
Fix %%changelog 2023-05-27 19:18:38 +02:00
Björn Esser
2a93bfd1de
macros: Directly use %set_build_flags, as it is supported since EPEL 7 2023-05-27 19:18:08 +02:00
Björn Esser
e8ab29358a
macros: Fix formatting and indentation 2023-05-27 19:17:43 +02:00
Björn Esser
3de71f1787
Rename macros.cmake -> macros.cmake.in 2023-05-27 19:13:01 +02:00
Neal Gompa
16329cac89 macros: use the language build flag macros for compiler flags
These macros have existed since 2018 and can be relied on in
RHEL 8+ and all current Fedora releases.
2023-05-19 07:16:59 -04:00
Björn Esser
24f5e409dd
cmake-3.26.4
Fixes rhbz#2208383
2023-05-19 09:53:34 +02:00
Björn Esser
ef292f9524
Bump baserelease 2023-05-08 11:57:24 +02:00
Björn Esser
607bce3339
Fix changelog entry 2023-05-08 11:56:40 +02:00
Jan Grulich
40655d2d51 Build cmake-gui with Qt6 2023-05-08 10:13:01 +02:00
Björn Esser
c30812977f
Bump baserelease 2023-05-08 09:27:57 +02:00
Nianqing Yao
da3d78c9a2 Fix build on riscv64
Co-authored-by: Liu Yang <Yang.Liu.sn@gmail.com>
2023-05-05 21:18:33 +08:00
Björn Esser
fa5e51275a
cmake-3.26.3
Fixes rhbz#2184478
2023-04-05 15:38:00 +02:00
Björn Esser
8ca05850f9
cmake-3.26.2
Fixes rhbz#2182863
2023-03-30 10:18:55 +02:00
Björn Esser
7719ee4665
cmake-3.26.1
Fixes rhbz#2181278
2023-03-23 15:51:08 +01:00
Björn Esser
60f61a7432
cmake-3.26.0
Fixes rhbz#2178221
2023-03-14 18:58:31 +01:00
Björn Esser
c1b5dc70f6
cmake-3.26.0-rc6
Fixes rhbz#2176581
2023-03-09 12:36:14 +01:00
Björn Esser
9de9f679ec
cmake-3.26.0-rc5 2023-03-01 17:59:40 +01:00
Björn Esser
2c60d9d74c
cmake-3.26.0-rc4
Fixes rhbz#2172604
2023-02-22 18:22:11 +01:00
Björn Esser
c652753592
cmake-3.26.0-rc3
Fixes rhbz#2170100
2023-02-15 18:39:16 +01:00
Björn Esser
fc92667512
cmake-3.26.0-rc2
Fixes rhbz#2167064
2023-02-09 23:37:20 +01:00
Björn Esser
a758a406b9
Purge patch for custom release flags in Fedora 2023-01-19 20:23:20 +01:00
Björn Esser
20cb796f3f
cmake-3.25.2
Fixes rhbz#2162459
2023-01-19 19:58:25 +01:00
Fedora Release Engineering
069fdb1d8c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 00:06:30 +00:00
Björn Esser
6f2559e4ae
Backport upstream patch for Boost v1.81 support 2023-01-15 13:05:09 +01:00
Björn Esser
e813f8279b
Small indentation fix 2023-01-15 13:00:03 +01:00
Neal Gompa
77b93ad1b9 Adjust ctest macro to use native out-of-tree support
With CMake 3.20, ctest(1) learned how to be told where the generated
working directory is, so we no longer have to change directories
(and thus, rely on shell semantics to get back out of that directory)
to make CTest work properly.

This change tweaks the %ctest macro such that we are leveraging that
new option and eliminates our usage of cd(1) as a workaround.
2023-01-13 05:01:20 -05:00
Björn Esser
697509ac7d
cmake-3.25.1
Fixes rhbz#2149681
2022-12-05 06:15:59 +01:00
Björn Esser
dbe4a674ef
cmake-3.25.0
Fixes rhbz#2143345
2022-11-16 22:03:14 +01:00
Björn Esser
098fd9fa15
cmake-3.25.0-rc4
Fixes rhbz#2141122
2022-11-09 08:07:16 +01:00
Björn Esser
b02a9d979e
Re-enable kwsys.testProcess-{4,5} on s390x 2022-11-02 09:36:12 +01:00
Björn Esser
e609e81f27
Re-enable some more tests that are passing now 2022-11-02 09:34:44 +01:00
Björn Esser
aa5cce21c6
Re-enable ExternalProject and CTest.UpdateGIT on testsuite run
This reverts commit 7df9be99dc.
2022-11-02 08:21:23 +01:00
Björn Esser
c0e29fc6cb
cmake-3.25.0-rc3
Fixes rhbz#2062783
2022-11-02 07:54:11 +01:00
Björn Esser
198fb99c98
Allow valid short arguments for %%ctest macro
Fixes rhbz#2127650
2022-10-30 13:56:05 +01:00
Björn Esser
59c57b9caa
Drop non-upstream CMAKE_DL_LIBS windows patch
Fixes rhbz#2127529
2022-10-30 13:09:50 +01:00
Björn Esser
a538e8d057
cmake-3.25.0-rc2
Fixes rhbz#2062783
2022-10-29 17:52:31 +02:00
Björn Esser
7df9be99dc
Exclude ExternalProject and CTest.UpdateGIT from testsuite 2022-10-29 17:50:24 +02:00
Björn Esser
01a89ac7b2
Update to 3.24.2 2022-10-29 11:57:54 +02:00
7 changed files with 357 additions and 197 deletions

View File

@ -1,116 +0,0 @@
Index: cmake-3.22.0-rc1/Modules/Compiler/Absoft-Fortran.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/Absoft-Fortran.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/Absoft-Fortran.cmake
@@ -1,7 +1,7 @@
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ")
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
set(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
set(CMAKE_Fortran_MODPATH_FLAG "-p")
Index: cmake-3.22.0-rc1/Modules/Compiler/G95-Fortran.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/G95-Fortran.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/G95-Fortran.cmake
@@ -1,7 +1,7 @@
string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
Index: cmake-3.22.0-rc1/Modules/Compiler/GNU.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/GNU.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/GNU.cmake
@@ -55,7 +55,7 @@ macro(__compiler_gnu lang)
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
Index: cmake-3.22.0-rc1/Modules/Compiler/GNU-Fortran.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/GNU-Fortran.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/GNU-Fortran.cmake
@@ -19,7 +19,7 @@ set(CMAKE_Fortran_POSTPROCESS_FLAG "-fpr
# No -DNDEBUG for Fortran.
string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
# No -isystem for Fortran because it will not find .mod files.
unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
Index: cmake-3.22.0-rc1/Modules/Compiler/Intel.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/Intel.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/Intel.cmake
@@ -22,7 +22,7 @@ else()
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}")
Index: cmake-3.22.0-rc1/Modules/Compiler/NVIDIA-CUDA.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/NVIDIA-CUDA.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/NVIDIA-CUDA.cmake
@@ -51,7 +51,7 @@ if(NOT "x${CMAKE_CUDA_SIMULATE_ID}" STRE
set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC)
string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
- string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
+ string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
endif()
Index: cmake-3.22.0-rc1/Modules/Compiler/PathScale.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/PathScale.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/PathScale.cmake
@@ -16,6 +16,6 @@ macro(__compiler_pathscale lang)
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
endmacro()
Index: cmake-3.22.0-rc1/Modules/Compiler/PGI.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Compiler/PGI.cmake
+++ cmake-3.22.0-rc1/Modules/Compiler/PGI.cmake
@@ -18,7 +18,7 @@ macro(__compiler_pgi lang)
string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -s")
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O3")
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O2")
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -gopt")
if(CMAKE_HOST_WIN32)
Index: cmake-3.22.0-rc1/Modules/Platform/Windows-Clang.cmake
===================================================================
--- cmake-3.22.0-rc1.orig/Modules/Platform/Windows-Clang.cmake
+++ cmake-3.22.0-rc1/Modules/Platform/Windows-Clang.cmake
@@ -92,7 +92,7 @@ macro(__windows_compiler_clang_gnu lang)
string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -Xclang -gcodeview -O0 ${__ADDED_FLAGS_DEBUG}")
string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG ${__ADDED_FLAGS}")
- string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG ${__ADDED_FLAGS}")
+ string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG ${__ADDED_FLAGS}")
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG -Xclang -gcodeview ${__ADDED_FLAGS}")
endif()
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")

View File

@ -1,18 +0,0 @@
Index: cmake-3.23.0-rc2/Modules/Platform/Windows-GNU.cmake
===================================================================
--- cmake-3.23.0-rc2.orig/Modules/Platform/Windows-GNU.cmake
+++ cmake-3.23.0-rc2/Modules/Platform/Windows-GNU.cmake
@@ -24,11 +24,11 @@ set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
set(CMAKE_EXTRA_LINK_EXTENSIONS ".lib") # MinGW can also link to a MS .lib
set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
-set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a" ".lib")
+set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a" ".lib")
set(CMAKE_C_STANDARD_LIBRARIES_INIT "-lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32")
set(CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
-set(CMAKE_DL_LIBS "")
+set(CMAKE_DL_LIBS "dl")
set(CMAKE_LIBRARY_PATH_FLAG "-L")
set(CMAKE_LINK_LIBRARY_FLAG "-l")
set(CMAKE_LINK_DEF_FILE_FLAG "") # Empty string: passing the file is enough

View File

@ -16,7 +16,7 @@
# Run git tests
%bcond_without git_test
# Set to bcond_with or use --without gui to disable qt4 gui build
# Set to bcond_with or use --without gui to disable qt gui build
%bcond_without gui
# Use ncurses for colorful output
@ -42,6 +42,10 @@
%bcond_without bundled_rhash
%endif
# cppdap is currently shipped as a static lib from upstream,
# so we do not have it in the repos.
%bcond_without bundled_cppdap
# Run tests
%bcond_without test
@ -49,7 +53,10 @@
%bcond_without X11_test
# Do not build non-lto objects to reduce build time significantly.
%global optflags %(echo '%{optflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
%global build_cflags %(echo '%{build_cflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
%global build_cxxflags %(echo '%{build_cxxflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
%global build_fflags %(echo '%{build_fflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
%global build_fcflags %(echo '%{build_fflags}' | sed -e 's!-ffat-lto-objects!-fno-fat-lto-objects!g')
# Place rpm-macros into proper location
%global rpm_macros_dir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
@ -61,22 +68,30 @@
%{!?_vpath_builddir:%global _vpath_builddir %{_target_platform}}
%global major_version 3
%global minor_version 24
# Set to RC version if building RC, else %%{nil}
#global rcsuf %%{nil}
%{?rcsuf:%global relsuf .%{rcsuf}}
%{?rcsuf:%global versuf -%{rcsuf}}
%global minor_version 28
%global patch_version 3
# For handling bump release by rpmdev-bumpspec and mass rebuild
%global baserelease 1
%global baserelease 5
# Set to RC version if building RC, else comment out.
#%%global rcsuf rc3
%if 0%{?rcsuf:1}
%global pkg_version %{major_version}.%{minor_version}.%{patch_version}~%{rcsuf}
%global tar_version %{major_version}.%{minor_version}.%{patch_version}-%{rcsuf}
%else
%global pkg_version %{major_version}.%{minor_version}.%{patch_version}
%global tar_version %{major_version}.%{minor_version}.%{patch_version}
%endif
# Uncomment if building for EPEL
#global name_suffix %%{major_version}
%global orig_name cmake
Name: %{orig_name}%{?name_suffix}
Version: %{major_version}.%{minor_version}.1
Release: %{baserelease}%{?relsuf}%{?dist}
Version: %{pkg_version}
Release: %{baserelease}%{?dist}
Summary: Cross-platform make system
# most sources are BSD
@ -84,11 +99,11 @@ Summary: Cross-platform make system
# Source/kwsys/MD5.c is zlib
# some GPL-licensed bison-generated files, which all include an
# exception granting redistribution under terms of your choice
License: BSD and MIT and zlib
License: BSD-3-Clause AND MIT-open-group AND Zlib%{?with_bundled_cppdap: AND Apache-2.0}
URL: http://www.cmake.org
Source0: http://www.cmake.org/files/v%{major_version}.%{minor_version}/%{orig_name}-%{version}%{?versuf}.tar.gz
Source0: http://www.cmake.org/files/v%{major_version}.%{minor_version}/%{orig_name}-%{tar_version}.tar.gz
Source1: %{name}-init.el
Source2: macros.%{name}
Source2: macros.%{name}.in
# See https://bugzilla.redhat.com/show_bug.cgi?id=1202899
Source3: %{name}.attr
Source4: %{name}.prov
@ -102,17 +117,10 @@ Source5: %{name}.req
# http://public.kitware.com/Bug/view.php?id=12965
# https://bugzilla.redhat.com/show_bug.cgi?id=822796
Patch100: %{name}-findruby.patch
# replace release flag -O3 with -O2 for fedora
%if 0%{?fedora} && 0%{?fedora} < 34
Patch101: %{name}-fedora-flag_release.patch
%endif
# Add dl to CMAKE_DL_LIBS on MINGW
# https://gitlab.kitware.com/cmake/cmake/issues/17600
Patch102: %{name}-mingw-dl.patch
# Patch for renaming on EPEL
%if 0%{?name_suffix:1}
Patch1: %{name}-rename.patch
Patch1: %{name}-rename.patch
%endif
BuildRequires: coreutils
@ -138,6 +146,11 @@ BuildRequires: %{_bindir}/sphinx-build
%if %{without bootstrap}
BuildRequires: bzip2-devel
BuildRequires: curl-devel
%if %{with bundled_cppdap}
Provides: bundled(cppdap)
%else
BuildRequires: cppdap-devel
%endif
BuildRequires: expat-devel
%if %{with bundled_jsoncpp}
Provides: bundled(jsoncpp)
@ -172,7 +185,9 @@ BuildRequires: python2-devel
%endif
%endif
%if %{with gui}
%if 0%{?fedora} || 0%{?rhel} > 7
%if 0%{?fedora} || 0%{?rhel} > 9
BuildRequires: pkgconfig(Qt6Widgets)
%elif 0%{?rhel} > 7
BuildRequires: pkgconfig(Qt5Widgets)
%else
BuildRequires: pkgconfig(QtGui)
@ -190,7 +205,7 @@ BuildRequires: %{name}-rpm-macros
BuildRequires: make
Requires: %{name}-data = %{version}-%{release}
Requires: %{name}-rpm-macros = %{version}-%{release}
Requires: (%{name}-rpm-macros = %{version}-%{release} if rpm-build)
Requires: %{name}-filesystem%{?_isa} = %{version}-%{release}
# Explicitly require make. (rhbz#1862014)
@ -219,7 +234,7 @@ generation, code generation, and template instantiation.
Summary: Common data-files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: %{name}-filesystem = %{version}-%{release}
Requires: %{name}-rpm-macros = %{version}-%{release}
Requires: (%{name}-rpm-macros = %{version}-%{release} if rpm-build)
%if %{with emacs}
%if 0%{?fedora} || 0%{?rhel} >= 7
Requires: emacs-filesystem%{?_emacs_version: >= %{_emacs_version}}
@ -273,8 +288,19 @@ BuildArch: noarch
This package contains common RPM macros for %{name}.
%package -n python3-cmake
Summary: Python metadata for packages depending on %{name}
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
%description -n python3-cmake
Package provides metadata for Python packages depending on cmake.
This is to make automatic dependency resolution work. The package is NOT
using anything from the PyPI package called cmake.
%prep
%autosetup -n %{orig_name}-%{version}%{?versuf} -p 1
%autosetup -n %{orig_name}-%{tar_version} -p 1
%if %{with rpm}
%if %{with python3}
@ -290,15 +316,7 @@ tail -n +2 %{SOURCE5} >> %{name}.req
%build
%if 0%{?set_build_flags:1}
%{set_build_flags}
%else
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS
FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;}
%endif
SRCDIR="$(/usr/bin/pwd)"
mkdir %{_vpath_builddir}
pushd %{_vpath_builddir}
@ -308,6 +326,9 @@ $SRCDIR/bootstrap --prefix=%{_prefix} \
--mandir=/share/man \
--%{?with_bootstrap:no-}system-libs \
--parallel="$(echo %{?_smp_mflags} | sed -e 's|-j||g')" \
%if %{with bundled_cppdap}
--no-system-cppdap \
%endif
%if %{with bundled_rhash}
--no-system-librhash \
%endif
@ -329,6 +350,21 @@ $SRCDIR/bootstrap --prefix=%{_prefix} \
popd
%make_build -C %{_vpath_builddir}
# Provide Python metadata
%global cmake_distinfo cmake-%{major_version}.%{minor_version}.%{patch_version}%{?rcsuf}.dist-info
mkdir %{cmake_distinfo}
cat > %{cmake_distinfo}/METADATA << EOF
Metadata-Version: 2.1
Name: cmake
Version: %{major_version}.%{minor_version}.%{patch_version}%{?rcsuf}
Summary: %{summary}
Description-Content-Type: text/plain
Metadata only package for automatic dependency resolution in the RPM
ecosystem. This package is separate from the PyPI package called cmake.
EOF
echo rpm > %{cmake_distinfo}/INSTALLER
%install
mkdir -p %{buildroot}%{_pkgdocdir}
@ -368,6 +404,10 @@ do
dname=$(basename $dir)
cp -p $f ./${fname}_${dname}
done
%if %{with bundled_cppdap}
cp -p Utilities/cmcppdap/LICENSE LICENSE.cppdap
cp -p Utilities/cmcppdap/NOTICE NOTICE.cppdap
%endif
# Cleanup pre-installed documentation
%if %{with sphinx}
mv %{buildroot}%{_docdir}/%{name}/html .
@ -439,26 +479,32 @@ find %{buildroot}%{_libdir}/%{orig_name} -type f | \
find %{buildroot}%{_bindir} -type f -or -type l -or -xtype l | \
sed -e '/.*-gui$/d' -e '/^$/d' -e 's!^%{buildroot}!"!g' -e 's!$!"!g' >> lib_files.mf
# Install Python metadata
mkdir -p %{buildroot}%{python3_sitelib}
cp -a %{cmake_distinfo} %{buildroot}%{python3_sitelib}
%if %{with test}
%check
pushd %{_vpath_builddir}
# CTestTestUpload and BundleUtilities require internet access
# CPackComponentsForAll-RPM-IgnoreGroup failing wih rpm 4.15 - https://gitlab.kitware.com/cmake/cmake/issues/19983
NO_TEST="CTestTestUpload|BundleUtilities"
# Likely failing for GCC 12
NO_TEST="$NO_TEST|CustomCommand|CMakeLib.testCTestResourceAllocator"
NO_TEST="$NO_TEST|CMakeLib.testCTestResourceSpec|RunCMake.PositionIndependentCode"
# kwsys.testProcess-{4,5} are flaky on s390x.
%ifarch s390x
NO_TEST="$NO_TEST|kwsys.testProcess-4|kwsys.testProcess-5"
%endif
# CTestTestUpload requires internet access.
NO_TEST="CTestTestUpload"
# Likely failing for hardening flags from system.
NO_TEST="$NO_TEST|CustomCommand|RunCMake.PositionIndependentCode"
# Failing for rpm 4.19
NO_TEST="$NO_TEST|CPackComponentsForAll-RPM-default"
NO_TEST="$NO_TEST|CPackComponentsForAll-RPM-OnePackPerGroup"
NO_TEST="$NO_TEST|CPackComponentsForAll-RPM-AllInOne"
# curl test may fail during bootstrap
%if %{with bootstrap}
NO_TEST="$NO_TEST|curl"
%endif
%ifarch riscv64
# These three tests timeout on riscv64, skip them.
NO_TEST="$NO_TEST|Qt5Autogen.ManySources|Qt5Autogen.MocInclude|Qt5Autogen.MocIncludeSymlink|Qt6Autogen.MocIncludeSymlink"
%endif
bin/ctest%{?name_suffix} %{?_smp_mflags} -V -E "$NO_TEST" --output-on-failure
## do this only periodically, not for every build -- rdieter 20210429
## do this only periodically, not for every build -- besser82 20221102
# Keep an eye on failing tests
#bin/ctest%{?name_suffix} %{?_smp_mflags} -V -R "$NO_TEST" --output-on-failure || :
popd
@ -469,6 +515,10 @@ popd
%doc %dir %{_pkgdocdir}
%license Copyright.txt*
%license COPYING*
%if %{with bundled_cppdap}
%license LICENSE.cppdap
%license NOTICE.cppdap
%endif
%if %{with sphinx}
%{_mandir}/man1/c%{name}.1.*
%{_mandir}/man1/%{name}.1.*
@ -528,7 +578,250 @@ popd
%endif
%files -n python3-cmake
%{python3_sitelib}/%{cmake_distinfo}
%changelog
* Wed May 15 2024 Sandro <devel@penguinpee.nl> - 3.28.3-5
- Add python3-cmake sub package providing metadata for Python packages
depending on CMake to facilitate automatic dependency resolution.
* Tue Apr 23 2024 Orion Poplawski <orion@nwra.com> - 3.28.3-4
- Build with gui again
* Tue Apr 23 2024 Orion Poplawski <orion@nwra.com> - 3.28.3-3
- Rebuild for rhash 1.4.4 soname bump
- Build without gui to avoid circular dep on self
* Wed Mar 06 2024 David Abdurachmanov <davidlt@rivosinc.com> - 3.28.3-2
- Disable another timeout test on riscv64
* Tue Feb 27 2024 Orion Poplawski <orion@nwra.com> - 3.28.3-1
- Update to 3.28.3 (should fix bz#2261013)
* Thu Feb 01 2024 Frantisek Zatloukal <fzatlouk@redhat.com> - 3.28.2-1
- cmake-3.28.2 (fixes RHBZ#2261037 and RHBZ#2243343)
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.28.0~rc3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.28.0~rc3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Nov 23 2023 Florian Weimer <fweimer@redhat.com> - 3.28.0~rc3-2
- Improve C compatibility of LoadCommand tests
* Tue Oct 24 2023 Björn Esser <besser82@fedoraproject.org> - 3.28.0~rc3-1
- cmake-3.28.0-rc3
Fixes rhbz#2243343
* Thu Oct 19 2023 Björn Esser <besser82@fedoraproject.org> - 3.28.0~rc2-1
- cmake-3.28.0-rc2
Fixes rhbz#2243343
* Thu Oct 12 2023 Björn Esser <besser82@fedoraproject.org> - 3.28.0~rc1-1
- cmake-3.28.0-rc1
Fixes rhbz#2243343
* Sat Oct 07 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.7-1
- cmake-3.27.7
Fixes rhbz#2242491
* Tue Oct 03 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.6-2
- Include new upstream patches
* Wed Sep 27 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.6-1
- cmake-3.27.6
Fixes rhbz#2239015, rhbz#2240311
- Include new upstream patch
* Fri Sep 15 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.5-1
- cmake-3.27.5
Fixes rhbz#2239015
* Fri Sep 15 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-9
- Fix CI failure finally
* Thu Sep 14 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-8
- Fix CI failure
* Thu Sep 14 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-7
- Add upstream patches from milestone to cmake-3.27.5
* Wed Sep 06 2023 Panu Matilainen <pmatilai@redhat.com> - 3.27.4-6
- Only require cmake-rpm-macros when rpm-build is installed part II
* Sat Sep 02 2023 Tom Stellard <tstellar@redhat.com> - 3.27.4-5
- Convert license to SPDX
* Fri Sep 01 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-4
- Fix outdated CI configuration
* Thu Aug 31 2023 Panu Matilainen <pmatilai@redhat.com> - 3.27.4-3
- Only require cmake-rpm-macros when rpm-build is installed
* Mon Aug 28 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-2
- Add upstream patch to fix linking non-builtin libatomic on some arches
* Thu Aug 24 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.4-1
- cmake-3.27.4
Fixes rhbz#2233852
* Thu Aug 17 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.3-1
- cmake-3.27.3
Fixes rhbz#2232421
* Thu Aug 10 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.2-1
- cmake-3.27.2
Fixes rhbz#2231131
* Tue Jul 25 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.1-1
- cmake-3.27.1
Fixes rhbz#2226276
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.27.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jul 18 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0-1
- cmake-3.27.0
Fixes rhbz#2223754
* Fri Jul 14 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc5-1
- cmake-3.27.0-rc5
Fixes rhbz#2222977
* Thu Jul 06 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc4-2
- Fix FTBFS for redhat-rpm-config v260 and later
- Re-include tests that were failing with rc1
* Fri Jun 30 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc4-1
- cmake-3.27.0-rc4
Fixes rhbz#2218941
* Tue Jun 20 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc3-1
- cmake-3.27.0-rc3
Fixes rhbz#2214407
* Mon Jun 19 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc2-2
- Backport some upstream patches which will be included in rc3
* Mon Jun 12 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc2-1
- cmake-3.27.0-rc2
* Thu Jun 08 2023 Björn Esser <besser82@fedoraproject.org> - 3.27.0~rc1-1
- cmake-3.27.0-rc1
- Use CMake-provided cppdap
- Add licensing information for cppdap to packaged files if needed
- Exclude tests that started failing
* Thu Jun 01 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.4-4
- Backport several bugfixes and support for Boost v1.82 from upstream
* Sat May 27 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.4-3
- Rename macros.cmake -> macros.cmake.in
- macros: Fix formatting and indentation
- macros: Directly use %%set_build_flags, as it is supported since EPEL 7
- Exclude tests that are failing for rpm 4.19
* Fri May 19 2023 Neal Gompa <ngompa@fedoraproject.org> - 3.26.4-2
- macros: Use the language build flag macros for compiler flags
* Fri May 19 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.4-1
- cmake-3.26.4
Fixes rhbz#2208383
* Mon May 08 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.3-3
- Build cmake-gui with Qt6
* Fri May 05 2023 Nianqing Yao <imbearchild@outlook.com> - 3.26.3-2
- Fix build on riscv64
* Wed Apr 05 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.3-1
- cmake-3.26.3
Fixes rhbz#2184478
* Thu Mar 30 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.2-1
- cmake-3.26.2
Fixes rhbz#2182863
* Thu Mar 23 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.1-1
- cmake-3.26.1
Fixes rhbz#2181278
* Tue Mar 14 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.0-1
- cmake-3.26.0
Fixes rhbz#2178221
* Thu Mar 09 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.0~rc6-1
- cmake-3.26.0-rc6
Fixes rhbz#2176581
* Wed Mar 01 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.0~rc5-1
- cmake-3.26.0-rc5
* Wed Feb 22 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.0~rc4-1
- cmake-3.26.0-rc4
Fixes rhbz#2172604
* Wed Feb 15 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.0~rc3-1
- cmake-3.26.0-rc3
Fixes rhbz#2170100
* Thu Feb 09 2023 Björn Esser <besser82@fedoraproject.org> - 3.26.0~rc2-1
- cmake-3.26.0-rc2
Fixes rhbz#2167064
* Thu Jan 19 2023 Björn Esser <besser82@fedoraproject.org> - 3.25.2-1
- cmake-3.25.2
Fixes rhbz#2162459
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.25.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Sun Jan 15 2023 Björn Esser <besser82@fedoraproject.org> - 3.25.1-3
- Backport upstream patch for Boost v1.81 support
* Fri Jan 13 2023 Neal Gompa <ngompa@fedoraproject.org> - 3.25.1-2
- Adjust ctest macro to use native out-of-tree support
* Mon Dec 05 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.1-1
- cmake-3.25.1
Fixes rhbz#2149681
* Wed Nov 16 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-1
- cmake-3.25.0
Fixes rhbz#2143345
* Wed Nov 09 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-0.6.rc4
- cmake-3.25.0-rc4
Fixes rhbz#2141122
* Wed Nov 02 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-0.5.rc3
- Re-enable BundleUtilities, CMakeLib.testCTestResourceAllocator,
CMakeLib.testCTestResourceSpec, CTest.UpdateGIT, ExternalProject
during testsuite run
- Re-enable kwsys.testProcess-{4,5} on s390x
* Wed Nov 02 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-0.4.rc3
- cmake-3.25.0-rc3
Fixes rhbz#2062783
* Sun Oct 30 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-0.3.rc2
- Allow valid short arguments for %%ctest macro
Fixes rhbz#2127650
* Sun Oct 30 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-0.2.rc2
- Drop non-upstream CMAKE_DL_LIBS windows patch
Fixes rhbz#2127529
* Sat Oct 29 2022 Björn Esser <besser82@fedoraproject.org> - 3.25.0-0.1.rc2
- cmake-3.25.0-rc2
Fixes rhbz#2062783
* Sat Oct 29 2022 Björn Esser <besser82@fedoraproject.org> - 3.24.2-1
- cmake-3.24.2
* Thu Aug 18 2022 Björn Esser <besser82@fedoraproject.org> - 3.24.1-1
- cmake-3.24.1

View File

@ -9,23 +9,16 @@
%__ctest /usr/bin/ctest
%__cmake_builddir %{!?__cmake_in_source_build:%{_vpath_builddir}}%{?__cmake_in_source_build:.}
# - Set default compile flags
# - CMAKE_*_FLAGS_RELEASE are added *after* the *FLAGS environment variables
# and default to -O3 -DNDEBUG. Strip the -O3 so we can override with *FLAGS
# and default to -O3 -DNDEBUG. Strip the -O3 so we can override with *FLAGS
# - Turn on verbose makefiles so we can see and verify compile flags
# - Turn off stripping by default so RPM can do it separately
# - Set default install prefixes and library install directories
# - Turn on shared libraries by default
%cmake \
%if 0%{?set_build_flags:1} \
%set_build_flags \
%else \
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
FCFLAGS="${FCFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FCFLAGS ; \
%{?__global_ldflags:LDFLAGS="${LDFLAGS:-%__global_ldflags}" ; export LDFLAGS ;} \
%endif \
%{set_build_flags} \
%__cmake \\\
%{!?__cmake_in_source_build:-S "%{_vpath_srcdir}"} \\\
%{!?__cmake_in_source_build:-B "%{__cmake_builddir}"} \\\
@ -50,13 +43,18 @@
%cmake_install \
DESTDIR="%{buildroot}" %__cmake --install "%{__cmake_builddir}"
%ctest(:-:) \
cd "%{__cmake_builddir}" \
%__ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} %{**} \
cd -
%ctest(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) \
%__ctest --test-dir "%{__cmake_builddir}" \\\
--output-on-failure \\\
--force-new-ctest-process \\\
%ifarch riscv64 \
--timeout 6000 \\\
%endif \
%{?_smp_mflags} %{**}
%cmake@@CMAKE_MAJOR_VERSION@@ %cmake
%cmake@@CMAKE_MAJOR_VERSION@@_build %cmake_build
%cmake@@CMAKE_MAJOR_VERSION@@_install %cmake_install
%ctest@@CMAKE_MAJOR_VERSION@@(:-:) %ctest %{**}
%ctest@@CMAKE_MAJOR_VERSION@@(:-:h:j:u:v:A:C:D:E:F:H:I:L:M:N:O:Q:R:S:T:U:V:) \
%ctest %{**}

View File

@ -3,4 +3,4 @@ discover:
how: fmf
directory: tests
execute:
how: beakerlib
how: tmt

View File

@ -1 +1 @@
SHA512 (cmake-3.24.1.tar.gz) = 67bfafcf9ceba617d7ebbb0ac88b689a2d90ab51fea4a83bd073ee082fb55de8962ce7fb283f3db5f455d286f2199843ffa595a1de207d4fa3e4472d951eb289
SHA512 (cmake-3.28.3.tar.gz) = 66e923925b764e1fe3d150c69dab3e0abd9e0c90d8e30cab63c3a1f70c3e37df0a5e3ff12b378eeae3bdc6608495f41399e6f81602e26b513b19fa19ff6c48fc

View File

@ -37,6 +37,7 @@ if rlIsFedora; then
else
REQUIRES="$REQUIRES yum-utils"
fi
export CLICOLOR=0
rlJournalStart
rlPhaseStartSetup
@ -56,10 +57,12 @@ rlJournalStart
rlRun "dnf builddep -y $TmpDir/SPECS/*.spec"
rlRun "su -c 'rpmbuild -D \"_topdir $TmpDir\" -bp $TmpDir/SPECS/*.spec &>$TmpDir/rpmbuild.log' $BUILD_USER"
rlRun "rlFileSubmit $TmpDir/rpmbuild.log"
rlRun "cd $TmpDir/BUILD/cmake*"
rlRun "CMakeDir=`ls $TmpDir/BUILD | grep -E '^cmake-[0-9]+(\.[0-9]+)+(-rc[0-9]+)?$' | tail -n 1`"
rlRun "cd $TmpDir/BUILD/$CMakeDir"
rlRun "su -c './bootstrap &>$TmpDir/bootstrap.log' $BUILD_USER"
rlRun "rlFileSubmit $TmpDir/bootstrap.log"
rlRun "ln -s /usr/bin/cmake bin/cmake"
rlRun "ln -fs /usr/bin/cmake bin/cmake"
rlRun "make exit_code"
rlPhaseEnd
rlPhaseStartTest "run testsuite"