Created attachment 1010364 [details] [PATCH] Add %{_variant} macro Description of problem: Recently, fedora-release[-*] was updated so that /etc/os-release would contain a VARIANT= field specifying which (if any) Fedora Product (such as Workstation, Server or Cloud) is installed on the system. This is meant to be used alongside new packaging changes[1] to enable per-product default configuration. To simplify these new packaging drafts, the FPC asked me to create a %{_variant} macro that can be used to retrieve the VARIANT in the spec file (rather than requiring each specfile to implement the awk command in the current[2] version of the draft. See the attached patch for the proposed implementation. [1] https://fedoraproject.org/w/index.php?title=User:Sgallagh/Per-Product_Configuration_Packaging_Draft [2] https://fedoraproject.org/w/index.php?title=User:Sgallagh/Per-Product_Configuration_Packaging_Draft&oldid=408840
Closing this out. A macro isn't really the correct approach here after all.