RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm on OSX Lion

From: Anders F Björklund <afb@rpm5.org>
Date: Mon 26 Mar 2012 - 20:17:00 CEST
Message-Id: <38D6D340-472B-4667-9049-B17A762BD753@rpm5.org>
Jeffrey Johnson:

>> [...]
>> The .src.rpm format is somewhat troublesome to port, but bundled
>> rpm2cpio.sh and extracted the tarball in a post-extract {} step.
> [...]
> But if it gets to be too big a hassle, I'll pop out the tar ball and included
> detached signature whenever you wish.

Basically it's only troublesome because there is no built-in support
for the .src.rpm format, while there is for the .tar.gz. format...

But it was not a big deal to add it, to the "extract" phase:

extract.suffix          .src.rpm
extract.cmd             ${filespath}/rpm2cpio.sh
extract.pre_args        ""
extract.post_args       "| cpio -dvim"

post-extract {
        system -W ${workpath} "${portutil::autoconf::tar_command} -xzf rpm-${version}.tar.gz"

So for MacPorts it can remain in that format, if you prefer.

Received on Mon Mar 26 20:17:09 2012
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.