--- On Thu, 3/25/10, Roland Gruber <post@xxxxxxxxxxxxxxx> wrote: > From: Roland Gruber <post@xxxxxxxxxxxxxxx> > Subject: Compress RPM package with bz2 > To: rpm-list@xxxxxxxxxxxxx > Date: Thursday, March 25, 2010, 9:31 AM > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I am looking for an option to compress the RPM package when > building > with rpmbuild (4.7.2). I found notes that bz2 is supported > but there is > no commandline option for compression in rpmbuild? My > internet searches > also did not result in a solution. > > Is it possible at all to set another compression method > when building > the RPM? My RPM packages are about 30% bigger than the > Debian ones. You can define %_binary_payload and/or _source_payload Have a look into /usr/lib/rpm/macros: # Compression type and level for source/binary package payloads. # "w9.gzdio" gzip level 9 (default). # "w9.bzdio" bzip2 level 9. # "w7.xzdio" xz level 7, xz's default. # "w7.lzdio" lzma-alone level 7, lzma's default # #%_source_payload w9.gzdio #%_binary_payload w9.gzdio Valery > > Thanks in advance for your help. > > > - -- > > Best regards > > Roland > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkurEV4ACgkQq/ywNCsrGZ4kswCfdOroyjJhXmrabYEE0ZjsXJud > HOMAnAgYyUN8B51v11Ep3n4BhE5o+G0M > =7nwg > -----END PGP SIGNATURE----- > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxxxxx > http://lists.rpm.org/mailman/listinfo/rpm-list > _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxxxxx http://lists.rpm.org/mailman/listinfo/rpm-list