Bug 16963 - [PATCH] Supply macros.dist with %dist and other generic macros
Summary: [PATCH] Supply macros.dist with %dist and other generic macros
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-14 11:43 CEST by Neal Gompa
Modified: 2015-10-21 16:27 CEST (History)
0 users

See Also:
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 (1.11 KB, patch)
2015-10-14 11:45 CEST, Neal Gompa
Details | Diff

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


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