From Fedora Project Wiki

No edit summary
(removing draft template)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{draft}}
The current [[Fonts_spec_template_for_multiple_fonts| Complex Font Template]] leaves an unexpanded macro in SRPMS. We propose to take two actions to fix the issue:
 
The current [[Fonts_spec_template_for_multiple_fonts| Complex Font Template]] leaves an unexpanded macro in SRPMS. We propose to take two actions to fix the issue


== Move the macro ==
== Move the macro ==
Line 18: Line 16:
This would mean that existing packages would no longer have the issue and would be effectively "grandfathered".
This would mean that existing packages would no longer have the issue and would be effectively "grandfathered".


[[Category:Packaging guidelines drafts]]
[[Category:Archived packaging guideline drafts]]

Latest revision as of 01:36, 11 July 2010

The current Complex Font Template leaves an unexpanded macro in SRPMS. We propose to take two actions to fix the issue:

Move the macro

 %_font_pkg -n <FAMILY> -f %{fontconf}-<FAMILY>.conf <NAME>*.ttf

Currently is right after the %description which is what causes issues. Moving it after the %clean section matches with the Simple Fonts Template, is where the expansion of the macro would normally live, and fixes the problem.

This will resolve the problem in new packages.

Add a Dummy Macro

Add a "dummy" %_font_pkg macro to redhat-rpm-config which checks to see if it is set, and if not, evaluates to %{nil}. As suggested by Panu

This would mean that existing packages would no longer have the issue and would be effectively "grandfathered".