Re: [Rpm-maint] [rpm-software-management/rpm] Is there a way to dynamically evaluate macro? (#1687)

2021-08-17 Thread Florian Festi
Closed #1687. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/rpm-software-management/rpm/issues/1687#event-5167695363___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] Is there a way to dynamically evaluate macro? (#1687)

2021-08-17 Thread Florian Festi
Yes %setup is only executed after all macros have been expanded. So there is not really a way to do that and relying on $PWD is your best option. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Rpm-maint] [rpm-software-management/rpm] Is there a way to dynamically evaluate macro? (#1687)

2021-05-19 Thread Jan Palus
What I'd like to achieve is to access `%buildsubdir` in `%prep` after `%setup` was called. It appears that RPM first parses and evaluates all macros in `%prep` and only then executes `%setup` which pushes `%buildsubdir`. So my question is there any way to defer macro expansion or is there some