SPECS/cmake/cmake.spec
4583463b
 Summary:	Cmake-3.8.0
f4d17450
 Name:		cmake
4583463b
 Version:	3.8.0
778d2310
 Release:	4%{?dist}
f4d17450
 License:	BSD and LGPLv2+
 URL:		http://www.cmake.org/
4583463b
 Source0:	http://www.cmake.org/files/v3.8/%{name}-%{version}.tar.gz
3e8fb5a2
 Patch0:         disableUnstableUT.patch
4583463b
 %define sha1 cmake=660ec06a46b46dc5d675371a2256ec739f8bb8b7
8f193813
 Group:		Development/Tools
f4d17450
 Vendor:		VMware, Inc.
 Distribution:	Photon
 BuildRequires:	ncurses-devel
3e8fb5a2
 BuildRequires:  xz
 BuildRequires:  xz-devel
 BuildRequires:  curl
 BuildRequires:  curl-devel
 BuildRequires:  libgcc-devel
778d2310
 BuildRequires:  expat-libs
 BuildRequires:  expat-devel
f4d17450
 Requires:	ncurses
778d2310
 Requires:       expat
f4d17450
 %description
 CMake is an extensible, open-source system that manages the build process in an 
 operating system and in a compiler-independent manner. 
 %prep
 %setup -q
3e8fb5a2
 %patch0 -p1
f4d17450
 %build
0d5177c8
 ncores="$(/usr/bin/getconf _NPROCESSORS_ONLN)"
778d2310
 ./bootstrap --prefix=%{_prefix} --system-expat --parallel=$ncores
3e8fb5a2
 
0d5177c8
 make
f4d17450
 %install
 make DESTDIR=%{buildroot} install
 find %{buildroot} -name '*.la' -delete
2359b0af
 
f4d17450
 %check
2359b0af
 make  %{?_smp_mflags} test
 
f4d17450
 %files
 %defattr(-,root,root)
 /usr/share/%{name}-*/*
 %{_bindir}/*
 /usr/doc/%{name}-*/*
 /usr/share/aclocal/*
 %changelog
778d2310
 *       Fri Sep 29 2017 Kumar Kaushik <kaushikk@vmware.com> 3.8.0-4
 -       Building using system expat libs.
3e8fb5a2
 *       Thu Aug 17 2017 Kumar Kaushik <kaushikk@vmware.com> 3.8.0-3
 -       Fixing make check bug # 1632102. 
 *	Tue May 23 2017 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.8.0-2
0d5177c8
 -	bug 1448414: Updated to build in parallel
4583463b
 *       Fri Apr 07 2017 Anish Swaminathan <anishs@vmware.com>  3.8.0-1
 -       Upgrade to 3.8.0
2359b0af
 *       Thu Oct 06 2016 ChangLee <changlee@vmware.com> 3.4.3-3
 -       Modified %check
c3a3fd12
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.4.3-2
 -	GA - Bump release of all rpms
2fbfe89a
 *       Thu Feb 25 2016 Kumar Kaushik <kaushikk@vmware.com> 3.4.3-1
 -       Updated version.
 *       Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 3.2.1.2
 -       Updated group.
f4d17450
 *	Mon Apr 6 2015 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.2.1-1
 -	Update to 3.2.1
 *	Tue Nov 25 2014 Divya Thaluru <dthaluru@vmware.com> 3.0.2-1
 -	Initial build. First version