File github-hubot-sans-fonts.spec of Package github-hubot-sans-fonts
#
# spec file for package github-hubot-sans-fonts
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: github-hubot-sans-fonts
Version: 1.0.1
Release: 0
Summary: A variable font from GitHub
License: OFL-1.1
Group: System/X11/Fonts
URL: https://github.com/mona-sans
Source0: https://github.com/github/hubot-sans/releases/download/v%{version}/Hubot-Sans.zip
Source1: https://github.com/github/hubot-sans/raw/main/LICENSE
Source2: https://github.com/github/hubot-sans/raw/main/README.md
BuildRequires: fontpackages-devel
BuildRequires: unzip
BuildArch: noarch
%reconfigure_fonts_prereq
%description
Hubot Sans is Mona Sans’s robotic sidekick. The typeface is designed with more
geometric accents to lend a technical and idiosyncratic feel—perfect for
headers and pull-quotes. Made together with Degarism.
Hubot Sans is a variable font. Variable fonts enable different variations of a
typeface to be incorporated into one single file, and are supported by all
major browsers.
%prep
%setup -q -n 'Hubot Sans'
cp %{SOURCE1} %{SOURCE2} .
%build
%install
install -dm0755 %{buildroot}%{_ttfontsdir}
pushd OTF
for f in *.otf; do
install -m0644 $f %{buildroot}%{_ttfontsdir}/${f/Hubot-Sans/HubotSans};
done
popd
%files
%license LICENSE
%doc README.md
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.otf
%changelog