File nerd-fonts-firacode.spec of Package nerd-fonts-firacode
#
# spec file for package nerd-fonts-firacode
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: nerd-fonts-firacode
Version: 3.4.0
Release: 0
Summary: Nerd Fonts patched FiraCode font
License: MIT
Group: System/X11/Fonts
Url: https://github.com/ryanoasis/nerd-fonts
Source: https://github.com/ryanoasis/nerd-fonts/releases/download/v%{version}/FiraCode.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: unzip
BuildArch: noarch
%description
Nerd Fonts patched FiraCode font.
Nerd Fonts is a project that patches developer targeted fonts with a high number of glyphs (icons).
Specifically to add a high number of extra glyphs from popular 'iconic fonts' such as Font Awesome, Devicons, Octicons, and others.
%prep
%setup -c -q
%build
%install
install -dm 0755 %{buildroot}%{_datadir}/fonts/truetype
install -Dm 0644 *.ttf %{buildroot}%{_datadir}/fonts/truetype/
%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%dir %{_datadir}/fonts/truetype/
%{_datadir}/fonts/truetype/*
%post
if [ -x /usr/bin/fc-cache ]
then
/usr/bin/fc-cache || :
fi
%postun
if [ $1 -eq 0 -a -x /usr/bin/fc-cache ]
then
/usr/bin/fc-cache || :
fi
%changelog