Name:           nerd-fonts
Version:        3.2.1
Release:        1%{?dist}
Summary:        Iconic font aggregator, collection, & patcher.

License:        MIT License
URL:            https://github.com/ryanoasis/nerd-fonts

Source0:        %{URL}/releases/download/v%{version}/CascadiaCode.tar.xz
Source1:        %{URL}/releases/download/v%{version}/JetBrainsMono.tar.xz
Source2:        %{URL}/releases/download/v%{version}/Mononoki.tar.xz

BuildRequires:  fontpackages-devel
Requires:       fontpackages-filesystem

BuildArch:      noarch

%description
Nerd Fonts patches developer targeted fonts with a high number of glyphs (icons).
Specifically to add a high number of extra glyphs from popular 'iconic fonts' 
shch as Font Awesome, Devicons, Octicons, and others.


%prep
%setup -c -n %{name} -D -a 1 -a 2


%build


%install
%{__install} -d -m755 %{buildroot}%{_datadir}/fonts/nerd
find . -type f -name '*.ttf' -exec install -m644 -t %{buildroot}%{_datadir}/fonts/nerd/ {} \;



%files
%defattr(-,root,root)
%{_datadir}/fonts/nerd


%post
/usr/bin/fc-cache %{_datadir}/fonts/nerd



%changelog
* Sun May 12 2024 User
- Initial