Simple fonts spec template

Foreword
This template can be used with simple font releases (one font family in one upstream archive):
 * if you're unlucky enough upstream released several font families in a single archive, use this less simple 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 Requires:     fontpackages-filesystem

%prep %setup -q

%install rm -fr %{buildroot}

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

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

install -m 0644 -p %{SOURCE1} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}

%clean rm -fr %{buildroot}

Notes: