MantisBT - CMake
View Issue Details
0010363CMakeCPackpublic2010-03-03 17:212010-04-10 05:27
Alex Neundorf 
Eric NOULARD 
normalminoralways
closedfixed 
CMake-2-8 
CMake-2-8 
0010363: CPack: specify compression type for rpm package
E.g. SUSE 11 by default generates lzma-compressed rpm's, which can't be installed e.g. on SUSE 10, since this doesn't know lzma.
To specify the compression type of an rpm, at least under SUSE, the following has to be put in the spec file:

For bzip2:
%define _binary_payload w9.bzdio

for gzip:
%define _binary_payload w9.gzdio

for lzma:
%define _binary_payload w9.lzdio

I've set this using the CPACK_RPM_SPEC_MORE_DEFINE variable.
Maybe this could be supported via something like a CPACK_RPM_COMPRESSION_TYPE
variable ?

Alex
No tags attached.
Issue History
2010-03-03 17:21Alex NeundorfNew Issue
2010-03-03 17:21Alex NeundorfStatusnew => assigned
2010-03-03 17:21Alex NeundorfAssigned To => Eric NOULARD
2010-04-04 15:31Eric NOULARDNote Added: 0020070
2010-04-04 15:42Eric NOULARDNote Added: 0020071
2010-04-10 05:26Eric NOULARDNote Added: 0020119
2010-04-10 05:27Eric NOULARDNote Added: 0020120
2010-04-10 05:27Eric NOULARDStatusassigned => closed
2010-04-10 05:27Eric NOULARDResolutionopen => fixed
2010-04-10 05:27Eric NOULARDFixed in Version => CMake-2-8

Notes
(0020070)
Eric NOULARD   
2010-04-04 15:31   
OpenSUSE is going for lzma
http://opsamericas.com/?p=894 [^]

and Fedora for xz
http://fedoraproject.org/wiki/Features/XZRpmPayloads#XZ_.28LZMA.29_Payloads_in_RPM [^]

this looks like the same LZMA algo but leads to

for lzma:
%define _binary_payload w9.lzdio

and
for xz:
%define _binary_payload w7.xzdio

noted here as a memo.
(0020071)
Eric NOULARD   
2010-04-04 15:42   
Commited to my local tree.
Waiting for git push access to push to git@cmake.org:cmake.git
(0020119)
Eric NOULARD   
2010-04-10 05:26   
Now pushed to master tree
To git@cmake.org:cmake.git
   c558141..fcdbe00 master -> master

CPACK_RPM_COMPRESSION_TYPE
            Mandatory : NO
            Default : -
            May be used to override RPM compression type to be used
            to build the RPM. For example some Linux distribution now default
            to lzma or xz compression whereas older cannot use such RPM.
            Using this one can enforce compression type to be used.
            Possible value are: lzma, xz, bzip2 and gzip.
(0020120)
Eric NOULARD   
2010-04-10 05:27   
A new option to CPackRPM handle this:
         CPACK_RPM_COMPRESSION_TYPE
            Mandatory : NO
            Default : -
            May be used to override RPM compression type to be used
            to build the RPM. For example some Linux distribution now default
            to lzma or xz compression whereas older cannot use such RPM.
            Using this one can enforce compression type to be used.
            Possible value are: lzma, xz, bzip2 and gzip.