[CMake] How to on multiple RPM packages

Domen Vrankar domen.vrankar at gmail.com
Fri Jan 15 06:28:59 EST 2016


Hm I've accidentally dropped cmake mailing list when replying
before... Sorry about that.

> Im using "bin" and "devel" as component names. I tried next with upper and
> lower case in the properties but no difference.
> it's about what you see in the RPM header using "rpm -qlip name.rpm" ...

Component name changing patch was already applied in git and will be
available in next CMake release.
Until then you could patch your CPackRPM.cmake file (comes with CMake
installation) with this patch:

https://cmake.org/gitweb?p=cmake.git;a=commit;h=c926efa


> a) Also it is documented .... CPACK_RPM_DEVEL_PACKAGE_DESCRIPTION has no
> effect I always get "This is an installer created using CPack
> (https://cmake.org). No additional installation instructions provided."
> b) Same for summary. I always get "NGSelector built using CMake"

It's possible that you are using an older version of CPack that
doesn't support this per component feature. This was introduced in
CPack version 3.2. Before only non component versions of description
of summary were supported.

> c) I cannot specify different groups like "Application" and "Library"?
Fix is the same patch as for name.


> d) Can I get rid of the "-bin" in the RPM file name?
Not at the moment... There are pending bug reports for this. You could
however use above patch to change package name and rename the file
name manually after generation.

Regards,
Domen


More information about the CMake mailing list