[CMake] CPack and RPM packages
Eric Noulard
eric.noulard at gmail.com
Fri Mar 4 15:50:36 EST 2011
2011/3/4 Laszlo Papp <djszapi at archlinux.us>:
> On Fri, Mar 4, 2011 at 3:05 PM, Eric Noulard <eric.noulard at gmail.com> wrote:
>> 2011/3/4 Laszlo Papp <djszapi at archlinux.us>:
>>> Hi,
>>>
>>> Can I create an rpm package with cpack in order to not deal with spec files ?
>>
>> Yes you can CPackRPM is meant to do that:
>> http://www.cmake.org/Wiki/CMake:CPackPackageGenerators#RPM_.28Unix_Only.29
>>
>> The fastest path is to try:
>>
>> $ cd /path/to/builddir
>> $ cpack -G RPM
>
> Right, so you are saying it will create the rpm package with no spec
> file reuqested.
Yes.
CPackRPM required some CPACK_RPM_xxxx var def,
however most of them have default values.
The following command will give you the list:
$ cmake --help-module CPackRPM | grep -B 1 -A 1 "Mandatory : YES"
>>> We did not need to put any debian/{changelog,rules,control} files
>>> related implementation into the project so that to build a debian
>>> package for arm with cpack.
>>
>> However are you cross-compiling to arm or do you package natively on arm-linux ?
>
> Well not. I am developing on x86_64 in a cross-compilation way for
> arm, N900, MeeGo.
> http://wiki.meego.com/Developing_in_a_MeeGo_Environment
I do not know that setup and AFAIK CPackRPM has never been used
in a cross-compiling env. so like I said before give it a try and
tell me what happen.
> CPack seems an easier way than OBS if one does not know how to write
> spec files. That is why I started this whole thread whether or not
> cpack is an easy way to generate rpm package for the N900 mobile -
> like previously debian packages with cpack for the same mobile, but
> Maemo5/Fremantle platform - or I need to make some other further
> hackery.
Again CPackRPM has been tested in "native" environnement,
I don't know how it will behave in a chroot ARM Meego image.
Try it, and tell me what happen.
>>> PS: I am not on the list, so please drop me into the 'CC' field.
>>
>> This is usually a bad habitI am even surprised that you can post
>> without being on list.
>> You could subscribe to the list for the duration of your discussion
>> and then un-subscribe afterwards.
>
> I subscribed only for the posting and unsubscribe then immediately
> since I am not interested in other mails.
Seems awkward to me but OK, that's your choice :-]
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list