## 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 BuildArch: noarch %global forgeurl https://github.com/ThomasJockin/readexpro %global commit0 563dfbb36ae45e52ec50829b016ce724ac2fca70 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global commitdate 20250214 %global version0 %{commitdate} %global bumpver 1 %global foundry Google %global fontlicense OFL-1.1 %global fontlicenses OFL.txt %global fontdocs *.md #%%global fontdocsex %%{nil} %global common_description %{expand: Readex is the world-script expansion of the font Lexend designed by Thomas Jockin and Nadine Chahine. Readex currently supports Latin and Arabic. Lexend is a variable typeface designed by Bonnie Shaver-Troup and Thomas Jockin in 2018. Applying the Shaver-Troup Individually Optimal Text Formation Factors, studies have found readers instantaneously improve their reading fluency. This font is based on the Quicksand project from Andrew Paglinawan, initiated in 2008. Quicksand was improved in 2016 by Thomas Jockin for Google Fonts. Thomas modified Quicksand for the specialized task of improving reading fluency in low-proficiency readers (including those with dyslexia.) } # ================================================================= %global fontfamily1 Readex Pro %global fontsummary1 Readex Pro is the world-script expansion of Lexend. Lexend is a variable font empirically shown to significantly improve reading-proficiency. %global fonts1 fonts/ttf/ReadexPro-*.ttf # %%global fontconfs1 %%{SOURCE10} %global fontdescription1 %{expand: %{common_description} Readex Pro fonts.} # ================================================================= %global fontfamily2 Readex Pro VF %global fontsummary2 Readex Pro is the world-script expansion of Lexend. Lexend is a variable font empirically shown to significantly improve reading-proficiency. %global fonts2 fonts/variable/Readexpro*.ttf # %%global fontconfs2 %%{SOURCE10} %global fontdescription2 %{expand: %{common_description} Readex Pro variable fonts.} License: %{fontlicense} Version: %{version0}%{?bumpver:^%{bumpver}.git%{shortcommit0}} Release: %autorelease -b2 URL: %{forgeurl} Source0: %{forgeurl}/archive/%{commit0}/readexpro-%{shortcommit0}.tar.gz # Source10: 65-%%{fontpkgname}.conf Name: readex-pro-fonts Summary: %{fontsummary1} %description %wordwarp -v common_description %fontpkg -a %fontmetapkg %prep %autosetup -n readexpro-%{commit0} %build %fontbuild -a %install %fontinstall -a %check %fontcheck -a %fontfiles -a %changelog %autochangelog