%global project maple-font BuildArch: noarch %global forgeurl https://github.com/subframe7536/maple-font Version: 7.9 %global tag %{lua:t=string.gsub(rpm.expand("version %{version}"), "[%p%s]+", "_");print(t)} %forgemeta %global foundry %{nil} %global commitdate 20251205 %global fontlicense OFL-1.1 %global fontlicenses OFL.txt %global fontdocs README*.md # 排除的文档文件 #%%global fontdocsex %%{nil} %global common_description %{expand: Maple Mono: Open source monospace font with round corner, ligatures and Nerd-Font icons for IDE and terminal, fine-grained customization options.} %global fontfamily Maple Mono %global fontsummary Maple Mono Ligature Variable Fonts %global fonts MapleMono-* %global fontconfs config.json %global fontdescription %{expand: %{common_description} variable fonts.} Name: maple-mono-fonts Release: %autorelease Summary: maple-mono-fonts License: %{fontlicense} URL: %{forgeurl} Source0: %{url}/archive/v%{version}/%{project}-%{version}.tar.gz BuildRequires: %{py3_dist pip} BuildRequires: fontforge %generate_buildrequires %pyproject_buildrequires %description %wordwrap -v common_description %fontpkg %prep %autosetup -n %{project}-%{version} %build python3 build.py %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog %autochangelog