File material-symbols-variable.spec of Package material-symbols-variable

#
# spec file for package material-symbols-variable
#
# Copyright (c) 2025 mantarimay
#
# 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:           material-symbols-variable
Version:        4.0
Release:        0
Summary:        Material design icons for self-hosted pages
License:        Apache-2.0
URL:            https://github.com/google/material-design-icons
Source1:        %{url}/raw/refs/heads/master/font/MaterialIcons-Regular.ttf
Source2:        %{url}/raw/refs/heads/master/font/MaterialIconsOutlined-Regular.otf
Source3:        %{url}/raw/refs/heads/master/font/MaterialIconsRound-Regular.otf
Source4:        %{url}/raw/refs/heads/master/font/MaterialIconsSharp-Regular.otf
Source5:        %{url}/raw/refs/heads/master/font/MaterialIconsTwoTone-Regular.otf
Source6:        %{url}/raw/refs/heads/master/variablefont/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf
Source7:        %{url}/raw/refs/heads/master/variablefont/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].woff2
Source8:        %{url}/raw/refs/heads/master/variablefont/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].ttf
Source9:        %{url}/raw/refs/heads/master/variablefont/MaterialSymbolsRounded[FILL,GRAD,opsz,wght].woff2
Source10:       %{url}/raw/refs/heads/master/variablefont/MaterialSymbolsSharp[FILL,GRAD,opsz,wght].ttf
Source11:       %{url}/raw/refs/heads/master/variablefont/MaterialSymbolsSharp[FILL,GRAD,opsz,wght].woff2
Source12:       %{url}/raw/refs/heads/master/LICENSE
Source13:       %{url}/raw/refs/heads/master/README.md
BuildRequires:  fdupes
BuildRequires:  fontpackages-devel
BuildArch:      noarch
%reconfigure_fonts_prereq

%description
Material design icons are the official icon set from Google that are designed under the material design guidelines.

%prep
cp %{SOURCE12} .
cp %{SOURCE13} .

%build

%install
ls -lh

install -dm 0755 %{buildroot}%{_ttfontsdir}
install -m644 \
    "%{SOURCE1}" \
    "%{SOURCE2}" \
    "%{SOURCE3}" \
    "%{SOURCE4}" \
    "%{SOURCE5}" \
    "%{SOURCE6}" \
    "%{SOURCE7}" \
    "%{SOURCE8}" \
    "%{SOURCE9}" \
    "%{SOURCE10}" \
    "%{SOURCE11}" \
    %{buildroot}%{_ttfontsdir}

%reconfigure_fonts_scriptlets

%fdupes %{buildroot}

%files
%license LICENSE
%doc README.md
%{_ttfontsdir}

%changelog
openSUSE Build Service is sponsored by