File google-roboto-serif-fonts.spec of Package google-roboto-serif-fonts

#
# spec file for package google-roboto-serif-fonts
#
# Copyright (c) 2022 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:           google-roboto-serif-fonts
Version:        1.005
Release:        0
Summary:        Serif typeface designed for interfaces and immersive reading
License:        OFL-1.1
Group:          System/X11/Fonts
URL:            https://fonts.google.com/specimen/Roboto+Serif
Source0:        https://github.com/googlefonts/roboto-serif/archive/refs/tags/v%{version}.zip/roboto-serif.zip
Source1:        https://raw.githubusercontent.com/googlefonts/roboto-serif/main/OFL.txt
Source2:        google-roboto-serif.metainfo.xml
BuildRequires:  fontpackages-devel
BuildRequires:  unzip
%reconfigure_fonts_prereq
BuildArch:      noarch

%description
Roboto Serif is a serif typeface designed to work alongside Roboto for interfaces and immersive reading, commissioned by Google from Commercial Type. 
Designed from the ground up as a variable font, Roboto Serif features a full range of weights, widths from condensed to extended, and optical sizes from micro to large display.

%prep
unzip -j -o %{S:0}
cp %{S:1} .

%build

%install
mkdir -p %{buildroot}%{_ttfontsdir}
install -m 0644 *.ttf %{buildroot}%{_ttfontsdir}/

# install metainfo
install -m 0755 -d %{buildroot}%{_datadir}/metainfo
install -m 0644 -p %{S:2} %{buildroot}%{_datadir}/metainfo

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%license OFL.txt
%{_datadir}/metainfo
%{_ttfontsdir}

%changelog
openSUSE Build Service is sponsored by