## 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/floriankarsten/space-grotesk %global commit0 03507d024a01282884232081fc6011c09ff4e849 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global commitdate 20210902 %global version0 2.0 %global bumpver 1 %global foundry florian-karsten %global fontlicense OFL-1.1 %global fontlicenses OFL.txt %global fontdocs *.md %global common_description %{expand: Space Grotesk is a proportional sans-serif typeface variant based on Colophon Foundry's fixed-width Space Mono family (2016). Originally designed by Florian Karsten in 2018, Space Grotesk retains the monospace's idiosyncratic details while optimizing for improved readability at non-display sizes. } %global fontfamily Space Grotesk %global fontsummary a proportional variant of the original fixed-width Space Mono family %global fonts fonts/otf/SpaceGrotesk-*.otf %global fontdescription %{expand: %wordwrap -v common_description } Version: %{version0}%{?bumpver:^%{bumpver}.git%{shortcommit0}} Release: %autorelease -b1 URL: %{forgeurl} Source0: %{forgeurl}/archive/%{commit0}/space-grotesk-%{shortcommit0}.tar.gz %fontpkg %prep %autosetup -n space-grotesk-%{commit0} %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog %autochangelog