File caskaydia-code-fonts.spec of Package caskaydia-code-fonts
#
# spec file for package caskaydia-code-fonts
#
# Copyright (c) 2022 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: caskaydia-code-fonts
Version: 2.1.0
Release: 0
Summary: Nerd Fonts patched Cascadia Code font
License: MIT
URL: https://github.com/ryanoasis/nerd-fonts
Source0: https://github.com/ryanoasis/nerd-fonts/releases/download/v%{version}/CascadiaCode.zip
Source1: https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/LICENSE
BuildRequires: fontpackages-devel
BuildRequires: unzip
BuildArch: noarch
%description
Nerd Fonts patched Cascadia Code 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 -q -c
cp %{S:1} ./
%build
%install
mkdir -p %{buildroot}%{_ttfontsdir}/
install -m 0644 'Caskaydia Cove Nerd Font Complete.ttf' %{buildroot}%{_ttfontsdir}
install -m 0644 'Caskaydia Cove Nerd Font Complete Mono.ttf' %{buildroot}%{_ttfontsdir}
%reconfigure_fonts_scriptlets
%files
%license LICENSE
%{_ttfontsdir}
%changelog