## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # SPDX-License-Identifier: MIT %global forgeurl https://github.com/end-4/google-sans-flex %global commit0 251aa5abd30496368f634e54ce2a508fe5a2fdfa %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global commitdate 20251118 %global version0 %{commitdate} %global bumpver 1 %global foundry Google %global fontlicense OFL-1.1 %global fontlicenses LICENSE %global fontdocs *.md # %%global fontdocsex %%{nil} %global common_description %{expand: 开源 Google Sans Flex 字体,用户可免费在 Google Fonts 平台下载及使用该字体,包括商业用途。} %global fontfamily Sans Flex VF %global fontsummary Google Sans Flex Variable Fonts %global fonts GoogleSansFlex-Variable*.ttf # %%global fontconfs %%{SOURCE10} %global fontdescription %{expand: %{common_description} variable fonts.} Version: %{version0}%{?bumpver:^%{bumpver}.git%{shortcommit0}} Release: %autorelease -b1 URL: %{forgeurl} Source0: %{forgeurl}/archive/%{commit0}/google-sans-flex-%{shortcommit0}.tar.gz # Source10: 65-%%{fontpkgname}.conf %fontpkg %prep %autosetup -n google-sans-flex-%{commit0} %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog %autochangelog