Re: [Rpm-maint] [rpm-software-management/rpm] RFE: allow setting rpm variable, named with other variables (#960)

2019-12-02 Thread nim-nim
Closed #960. -- 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/960#event-2846800783___ Rpm-maint mailing list

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: allow setting rpm variable, named with other variables (#960)

2019-12-02 Thread nim-nim
@mlschroe Thank you that works (even if it’s not too intuitive) Unfortunately the end result did not work out, due to the usual differences in evaluation time between the rpm and shell layer :( So I guess it’s back to doing things in the wrong section, or using a file to pass data, for me. --

Re: [Rpm-maint] [rpm-software-management/rpm] RFE: allow setting rpm variable, named with other variables (#960)

2019-12-02 Thread Michael Schroeder
Wouldn't `%expand` work here? (Note that `suffix` is already used in rpm...) ``` %{expand:%%global something%{suff} value} ``` -- 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] RFE: allow setting rpm variable, named with other variables (#960)

2019-12-01 Thread nim-nim
I’d like to be able to declare rpm variables, with a name constructed from other rpm variables ```rpmspec %global something%{suffix} value ``` Because I need to pass info from `%build` to `%install`, and `%build` may execute the same operation for multiple subpackages. The current way to do