%global forgeurl https://github.com/ryanoasis/nerd-fonts Name: nerd-fonts-firacode Version: 3.4.0 Release: 1%{?dist} Summary: FiraCode font patched with programming glyphs from Nerd Fonts BuildArch: noarch License: OFL-1.1-no-RFN URL: %{forgeurl} Source0: %{forgeurl}/releases/download/v%{version}/FiraCode.zip %description FiraCode is a monospaced font with programming ligatures. This version has been patched with additional glyphs from Nerd Fonts, including icons from Font Awesome, Devicons, Octicons, Powerline, and many more. Perfect for terminal emulators and code editors. %prep %autosetup -c %install # Install fonts install -d %{buildroot}%{_datadir}/fonts/%{name} install -m 0644 *.ttf %{buildroot}%{_datadir}/fonts/%{name}/ || true install -m 0644 *.otf %{buildroot}%{_datadir}/fonts/%{name}/ || true %post /usr/bin/fc-cache -f %{_datadir}/fonts/%{name} &>/dev/null || : %postun /usr/bin/fc-cache -f %{_datadir}/fonts/%{name} &>/dev/null || : %files %doc README.md %{_datadir}/fonts/%{name}/ %changelog * Tue Nov 05 2024 Washkinazy - 3.4.0-1 - Initial package for version 3.4.0