# RPM macros for font packages.
#
# © 2008-2009 Nicolas Mailhot <nim at fedoraproject dot org>
# adapted for ALTLinux by Igor Vlasenko <viy>

## Default directories

# Font installation directory root
%_fontbasedir %{_datadir}/fonts

%_fontstem %{?fontname:%{fontname}}%{?!fontname:%{name}}
# Actual font installation directory
%_fontdir %{_fontbasedir}/%{_fontstem}

# Master fontconfig configuration directory
# Only needed to avoid a circular directory dependency with the fontconfig
# package — you should *not* use this
%_fontconfig_masterdir   %{_sysconfdir}/fonts

# Fontconfig directory for active configuration snippets
%_fontconfig_confdir     %{_sysconfdir}/fonts/conf.d

# Fontconfig configuration template directory
# Templates are activated by symlinking in _fontconfig_confdir
%_fontconfig_templatedir %{_datadir}/fontconfig/conf.avail

