[Rpm-maint] Building for older platforms
Panu Matilainen
pmatilai at laiskiainen.org
Sat Aug 15 16:18:18 UTC 2009
On Sat, 15 Aug 2009, Axel Thimm wrote:
> Hi,
>
> is there a way to revert at rpmbuild time to non-sha256 and
> xz-payload, so the resulting package is valid on older platforms?
> E.g. some magic --define or similar that will make src.rpm packages
> built on F12 be installable on say RHEL3?
Sure, both the hash algorithm and payload are just macro configuration. In
case of Fedora these are set in redhat-rpm-config, and can be overridden
with --define or other macro config overriding the Fedora supplied
defaults.
IIRC F12 only changes the payload compression for binary, not source
packages so you shouldn't have to fiddle with that but the macros and
the upstream defaults (compatible with RHEL 3 and even older) are as
follows.
Payload compression with gzip:
%_source_payload w9.gzdio
%_binary_payload w9.gzdio
Use md5 for file hash algorithm:
%_source_filedigest_algorithm 1
%_binary_filedigest_algorithm 1
- Panu -
More information about the Rpm-maint
mailing list