# 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).} # ==================== subpack of Outlined ==================== %global fontfamily1 Material Symbols VF Outlined %global fontsummary1 Material Design icons with Outline style. %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 VF Rounded %global fontsummary2 Material Design icons with Rounded style. %global fontpkgheader2 %{expand: Obsoletes: google-material-design-vf-rounded-fonts <= %{version}-%{release} Obsoletes: ttf-material-symbols-variable <= %{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 VF Sharp %global fontsummary3 Material Design icons with Sharp style. %global fonts3 variablefont/MaterialSymbolsSharp*.ttf %global fontdescription3 %{expand: %{common_description} This package provides the Rounded variant of the Material Symbols Font.} Release: %autorelease -b2 License: %{fontlicense} URL: %{forgeurl} Source0: %{forgeurl}/archive/%{commit0}/%{source_name}-%{shortcommit0}.tar.gz Name: google-material-symbols-vf-fonts Summary: Material Design icons by Google (Material Symbols) %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