On 2025-11-06 11:03, Zbigniew Jędrzejewski-Szmek wrote:
On Thu, Nov 06, 2025 at 06:34:05AM +0200, Tomi Lähteenmäki wrote:
4 Nov 2025 14.44.00 Neal Gompa <[email protected]>:

> This has been a thing already since RPM 4.20.
>
> You can use %setup/%autosetup -C to have it automatically handle the
> directory for you.
>
> See the notes here:
> https://rpm.org/releases/4.20.0#spec--package-building

I don't see it mentioned in Fedora Packaging guidelines about %autosetup [1]
nor in RPM documentation [2] which is linked as further documentation.
Should we have this documented somewhere?

We don't actually have any place where the question of directory naming
is discussed in the guidelines. The tutorials [1,2] use plain %autosetup because the tarball uses a good name. And in the main docs [3] %forgesetup is used. Should the recommendation for %forgesetup be dropped and replaced
by plain '%autosetup -C' ?

I can make PR to add some notes/examples of the "bad" case just need to figure out what would be the best place.

If I understood correctly this comment [1], with %forgeautosetup no additional flags are needed?

-Tomi

[1] https://github.com/rpm-software-management/rpm/issues/2664#issuecomment-1874393471
--
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to