Name: googlesanscode-nerd-font Version: 3.5.1 Release: 1%{?dist} Summary: GoogleSansCode Nerd Font License: OFL-1.1 URL: https://github.com/ryanoasis/nerd-fonts Source0: %{URL}/releases/download/v%{VERSION}/GoogleSansCode.tar.xz BuildArch: noarch BuildRequires: fontpackages-devel %description GoogleSansCode Nerd Font %prep %setup -q -c -T mkdir "GoogleSansCode" tar -xf %{SOURCE0} -C "GoogleSansCode" find "GoogleSansCode" -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 GoogleSansCode" >&2; exit 1; } %install install -dm 0755 %{buildroot}%{_fontdir} install -pm 0644 "GoogleSansCode"/*.[ot]tf %{buildroot}%{_fontdir} %files %license LICENSE %doc "GoogleSansCode/README.md" %{_fontdir} %changelog %autochangelog