Development/Tasks/Packaging/Policies/Java/JPackage/Macros
From Mandriva Community Wiki
(Redirected from Policies/Java/JPackage/Macros)
Macros
Mandriva specific override macros
How to check what macros to use in jpackage-utils
Since rpm doesn't have an easy way to check for presence of variables/macros in macros files it might be a bit tricky to detect them to avoid that they get redefined.
One way this could be solved is to add a bootstrap option for building jpackage-utils where one checks for macros before adding them to macro file.
example:
... %if %{bootstrap}
- conflict with itself to avoid usage of own macros
BuildConflicts: jpackage-utils %endif ... if %{bootstrap} %if %{!?distsuffix} echo '%distsuffix jpp' > jpackage.bootstrap.macros %endif %if %{!?mkrel} echo %mkrel() %{1}%{distsuffix} %endif %endif

