Bug 1208689 - New %{_variant} macro
Summary: New %{_variant} macro
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Festi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-02 20:51 UTC by Stephen Gallagher
Modified: 2015-04-16 19:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-16 19:38:58 UTC
Type: Bug


Attachments (Terms of Use)
[PATCH] Add %{_variant} macro (799 bytes, patch)
2015-04-02 20:51 UTC, Stephen Gallagher
no flags Details | Diff

Description Stephen Gallagher 2015-04-02 20:51:52 UTC
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

Comment 1 Stephen Gallagher 2015-04-16 19:38:58 UTC
Closing this out. A macro isn't really the correct approach here after all.


Note You need to log in before you can comment on or make changes to this bug.