CPack unable to create -devel RPM alongside runtime library RPM
On CentOS/RedHat/Fedora, the convention is to provide an RPM for your library that contains the runtime libraries, along with a -devel RPM, which contains the development files (and in the case of CMake, your config .cmake scripts). I am attempting to replicate this behavior with CPack by using component-based installs, by putting all of my headers in a component called DevelopmentFiles and all of my libraries into a component called Libraries. When I enable component-based RPM building with
set(CPACK_RPM_COMPONENT_INSTALL ON)
I get two RPMs out, named something like
mylib-1.0.0-1.x86_64-Libraries.rpm
mylib-1.0.0-1.x86_64-DevelopmentFiles.rpm
however, I would like to have those files be named
mylib-1.0.0-1.x86_64.rpm
mylib-devel-1.0.0-1.x86_64.rpm
Additionally, those two RPMs should have different dependencies, as the -devel RPM should have the runtime library RPM as a dependency and should be dependent on other -devel packages, whereas the runtime library RPM should only be dependent on other runtime library RPMs. Is this possible with CPack? From my research, there is no way to get that naming or dependency customization.