[CMake] RPM for CPack?

Eric Noulard eric.noulard at gmail.com
Thu Aug 2 09:23:39 EDT 2007


2007/8/2, Christian Convey <christian.convey at gmail.com>:
> I've coded my own solution for now to get Debians built, but was
> hoping to move to CPack 2.6 once it's released.
>
> But now I'm feeling some pressure to build RPM package as well.

The full packager pressure :))

> Does anyone know: does CPack 2.6 not support RPMs for some major
> technical reason, or has just no one had the time yet to make an RPM
> generator?

I don't know for RPM support in CPack
but the thing I know is that you may easily
build RPM (source or binary) using CPack plus RPMTools macro:
http://www.cmake.org/Wiki/CMakeUserUseRPMTools

This works only on linux platform where "rpmbuild" command is available.

I wrote this macro because we needed the feature and I would rather
do it this way rather than adding a CPack generator.
This was my choice because it requires less work and I find it more
portable to rely on potentially distribution specific RPM tools.

If you have trouble with the macro do not hesitate to ask for
explanation and/or send patched version either on the list or the wiki

-- 
Erk


More information about the CMake mailing list