%global debug_package %{nil} %global forgeurl https://github.com/ryanoasis/nerd-fonts Name: nerd-fonts-cascadiacode Version: 3.5.1 Release: 2%{?dist} Summary: Cascadia Code font patched with programming glyphs from Nerd Fonts BuildArch: noarch License: OFL-1.1-RFN URL: %{forgeurl} Source0: %{forgeurl}/releases/download/v%{version}/CascadiaCode.zip BuildRequires: unzip Requires(post): fontconfig Requires(postun): fontconfig %description Cascadia Code monospaced font patched with Nerd Fonts icon glyphs. Renamed to CaskaydiaCove per OFL Reserved Font Name requirements. %prep %autosetup -c %install # Install fonts install -d %{buildroot}%{_datadir}/fonts/%{name} # Accept either format, but never produce an empty font package. found=0 for font in *.ttf *.otf; do [ -f "$font" ] || continue install -m 0644 "$font" %{buildroot}%{_datadir}/fonts/%{name}/ found=1 done [ "$found" -eq 1 ] %post /usr/bin/fc-cache -f %{_datadir}/fonts/%{name} &>/dev/null || : %postun /usr/bin/fc-cache -f %{_datadir}/fonts/%{name} &>/dev/null || : %files %{_datadir}/fonts/%{name}/ %changelog * Sun Oct 25 2026 Washkinazy - 3.5.1-2 - Require at least one font file and report installation failures * Sat Aug 22 2026 Automated Update - 3.5.1-1 - Update to 3.5.1 * Mon Aug 03 2026 Automated Update - 3.5.0-1 - Update to 3.5.0 * Wed Jan 08 2025 Washkinazy - 3.4.0-2 - Add unzip BuildRequires - Add fontconfig Requires for proper font cache handling - Remove non-existent README.md from files * Tue Nov 05 2024 Washkinazy - 3.4.0-1 - Initial package for version 3.4.0