## 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/naipefoundry/gabarito %global commit0 1f3fb39d6449eefa880543f109f33ede0cd4064f %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global commitdate 2020911 %global version0 1.000 %global bumpver 1 %global foundry %{nil} %global fontlicense OFL-1.1 %global fontlicenses OFL.txt #%%global fontdocs *.md #%%global fontdocsex %%{nil} %global common_description %{expand: Gabarito is a light-hearted geometric sans typeface with 6 weights ranging from Regular to Black originally designed for an online learning platform in Brazil.} %global fontfamily Gabarito %global fontsummary Gabarito Fonts %global fonts fonts/ttf/Gabarito*.ttf # %%global fontconfs %%{SOURCE10} %global fontdescription %{expand: %{common_description} variable fonts.} Version: %{version0}%{?bumpver:^%{bumpver}.git%{shortcommit0}} Release: %autorelease -b1 URL: %{forgeurl} Obsoletes: ttf-gabarito <= 1.000 Source0: %{forgeurl}/archive/%{commit0}/gabarito-%{shortcommit0}.tar.gz #Source10: 65-%%{fontpkgname}.conf %fontpkg %prep %autosetup -n gabarito-%{commit0} %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog %autochangelog