[CMake] CPack rpm (from cmake 2.6.3) and rpm 4.6.0

Dmitry Gerasimov dmitry-gerasimov at yandex.ru
Mon Mar 23 10:09:46 EDT 2009


Hi.

CPack rpm seem to work not correctly on systems with rpm version >=4.6.0 
(like Fedora 10).
Due to rpm changes in 4.6.0 release (http://www.rpm.org/wiki/Releases/4.6.0)
"
%{_topdir} defaults to $(HOME)/rpmbuild/ now, instead of former 
usr/src/redhat/.

Rpm enforces BuildRoot for all packages and ignores the directive in spec.
"

Due to this rpmbuild ignores

%define _rpmdir ${CPACK_RPM_DIRECTORY}
%define _topdir ${CPACK_RPM_DIRECTORY}

set in spec file and looking for files in $(HOME)/rpmbuild/.

Best regards,
Dmitry Gerasimov



More information about the CMake mailing list