Re: [Rpm-maint] [rpm-software-management/rpm] Including a file, expanding the macros in it and writing the result to another file? (Discussion #2912)

2024-02-15 Thread ニール・ゴンパ
This should do the trick: ``` cat > expanded

[Rpm-maint] [rpm-software-management/rpm] Including a file, expanding the macros in it and writing the result to another file? (Discussion #2912)

2024-02-15 Thread Daan De Meyer
I'm trying to include a file with macros in it, expand those macros and write the result to another file. My last attempt that doesn't work is the following: ``` echo "%{expand:%include %{SOURCE203}}" > expanded ``` If SOURCE203 contains the following: ``` %{_unitdir}/systemd-coredump.socket