[CMake] CPack RPM: how to specify the compression type ?

Eric Noulard eric.noulard at gmail.com
Tue Mar 2 03:00:58 EST 2010


2010/3/1 Alexander Neundorf <a.neundorf-work at gmx.net>:
> Hi,
>
> I'm not sure this is actually possible, but I'd like to build a rpm on a SUSE
> 11.1 machine, which can also be installed on a SUSE 10.1 machine.

Beside the compression type problem it's not guaranted that
dependencies found in 11.1 will be backward compatible with the one
found in 10.1.
(libc or any other dynamic lib dependencies) but I guess you already know that.
You should be building something static or self-contained right?

> The problem is that the rpm generated on the 11.1 machine is lzma-compressed,
> but this is not supported on the 10.1 machine.
>
> So, is it possible to tell rpmbuild which compression type to use ?

I don't know if it's possible at all :-(
I would expect this to be either an extra rpmbuild option or a
specific spec file directive.

Would you try to launch (on OpenSuSE 11.1)

rpmbuild --showrc

and see whether if there is some lzma related default parameters in there.

I'll have a look tonight on my OpenSuSE virtual machine tonight too.

> If so, is this already supported by the rpm generator (doesn't seem so) ?

RPM generator does not support custom rpmbuild parameter
but it support custom spec file so depending on the solution (if it exists)
it may already be possible or not  :-)

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list