#19 how I use templates and convert obsolete fonts macro ?
Closed by sergiomb. Opened by sergiomb.

Hi,

Where I can get help to convert font packages ? , reading https://docs.fedoraproject.org/en-US/packaging-guidelines/FontsPolicy/ I don't understand nothing that is written there , where I find a font packaged with new packages guidelines ? the templates are generated ?

for example https://src.fedoraproject.org/rpms/oxygen-fonts still use the old macros .
I want convert https://pkgs.rpmfusion.org/cgit/nonfree/lpf-mscore-fonts.git/tree/mscore-fonts.spec.in, https://pkgs.rpmfusion.org/cgit/nonfree/lpf-cleartype-fonts.git/tree/cleartype-fonts.spec.in and https://pkgs.rpmfusion.org/cgit/nonfree/lpf-mscore-tahoma-fonts.git/tree/mscore-tahoma-fonts.spec.in


Actually https://docs.fedoraproject.org/en-US/packaging-guidelines/FontsPolicy/#_spec_template_documentation this section explains how the macro works though, maybe also good to see the existing spec files which has already been migrated to new guidelines.

https://src.fedoraproject.org/rpms/dejavu-fonts/blob/rawhide/f/dejavu-fonts.spec
https://src.fedoraproject.org/rpms/madan-fonts/blob/rawhide/f/madan-fonts.spec

cleartype-fonts.spec

can you help in modernize this font package , I tried this weekend without success at least , help me on globals , is this correct ?

%global fonts1            CALIBR*.TTF
%global fontconfs1        61-%{fontname}-calibri.conf
%global fontconfngs1      %{SOURCE10}
%global fontdescription1  %{expand:
%{common_description}
Microsoft Calibri font, part of the ClearType collection made available
in the PowerPointViewer package, still available on the Microsoft website.
}
%fontpkg -a

A few comments on it.

  1. index number must begin from 0 not 1 unless it is intentional.
  2. You don't need to use fontconfngsN. you can simply set %global fontconfs0 %{SOURCE10}. it should works in most cases.

I finally finished
https://pkgs.rpmfusion.org/cgit/nonfree/lpf-cleartype-fonts.git/tree/cleartype-fonts.spec.in

Metadata Update from @sergiomb:
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/i18n/fonts-rpm-macros/issues/19

Please continue any further discussion there.

Metadata