Fonts spec template for multiple fonts

Foreword
This template can be used with complex multi-font releases (several font families in one upstream archive):
 * if you intend to package a single font family, use this simpler template;
 * if upstream releases separate fonts in separate archives, do not try to stuff them in a single spec/package, just package them separately.

The template
Name:          %{fontname}-fonts Release:       1%{?dist}

Group:         User Interface/X URL: Source0: Source1:       %{name}-fontconfig.conf

BuildArch:    noarch BuildRequires: fontpackages-devel

%description %common_desc

%package common Summary: Common files for  (documentation…) Requires: fontpackages-filesystem

%description common %common_desc

This package consists of files used by other %{name} packages.

Requires: %{name}-common = %{version}-%{release}

%prep %setup -q

%install rm -fr %{buildroot}

install -m 0755 -d %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir}

%clean rm -fr %{buildroot}

%files common %defattr(0644,root,root,0755)

Notes: