# SPDX-License-Identifier: MIT ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global source_name material-design-icons BuildArch: noarch %global forgeurl https://github.com/google/material-design-icons %global commit0 bb04090f930e272697f2a1f0d7b352d92dfeee43 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %global commitdate 20250919 %global _version 4.0.0 %global bumpver 1 Version: %{_version}%{?bumpver:^%{bumpver}.git%{shortcommit0}} %global tag %{lua:t=string.gsub(rpm.expand("version %{version}"), "[%p%s]+", "_");print(t)} %forgemeta %global foundry google %global fontlicense Apache-2.0 %global fontlicenses LICENSE* %global fontdocs *.md # 排除的文档文件 #%%global fontdocsex %%{nil} %global common_description %{expand: These icons were built/designed as variable fonts first (based on the 24 px designs from Material Icons). There are three separate Material Symbols variable fonts, which also have static icons available (but those do not have all the variations available, as that would be hundreds of styles)} %global fontsummary Material Design icons by Google (Material Symbols) # ==================== subpack of Outlined ==================== %global fontfamily1 Material Symbols Outlined VF %global fontsummary1 %{fontsummary} %global fonts1 variablefont/MaterialSymbolsOutlined*.ttf %global fontdescription1 %{expand: %{common_description} This package provides the Outlined variant of the Material Symbols Font.} # ==================== subpack of Rounded ==================== %global fontfamily2 Material Symbols Rounded VF %global fontsummary2 %{fontsummary} %global fontpkgheader2 %{expand: Obsoletes: google-material-design-vf-rounded-fonts <= %{version}-%{release} } %global fonts2 variablefont/MaterialSymbolsRounded*.ttf %global fontdescription2 %{expand: %{common_description} This package provides the Rounded variant of the Material Symbols Font.} # ==================== subpack of Sharp ==================== %global fontfamily3 Material Symbols Sharp VF %global fontsummary3 %{fontsummary} %global fonts3 variablefont/MaterialSymbolsSharp*.ttf %global fontdescription3 %{expand: %{common_description} This package provides the Rounded variant of the Material Symbols Font.} Release: %autorelease -b1 License: %{fontlicense} URL: %{forgeurl} Source0: %{forgeurl}/archive/%{commit0}/%{source_name}-%{shortcommit0}.tar.gz Name: material-symbols-vf-fonts Summary: %{fontsummary} %description %wordwrap -v common_description %fontpkg -a %fontmetapkg -z 1,2,3 %prep %autosetup -n %{source_name}-%{commit0} %build %fontbuild -a %install %fontinstall -a %check %fontcheck -a %fontfiles -a %changelog %autochangelog