File github-mona-sans-fonts.spec of Package github-mona-sans-fonts

#
# spec file for package github-mona-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-mona-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/mona-sans/releases/download/v%{version}/MonaSans.zip
Source1:        https://github.com/github/mona-sans/raw/main/LICENSE
Source2:        https://github.com/github/mona-sans/raw/main/README.md
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
A strong and versatile typeface, designed together with Degarism and inspired
by industrial-era grotesques. Mona Sans works well across product, web, and
print. Made to work well together with Mona Sans’s sidekick, Hubot Sans.

Mona 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, allowing for performance benefits and granular design control
of the typeface’s weight, width, and slant.

%prep
%setup -q -n 'Mona Sans'
cp %{SOURCE1} %{SOURCE2} .

%build

%install
install -dm0755 %{buildroot}%{_ttfontsdir}
pushd OTF
for f in *.otf; do
	install -m0644 $f %{buildroot}%{_ttfontsdir}/${f/Mona-Sans/MonaSans};
done
popd

%files
%license LICENSE
%doc README.md
%dir %{_ttfontsdir}
%{_ttfontsdir}/*.otf

%changelog
openSUSE Build Service is sponsored by