Change-Id: Ib68b2b444074bb151314efefbde58828ac622b23
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3566
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Chang Lee <changlee@vmware.com>
| ... | ... |
@@ -1,24 +1,32 @@ |
| 1 | 1 |
Summary: Cmake-3.8.0 |
| 2 | 2 |
Name: cmake |
| 3 | 3 |
Version: 3.8.0 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
License: BSD and LGPLv2+ |
| 6 | 6 |
URL: http://www.cmake.org/ |
| 7 | 7 |
Source0: http://www.cmake.org/files/v3.8/%{name}-%{version}.tar.gz
|
| 8 |
+Patch0: disableUnstableUT.patch |
|
| 8 | 9 |
%define sha1 cmake=660ec06a46b46dc5d675371a2256ec739f8bb8b7 |
| 9 | 10 |
Group: Development/Tools |
| 10 | 11 |
Vendor: VMware, Inc. |
| 11 | 12 |
Distribution: Photon |
| 12 | 13 |
BuildRequires: ncurses-devel |
| 14 |
+BuildRequires: xz |
|
| 15 |
+BuildRequires: xz-devel |
|
| 16 |
+BuildRequires: curl |
|
| 17 |
+BuildRequires: curl-devel |
|
| 18 |
+BuildRequires: libgcc-devel |
|
| 13 | 19 |
Requires: ncurses |
| 14 | 20 |
%description |
| 15 | 21 |
CMake is an extensible, open-source system that manages the build process in an |
| 16 | 22 |
operating system and in a compiler-independent manner. |
| 17 | 23 |
%prep |
| 18 | 24 |
%setup -q |
| 25 |
+%patch0 -p1 |
|
| 19 | 26 |
%build |
| 20 | 27 |
ncores="$(/usr/bin/getconf _NPROCESSORS_ONLN)" |
| 21 | 28 |
./bootstrap --prefix=%{_prefix} --parallel=$ncores
|
| 29 |
+ |
|
| 22 | 30 |
make |
| 23 | 31 |
%install |
| 24 | 32 |
make DESTDIR=%{buildroot} install
|
| ... | ... |
@@ -34,7 +42,9 @@ make %{?_smp_mflags} test
|
| 34 | 34 |
/usr/doc/%{name}-*/*
|
| 35 | 35 |
/usr/share/aclocal/* |
| 36 | 36 |
%changelog |
| 37 |
-* Wed May 23 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.8.0-2 |
|
| 37 |
+* Thu Aug 17 2017 Kumar Kaushik <kaushikk@vmware.com> 3.8.0-3 |
|
| 38 |
+- Fixing make check bug # 1632102. |
|
| 39 |
+* Tue May 23 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.8.0-2 |
|
| 38 | 40 |
- bug 1448414: Updated to build in parallel |
| 39 | 41 |
* Fri Apr 07 2017 Anish Swaminathan <anishs@vmware.com> 3.8.0-1 |
| 40 | 42 |
- Upgrade to 3.8.0 |
| 41 | 43 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,56 @@ |
| 0 |
+diff -ru cmake-3.8.0/Source/kwsys/CMakeLists.txt cmake-3.8.0-modified/Source/kwsys/CMakeLists.txt |
|
| 1 |
+--- cmake-3.8.0/Source/kwsys/CMakeLists.txt 2017-04-10 08:23:07.000000000 -0700 |
|
| 2 |
+@@ -924,7 +924,6 @@ |
|
| 3 |
+ ENDIF() |
|
| 4 |
+ SET(KWSYS_CXX_TESTS ${KWSYS_CXX_TESTS}
|
|
| 5 |
+ testIOS |
|
| 6 |
+- testSystemTools |
|
| 7 |
+ testCommandLineArguments |
|
| 8 |
+ testCommandLineArguments1 |
|
| 9 |
+ ) |
|
| 10 |
+diff -ru cmake-3.8.0/Tests/CMakeLists.txt cmake-3.8.0-modified/Tests/CMakeLists.txt |
|
| 11 |
+--- cmake-3.8.0/Tests/CMakeLists.txt 2017-04-10 08:23:07.000000000 -0700 |
|
| 12 |
+@@ -2537,21 +2537,7 @@ |
|
| 13 |
+ ) |
|
| 14 |
+ set_tests_properties(CTestTestUpload PROPERTIES |
|
| 15 |
+ PASS_REGULAR_EXPRESSION "Upload\\.xml") |
|
| 16 |
+- |
|
| 17 |
+- configure_file( |
|
| 18 |
+- "${CMake_SOURCE_DIR}/Tests/CTestCoverageCollectGCOV/test.cmake.in"
|
|
| 19 |
+- "${CMake_BINARY_DIR}/Tests/CTestCoverageCollectGCOV/test.cmake"
|
|
| 20 |
+- @ONLY ESCAPE_QUOTES) |
|
| 21 |
+- add_test(CTestCoverageCollectGCOV ${CMAKE_CTEST_COMMAND}
|
|
| 22 |
+- -C \${CTEST_CONFIGURATION_TYPE}
|
|
| 23 |
+- -S "${CMake_BINARY_DIR}/Tests/CTestCoverageCollectGCOV/test.cmake" -VV
|
|
| 24 |
+- --output-log "${CMake_BINARY_DIR}/Tests/CTestCoverageCollectGCOV/testOut.log"
|
|
| 25 |
+- ) |
|
| 26 |
+- set_tests_properties(CTestCoverageCollectGCOV PROPERTIES |
|
| 27 |
+- PASS_REGULAR_EXPRESSION |
|
| 28 |
+- "PASSED with correct output.*Testing/CoverageInfo/main.cpp.gcov") |
|
| 29 |
+- set_property(TEST CTestCoverageCollectGCOV PROPERTY ENVIRONMENT CTEST_PARALLEL_LEVEL=) |
|
| 30 |
+- |
|
| 31 |
++ |
|
| 32 |
+ configure_file( |
|
| 33 |
+ "${CMake_SOURCE_DIR}/Tests/CTestTestEmptyBinaryDirectory/test.cmake.in"
|
|
| 34 |
+ "${CMake_BINARY_DIR}/Tests/CTestTestEmptyBinaryDirectory/test.cmake"
|
|
| 35 |
+@@ -2916,18 +2902,6 @@ |
|
| 36 |
+ PASS_REGULAR_EXPRESSION "The stop time has been passed") |
|
| 37 |
+ |
|
| 38 |
+ configure_file( |
|
| 39 |
+- "${CMake_SOURCE_DIR}/Tests/CTestTestSubdir/test.cmake.in"
|
|
| 40 |
+- "${CMake_BINARY_DIR}/Tests/CTestTestSubdir/test.cmake"
|
|
| 41 |
+- @ONLY ESCAPE_QUOTES) |
|
| 42 |
+- add_test(CTestTestSubdir ${CMAKE_CTEST_COMMAND}
|
|
| 43 |
+- -S "${CMake_BINARY_DIR}/Tests/CTestTestSubdir/test.cmake" -V
|
|
| 44 |
+- --output-log "${CMake_BINARY_DIR}/Tests/CTestTestSubdir/testOutput.log"
|
|
| 45 |
+- ) |
|
| 46 |
+- #make sure all 3 subdirs were added |
|
| 47 |
+- set_tests_properties(CTestTestSubdir PROPERTIES |
|
| 48 |
+- PASS_REGULAR_EXPRESSION "0 tests failed out of 3") |
|
| 49 |
+- |
|
| 50 |
+- configure_file( |
|
| 51 |
+ "${CMake_SOURCE_DIR}/Tests/CTestTestTimeout/test.cmake.in"
|
|
| 52 |
+ "${CMake_BINARY_DIR}/Tests/CTestTestTimeout/test.cmake"
|
|
| 53 |
+ @ONLY ESCAPE_QUOTES) |