Move material icons fonts spec file into directory, and added needed
All checks were successful
Build material-icons-fonts / Build and push image (push) Successful in 3m10s
All checks were successful
Build material-icons-fonts / Build and push image (push) Successful in 3m10s
conf file
This commit is contained in:
17
material-icons-fonts/65-material-icons-fonts.conf
Normal file
17
material-icons-fonts/65-material-icons-fonts.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<!-- SPDX-License-Identifier: MIT -->
|
||||
<fontconfig>
|
||||
<alias>
|
||||
<family>fantasy</family>
|
||||
<default>
|
||||
<family>Material Icons</family>
|
||||
</default>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>Material Icons</family>
|
||||
<default>
|
||||
<family>fantasy</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
54
material-icons-fonts/material-icons-fonts.spec
Normal file
54
material-icons-fonts/material-icons-fonts.spec
Normal file
@@ -0,0 +1,54 @@
|
||||
%global commit0 b2c0f61d8a99224bd99924f3d0471d9f146c9a54
|
||||
%global shortcommit0 %{sub %{commit0} 1 7}
|
||||
%global bumpver 1
|
||||
|
||||
Version: 4.0.0%{?bumpver:^%{bumpver}.git%{shortcommit0}}
|
||||
Release: %autorelease
|
||||
URL: https://google.github.io/material-design-icons/
|
||||
|
||||
%global fontlicense Apache-2.0
|
||||
%global fontlicenses LICENSE
|
||||
%global fontdocs README.md
|
||||
%global fontfamily Material Icons
|
||||
%global fontsummary Google material design system icons
|
||||
%global fonts font/*.otf font/*.ttf variablefont/*.ttf
|
||||
%global fontorg com.google
|
||||
%global fontconfs %{SOURCE1}
|
||||
|
||||
%global fontdescription %{expand:
|
||||
Material design icons is the official icon set from Google. The icons
|
||||
are designed under the material design guidelines.}
|
||||
|
||||
Source1: 65-%{fontpkgname}.conf
|
||||
|
||||
BuildRequires: git-core
|
||||
|
||||
%fontpkg
|
||||
|
||||
%prep
|
||||
%setup -c
|
||||
git clone --single-branch --branch=master --filter=blob:none --sparse --depth=1 https://github.com/google/material-design-icons.git .
|
||||
git sparse-checkout init --cone
|
||||
git sparse-checkout set font variablefont
|
||||
git checkout %{commit0}
|
||||
|
||||
%build
|
||||
%fontbuild
|
||||
|
||||
%install
|
||||
%fontinstall
|
||||
metainfo=%{buildroot}%{_metainfodir}/%{fontorg}.%{name}.metainfo.xml
|
||||
|
||||
# The Fedora font macros generate invalid metainfo; see bz 1943727.
|
||||
sed -e 's,updatecontact,update_contact,g' \
|
||||
-e 's,<!\[CDATA\[\(.*\)\]\]>,\1,' \
|
||||
-e 's,<font></font>,<font>Material Icons Outlined Regular</font>\n <font>Material Icons Round Regular</font>\n <font>Material Icons Sharp Regular</font>\n <font>Material Icons Two Tone Regular</font>,' \
|
||||
-i $metainfo
|
||||
|
||||
%check
|
||||
%fontcheck
|
||||
|
||||
%fontfiles
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user