[cmake-developers] CMake > Build RPM for Centos/RHEL

Jean Audibert jaudibert at euronext.com
Mon Jun 15 18:57:16 EDT 2015


Hi,

On my Continuous Integration (Jenkins), I'm creating a job to build (and provide) the latest version of CMake.
Bill Hoffman kindly answered to my email and helped me to build the RPM.

Here is my script:

$ VERSION=3.2.2
$ RPM_RELEASE=0.el6
$ #
$ wget http://www.cmake.org/files/v3.2/cmake-${VERSION}.tar.gz
$ tar -xf cmake-*.tar.gz
$ cd cmake-${VERSION}
$ ./configure --prefix=/usr/local
$ gmake
$ ./bin/cpack -G RPM -D CPACK_RPM_PACKAGE_RELEASE=${RPM_RELEASE}


I have few questions:

1. What are the requirements/build procedure for the actual distro?

2. Is there a way to generate a RPM with "standard" name:
	I mean, something like:  cmake-3.2.3-1.el6.x86_64.rpm
	Instead of:  cmake-3.2.3-Linux-x86_64.rpm

3. I tried what I built, but:
	CMake Error: Could not find CMAKE_ROOT !!!
	CMake has most likely not been installed correctly.
	Modules directory not found in
	/usr/share/cmake-3.2
	CMake Error: Error executing cmake::LoadCache(). Aborting.

	
	Problem is that the created directory exists but it can't be read because of permissions: 	drwxr-x---.


In advance, many thanks for your time and your help,

Jean

_________________________________________________________________

This message may contain confidential information and is intended for specific recipients unless explicitly noted otherwise. If you have reason to believe you are not an intended recipient of this message, please delete it and notify the sender. This message may not represent the opinion of Euronext N.V. or any of its subsidiaries or affiliates, and does not constitute a contract or guarantee. Unencrypted electronic mail is not secure and the recipient of this message is expected to provide safeguards from viruses and pursue alternate means of communication where privacy or a binding message is desired.



More information about the cmake-developers mailing list