# SPDX-License-Identifier: MIT %global original_name Terminus BuildArch: noarch %global forgeurl https://github.com/ryanoasis/nerd-fonts Version: 3.4.0 %global tag %{lua:t=string.gsub(rpm.expand("version %{version}"), "[%p%s]+", "_");print(t)} %forgemeta %global foundry %{nil} %global commitdate 20250425 %global fontlicense OFL-1.1 %global fontlicenses LICENSE* %global fontdocs *.md # 排除的文档文件 #%%global fontdocsex %%{nil} %global common_description %{expand: Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more } # ==================== 通常子包 (仅通常字体)==================== %global fontfamily1 Terminess Nerd %global fontsummary1 Nerd Font 补丁版 Terminus 字体(包含等宽和比例变体) %global fonts1 TerminessNerdFont-*.ttf %global fontdescription1 %{expand: %{common_description} This package provides the base variant of the Terminess Nerd Font.} # ==================== 等宽子包(仅等宽变体)==================== %global fontfamily2 Terminess Nerd Mono %global fontsummary2 Terminess Nerd Font 等宽(Monospaced)变体 %global fonts2 TerminessNerdFontMono*.ttf %global fontdescription2 %{expand: %{common_description} This package provides the monospaced variant of the Terminess Nerd Font, suitable for code editors and terminals.} # ==================== 比例子包(仅比例变体)==================== %global fontfamily3 Terminess Nerd Propo %global fontsummary3 Terminess Nerd Font 比例(Proportional)变体 %global fonts3 TerminessNerdFontPropo*.ttf %global fontdescription3 %{expand: %{common_description} This package provides the proportional variant of the Terminess Nerd Font, suitable for general-purpose use.} Release: %autorelease -b2 License: %{fontlicense} URL: %{forgeurl} Source0: %{url}/releases/download/v%{version}/%{original_name}.tar.xz Name: terminess Summary: %{fontsummary} %description %wordwrap -v common_description %fontpkg -a %fontmetapkg -z 1,2,3 %prep %autosetup -c %build %fontbuild -a %install %fontinstall -a %check %fontcheck -a %fontfiles -a %changelog %autochangelog