Update the fonts package

This commit is contained in:
Peng Wu 2022-06-21 10:55:03 +08:00
parent ec3d857ddd
commit 8af62eb571
3 changed files with 32 additions and 54 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig> <fontconfig>
<alias> <alias>
<family>sans-serif</family> <family>sans-serif</family>

View File

@ -1,56 +1,51 @@
%global fontname sil-nuosu # Packaging template: basic single-family fonts packaging.
%global fontconf 66-%{fontname}.conf #
# SPDX-License-Identifier: MIT
#
Version: 2.200
Release: 5%{?dist}
URL: http://scripts.sil.org/SILYi_home
%global archivename NuosuSIL-%{version}.tar.xz %global foundry SIL
%global fontlicense OFL
%global fontlicenses OFL.txt
%global fontdocs README.txt FONTLOG.txt
%global fontdocsex %{fontlicenses}
Name: %{fontname}-fonts %global fontfamily Nuosu SIL
Version: 2.200 %global fontsummary The Nuosu SIL Font
Release: 4%{?dist} %global fonts NuosuSIL-Regular.ttf
Summary: The Nuosu SIL Font %global fontconfs %{SOURCE10}
License: OFL %global fontdescription %{expand:
URL: http://scripts.sil.org/SILYi_home The Nuosu SIL Font is a single Unicode font for the standardized Yi scriptused by a large ethnic group in southwestern China.
Source0: https://github.com/silnrsi/font-nuosu/releases/download/v%{version}/%{archivename} }
Source1: %{name}-fontconfig.conf
Source2: %{fontname}.metainfo.xml
BuildArch: noarch Source0: https://github.com/silnrsi/font-nuosu/releases/download/v%{version}/NuosuSIL-%{version}.tar.xz
BuildRequires: fontpackages-devel Source10: 66-sil-nuosu-fonts.conf
Requires: fontpackages-filesystem
%description %fontpkg
The Nuosu SIL Font is a single Unicode font for the standardized Yi script
used by a large ethnic group in southwestern China.
Until this version, the font was called SIL Yi.
%prep %prep
%setup -q -n NuosuSIL-%{version} %setup -q -n NuosuSIL-%{version}
sed -i 's/\r//' OFL.txt FONTLOG.txt sed -i 's/\r//' OFL.txt FONTLOG.txt
%build %build
%fontbuild
%install %install
install -m 0755 -d %{buildroot}%{_fontdir} %fontinstall
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %check
%{buildroot}%{_fontconfig_confdir} %fontcheck
install -m 0644 -p %{SOURCE1} \ %fontfiles
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
# Add AppStream metadata
install -Dm 0644 -p %{SOURCE2} \
%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} *.ttf
%doc OFL.txt FONTLOG.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml
%changelog %changelog
* Tue Jun 21 2022 Peng Wu <pwu@redhat.com> - 2.200-5
- Update the fonts package
- https://fedoraproject.org/wiki/Changes/New_Fonts_Packaging
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.200-4 * Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.200-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->
<component type="font">
<id>sil-nuosu</id>
<metadata_license>CC-BY-3.0</metadata_license>
<name>Nuosu SIL</name>
<summary>The Nuosu SIL Font</summary>
<description>
<p>
The Nuosu SIL Font is a single Unicode font for the standardized Yi script
used by a large ethnic group in southwestern China.
Until this version, the font was called SIL Yi.
</p>
</description>
<updatecontact>pnemade_at_redhat_dot_com</updatecontact>
<url type="homepage">http://scripts.sil.org/SILYi_home</url>
</component>