Introduce material icons fonts package
Some checks failed
Build material-icons-fonts / Build and push image (push) Failing after 2m25s
Some checks failed
Build material-icons-fonts / Build and push image (push) Failing after 2m25s
This commit is contained in:
32
.gitea/workflows/build-material-icons-fonts.yml
Normal file
32
.gitea/workflows/build-material-icons-fonts.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Build material-icons-fonts
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- .gitea/workflows/build-material-icons-fonts.yml
|
||||
- "material-icons-fonts.spec"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build_push:
|
||||
name: Build and push image
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Setup environment
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y podman iptables
|
||||
|
||||
# These stage versions are pinned by https://github.com/renovatebot/renovate
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6 # v5
|
||||
|
||||
- name: Build RPM and Upload
|
||||
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
||||
with:
|
||||
spec-file-path: ./material-icons-fonts.spec
|
||||
repository-user: eriq12
|
||||
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
||||
54
material-icons-fonts.spec
Normal file
54
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