[CMake] CPack RPM : support for custom user spec file and post/pre install scripts

Florent Lagaye florent.lagaye at inrialpes.fr
Mon May 11 11:21:13 EDT 2009


Eric Noulard a écrit :
> 2009/5/11 Florent Lagaye <florent.lagaye at inrialpes.fr>:
>   
>> Eric Noulard a écrit :
>>     
>>> Hi CPack RPM user,
>>>
>>> I did implement a new feature in CPack RPM generator which:
>>>
>>> 1) gives control of post/pre (un)install script of the RPM spec files
>>> 2) supports user provided spec file.
>>>
>>> Any interested people should have a look at the tracker which contains
>>> both a patch against CMake-2-6 branch or a drop-in replacement of
>>> CPackRPM.cmake.
>>>
>>> http://public.kitware.com/Bug/view.php?id=8988
>>>
>>> ( the other previous patch:
>>>  http://public.kitware.com/Bug/view.php?id=8967
>>>  may be applied too, they are non-overlapping)
>>>
>>>
>>>       
>> Thanks Erk,
>>
>> This patch indeed saved my day !
>>     
>
> Nice to ear that.
>
> What part of the patch did you use?
>
> a) The custom spec file
> or
> b ) CPACK_RPM_XXX added var?
>
>
>
>   
I used the CPACK_RPM_XXX method (much easier to write than a custom spec)

Now, maybe there could be the same thing for CPACK_DEB package 
generation ... Just an idea


Again, thanks a lot !
Florent.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090511/45f54e71/attachment-0001.htm>


More information about the CMake mailing list