## 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/googlefonts/rubik %global commit0 e337a5f69a9bea30e58d05bd40184d79cc099628 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global commitdate 20251112 %global version0 1.0 %global bumpver 1 %global foundry google %global fontlicense OFL-1.1 %global fontlicenses OFL.txt %global fontdocs *.md %global fontdocsex %{fontlicenses} %global common_description %{expand: The Rubik Fonts project was initiated as part of the Chrome CubeLab project. Rubik is a 5 weight Roman + Italic family. Rubik Mono One is paired with Rubik One, a proportionally spaced variation of the design. Rubik supports the Latin, Cyrillic and Hebrew scripts. The Latin and Cyrillic were designed by Philipp Hubert and Sebastian Fischer at Hubert Fischer. The Hebrew was initially designed by Philipp and Sebastian, and then revised by type designer and Hebrew native reader Meir Sadan to adjust proportions, spacing and other design details. Cyrillic was initially designed by Philipp and Sebastian, and then revised and expanded by Cyreal Fonts Team (Alexei Vanyashin and Nikita Kanarev). Exising glyphs were improved, and glyph set was expanded to GF Cyrillic Plus. } %global fontfamily Rubik VF %global fontsummary Google Rubik Variable Fonts %global fonts fonts/variable/Rubik*.ttf # %%global fontconfs %%{SOURCE10} %global fontdescription %{expand: %{common_description} variable fonts.} Version: %{version0}%{?bumpver:^%{bumpver}.git%{shortcommit0}} Release: %autorelease -b2 URL: %{forgeurl} VCS: git:%{url}.git Source0: %{forgeurl}/archive/%{commit0}/rubik-%{shortcommit0}.tar.gz # Source10: 67-%%{fontpkgname}.conf %fontpkg %prep %autosetup -n rubik-%{commit0} %build %fontbuild %install %fontinstall %check %fontcheck %fontfiles %changelog %autochangelog