Re: [CMake] CPack: setting multiple RPM pre/post (un)install scripts

2016-05-30 Thread Thomas Teo
Hi Domen, Thanks for that confirmation. While rolling it into the main postinstall script might make sense, I would need to run a different script (or not at all) based on the CMake option flags the user had selected. Thus I'd need to generate multiple versions of the script depending on what

Re: [CMake] CPack: setting multiple RPM pre/post (un)install scripts

2016-05-30 Thread Domen Vrankar
2016-05-30 0:44 GMT+02:00 Thomas Teo : > Hi All, > In building an RPM package, I'd like to set multiple (un)install scripts - > an application specific one which starts services that are installed by the > RPM, and also to call ldconfig so that the shared library list is

Re: [CMake] CPack: setting multiple RPM pre/post (un)install scripts

2016-05-29 Thread Andrew Melo
Hi On Sunday, May 29, 2016, Thomas Teo wrote: > Hi All, > In building an RPM package, I'd like to set multiple (un)install scripts - > an application specific one which starts services that are installed by the > RPM, and also to call ldconfig so that the shared library

[CMake] CPack: setting multiple RPM pre/post (un)install scripts

2016-05-29 Thread Thomas Teo
Hi All, In building an RPM package, I'd like to set multiple (un)install scripts - an application specific one which starts services that are installed by the RPM, and also to call ldconfig so that the shared library list is updated. The CMake/CPack documentation states this is supported (eg