%global commit fb73260e86dd301b383cf6cc9ca8e726ef806535 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global ghowner theleagueof %global ghproject junction Version: 0^20140329gitfb73260 Release: 1%{?dist} URL: https://www.theleagueofmoveabletype.com/junction %global foundry LOMT %global fontlicense OFL-1.1 %global fontlicenses OpenFontLicense.markdown %global fontfamily Junction %global fontsummary A humanist sans-serif typeface %global fontdescription %{expand:Junction is a a humanist sans-serif, and the first open-source type project started by The League of Moveable Type. It has been updated (2014) to include additional weights (light/bold) and expanded international support.} %global fonts *.otf %global fontconfs %{SOURCE10} Source0: https://github.com/%{ghowner}/%{ghproject}/archive/%{commit}/%{ghproject}-%{shortcommit}.tar.gz Source10: 60-%{fontpkgname}.xml # https://github.com/theleagueof/junction/issues/16 Source11: update-names-and-foundry.pe BuildRequires: fontforge %fontpkg %prep %setup -q -n %{ghproject}-%{commit} mv 'Open Font License.markdown' OpenFontLicense.markdown mv 'Open Font License FAQ.markdown' OpenFontLicenseFAQ.markdown %build cp %{SOURCE11} . fontforge -script update-names-and-foundry.pe Junction-bold.otf Junction Bold lomt fontforge -script update-names-and-foundry.pe Junction-regular.otf Junction Regular lomt fontforge -script update-names-and-foundry.pe Junction-light.otf Junction Light lomt rm update-names-and-foundry.pe %fontbuild %install %fontinstall %check %fontcheck %fontfiles %doc readme.markdown %doc OpenFontLicenseFAQ.markdown %changelog * Sun Jul 09 2023 Benson Muite - 0^20140329gitfb73260-1 - Add documentation files - Rewrite the full name to match format guidelines of