[Rpm-maint] [rpm-software-management/rpm] Document how to easily use `%{uncompress}` to expand source archives (Issue #4148)

Vít Ondruch notifications at github.com
Fri Mar 13 13:23:21 UTC 2026


voxik created an issue (rpm-software-management/rpm#4148)

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](https://github.com/rpm-software-management/rpm/blob/master/docs/man/rpm-macros.7.scd) 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](https://rpm.org/docs/4.20.x/manual/macros#example-of-a-macro) example, but it seems this example is now gone. I wish it was re-instantiated in some form

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4148
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/4148 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260313/de1b2222/attachment.htm>


More information about the Rpm-maint mailing list