Skip to content

Document how to easily use %{uncompress} to expand source archives #4148

@voxik

Description

@voxik

The %{uncompress} macro is nowadays build on top of rpmuncompress, therefore it can be used to expand sources in this way:

%{uncompress: -x %{SOURCE1}}

which is quite neat IMHO. However, it is not easy to defer from the documentation that this works. So the easy thing should be to document this.

The other option might be (if I get correctly how the RPM macros work) to add e.g. the -x as an macro option. Then it should be possible to use even something like:

%uncompress -x %{SOURCE1}

and naturally, this would also meant the -x would get documented as an option of the macro

BTW since I am here, the macro in its documented form does not look very useful. It is not used in Fedora as I can tell. Previously, there at lease used to be this example, but it seems this example is now gone. I wish it was re-instantiated in some form

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions