[CMake] Fwd: CPack : RPM : architecture in the name

Eric Noulard eric.noulard at gmail.com
Fri Mar 16 04:53:34 EDT 2012


Retransmiyt without attached file which is blocked because it's too big


---------- Forwarded message ----------
From: Eric Noulard <eric.noulard at gmail.com>
Date: 2012/3/16
Subject: Re: [CMake] CPack : RPM : architecture in the name
To: a.neundorf-work at gmx.net
Cc : cmake at cmake.org, Barth <barthelemy.von.haller at cern.ch>


2012/3/15, Alexander Neundorf <a.neundorf-work at gmx.net>:
> On Thursday 15 March 2012, Barth wrote:
>> Dear all,
>>
>> I found a mail in the archives discussing the naming of RPMs (30 dec.
>> 2009). Indeed, a standard RPM name contains the architecture and not
>> "Linux".
>>
>> I am wondering if it is possible to do it now ? I use CMake 2.8.6. I still
>> get an error when setting CPACK_RPM_PACKAGE_ARCHITECTURE but is there
>> another way to achieve this ?

CPACK_RPM_PACKAGE_ARCHITECTURE is not used for the RPM package name
but for putting the appropriate value in the spec file.

The appropriate value for this is usually correctly guessed by
rpmbuild (used by CPackRPM)
but this var may be set to "noarch" if you know that the RPM is not depending
on any arch. Setting this var to any other value may produce unexpected result.

> I append the architecture string simply to CPACK_SYSTEM_NAME. Not sure
> whether
> there is a better way.

The main var to choose the package file name is CPACK_PACKAGE_FILE_NAME :
the default value for this variable is:
${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}

the default value of CPACK_SYSTEM_NAME is CPACK_SYSTEM_NAME
but you can set it to whatever value you want like Alex does.

All CPack variables should be documented in the next CPack release.
I join to this mail the current doc from git master.

CPack package naming is currently evolving to be more flexible in the future
see: http://public.kitware.com/Bug/view.php?id=12997

--
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list