Name: saucecodepro-nerd-font Version: 3.5.1 Release: 1%{?dist} Summary: SauceCodePro Nerd Font License: OFL-1.1 URL: https://github.com/ryanoasis/nerd-fonts Source0: %{URL}/releases/download/v%{VERSION}/SourceCodePro.tar.xz BuildArch: noarch BuildRequires: fontpackages-devel %description SauceCodePro Nerd Font %prep %setup -q -c -T mkdir "SauceCodePro" tar -xf %{SOURCE0} -C "SauceCodePro" find "SauceCodePro" -type f \( -iname '*license*' -o -iname '*licence*' -o -iname 'ofl*' -o -iname 'copying*' \) -exec cat {} + > LICENSE test -s LICENSE || { echo "No license text found for SauceCodePro" >&2; exit 1; } %install install -dm 0755 %{buildroot}%{_fontdir} install -pm 0644 "SauceCodePro"/*.[ot]tf %{buildroot}%{_fontdir} %files %license LICENSE %doc "SauceCodePro/README.md" %{_fontdir} %changelog %autochangelog