Bug 16963

Summary: [PATCH] Supply macros.dist with %dist and other generic macros
Product: Mageia Reporter: Neal Gompa <ngompa13>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mageia-release-6-0.1.mga6.src.rpm CVE:
Status comment:
Attachments: Patch to generate a dist.macros file and add to mageia-release-common

Description Neal Gompa 2015-10-14 11:43:18 CEST
This enhancement bug filing is to provide a patch to mageia-release that generates a /usr/lib/rpm/macros.d/macros.dist file that provides the following macros:

* %{dist}, defined as .mga6
* %{mageia}, defined as 6
* %{mga6}, defined as 1

These are "generic" comparisons that are globally useful for version checks or whatnot.

Reproducible: 

Steps to Reproduce:
Comment 1 Neal Gompa 2015-10-14 11:45:03 CEST
Created attachment 7124 [details]
Patch to generate a dist.macros file and add to mageia-release-common

Patch attached
Comment 2 Neal Gompa 2015-10-14 11:46:53 CEST
Note that the macros are dynamically generated at build time to match the Mageia version targeted. It just so happens that Cauldron is representing Mageia 6 at the moment. :)
Comment 3 Neal Gompa 2015-10-21 16:27:55 CEST
Fixed in SVN

Status: NEW => RESOLVED
Resolution: (none) => FIXED