# SPDX-License-Identifier: MIT %global original_name JetBrainsMono 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 JetBrains %global commitdate 20250425 %global fontlicense OFL-1.1 %global fontlicenses OFL.txt %global fontdocs README.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 } # ==================== Regular ==================== %global fontfamily1 Mono Nerd %global fontsummary1 JetBrains Mono Nerd Font 补丁版 Terminus 字体 %global fonts1 JetBrainsMonoNerdFont-*.ttf %global fontpkgheaders1 %{expand: Obsoletes: JetBrainsMonoNerdFont-Regular <= %{version} } %global fontdescription1 %{expand: %{common_description} This package provides the base variant of the JetBrains Mono Nerd Font.} # ==================== 等宽子包(仅等宽变体)==================== %global fontfamily2 Mono Nerd Mono1 %global fontsummary2 JetBrains Mono Nerd Font 等宽(Monospaced)变体 %global fonts2 JetBrainsMonoNerdFontMono-*.ttf %global fontdescription2 %{expand: %{common_description} This package provides the monospaced variant of the JetBrains Mono Nerd Font, suitable for code editors and terminals.} # ==================== 比例子包(仅比例变体)==================== %global fontfamily3 Mono Nerd Propo %global fontsummary3 JetBrains Mono Nerd Font 比例(Proportional)变体 %global fonts3 JetBrainsMonoNerdFontPropo-*.ttf %global fontdescription3 %{expand: %{common_description} This package provides the proportional variant of the JetBrains Mono Nerd Font, suitable for general-purpose use.} # ==================== Regular ==================== %global fontfamily4 Mono Nerd NL %global fontsummary4 JetBrains Mono no ligatures Nerd Font 补丁版 Terminus 字体 %global fonts4 JetBrainsMonoNLNerdFont-*.ttf %global fontdescription4 %{expand: %{common_description} This package provides the base variant of the JetBrains Mono Nerd Font.} # ==================== 等宽子包(仅等宽变体)==================== %global fontfamily5 Mono Nerd Mono1 NL %global fontsummary5 JetBrains Mono no ligatures Nerd Font 等宽(Monospaced)变体 %global fonts5 JetBrainsMonoNLNerdFontMono-*.ttf %global fontdescription5 %{expand: %{common_description} This package provides the monospaced variant of the JetBrains Mono Nerd Font, suitable for code editors and terminals.} # ==================== 比例子包(仅比例变体)==================== %global fontfamily6 Mono Nerd Propo NL %global fontsummary6 JetBrains Mono no ligatures Nerd Font 比例(Proportional)变体 %global fonts6 JetBrainsMonoNLNerdFontPropo-*.ttf %global fontdescription6 %{expand: %{common_description} This package provides the proportional variant of the JetBrains Mono Nerd Font, suitable for general-purpose use.} Release: %autorelease -b1 License: %{fontlicense} URL: %{forgeurl} Source0: %{url}/releases/download/v%{version}/%{original_name}.tar.xz Name: jetbrains-mono-nf-fonts Summary: Nerd Font 补丁版 Terminus 字体 %description %wordwrap -v common_description %fontpkg -a %fontmetapkg -z 1,2,3 %global nlmetasummary All the no ligatures font packages, generated from %{original_name}, Latin-Greek-Cyrillic subset %global nlmetadescription %{expand: This meta-package installs all the no ligatures font packages, generated from the %{original_name} source package, in a version restricted to coverage of Latin, Greek and Cyrillic. } %fontmetapkg -n jetbrains-mono-nf-nl-fonts-all -z 4,5,6 -s nlmetasummary -d nlmetadescription %prep %autosetup -c %build %fontbuild -a %install %fontinstall -a %check %fontcheck -a %fontfiles -a %changelog %autochangelog