%global fontname hack %global priority 60 Name: hack-fonts Version: 3.003 Release: 1%{?dist} Summary: A typeface designed for source code License: MIT URL: https://sourcefoundry.org/hack Source0: https://github.com/source-foundry/Hack/releases/Hack-v%{version}-ttf.tar.gz Source1: %{name}.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description %{summary}. %prep %setup -q -n Hack-v%{version} %build # Nothing to do! %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.ttf %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} install -m 0644 -p %{SOURCE1} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} \ %{buildroot}%{_fontconfig_confdir}/%{fontconf} %_font_pkg -f %{fontconf} *.ttf %doc %changelog * Sat Apr 04 2020 Pierguido Lambri - 3.003-1 - First try packaging a font.