File sarasa-mono-sc-nerd-fonts.spec of Package sarasa-mono-sc-nerd-fonts
#
# spec file for package sarasa-mono-sc-nerd-fonts
#
# Copyright (c) 2021 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/
#
%define prj_name Sarasa-Mono-SC-Nerd
Name: sarasa-mono-sc-nerd-fonts
Version: 2.1
Release: 0
Summary: Sarasa Mono SC with Nerd fonts patch
License: OFL-1.1
Group: System/X11/Fonts
URL: https://github.com/laishulu/Sarasa-Mono-SC-Nerd
Source: %{prj_name}-%{version}.tar.xz
BuildRequires: fontpackages-devel
Provides: scalable-font-zh-CN
Provides: scalable-font-zh-SG
Provides: locale(zh_CN;zh_SG)
BuildArch: noarch
%reconfigure_fonts_prereq
%description
Sarasa Mono SC + Nerd icon font library. The width of Chinese and English is
perfect 2:1, and the length and width of the icons have been adjusted so that
there will be no alignment problems.
It is especially suitable as a terminal font.
%prep
%setup -q -n %{prj_name}-%{version}
%build
%install
%__install -Dm 0644 -t %{buildroot}%{_ttfontsdir} *.ttf
%reconfigure_fonts_scriptlets -c
%files
%doc README.md
%{_ttfontsdir}/*.ttf
%dir %{_ttfontsdir}
%changelog