Update to 2.200

This commit is contained in:
houlifei 2023-07-31 15:39:42 +08:00
parent 1b6647cb67
commit 75d4f921aa
4 changed files with 50 additions and 23 deletions

Binary file not shown.

BIN
NuosuSIL-2.200.tar.xz Normal file

Binary file not shown.

View File

@ -1,12 +1,18 @@
Name: sil-nuosu-fonts
Version: 2.1.1
Release: 18
%global fontname sil-nuosu
%global fontconf 66-%{fontname}.conf
%global archivename NuosuSIL-%{version}.tar.xz
Name: %{fontname}-fonts
Version: 2.200
Release: 1
Summary: The Nuosu SIL Font
License: OFL-1.1
URL: http://scripts.sil.org/SILYi_home
Source0: https://software.sil.org/downloads/r/nuosu/NuosuSIL-2.1.1-source.tar.gz
Source1: sil-nuosu-fonts-fontconfig.conf
Source0: https://github.com/silnrsi/font-nuosu/releases/download/v%{version}/%{archivename}
Source1: %{name}-fontconfig.conf
Source2: %{fontname}.metainfo.xml
BuildArch: noarch
BuildRequires: fontpackages-devel
@ -20,32 +26,36 @@ Until this version, the font was called SIL Yi.
%package_help
%prep
%setup -q -c %{name}
sed -i 's/\r//' OFL.txt doc/FONTLOG.txt
%setup -q -n NuosuSIL-%{version}
sed -i 's/\r//' OFL.txt FONTLOG.txt
%build
%install
install -m 0755 -d %{buildroot}%{_datadir}/fonts/sil-nuosu
install -m 0644 -p NuosuSIL.ttf %{buildroot}%{_datadir}/fonts/sil-nuosu
install -m 0755 -d %{buildroot}%{_datadir}/fontconfig/conf.avail
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d
install -m 0644 -p %{SOURCE1} %{buildroot}%{_datadir}/fontconfig/conf.avail/66-sil-nuosu.conf
ln -s %{_datadir}/fontconfig/conf.avail/66-sil-nuosu.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/66-sil-nuosu.conf
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
%files
%defattr(-,root,root)
%doc debian-src/changelog debian-src/README.Debian
%license debian-src/LICENSE debian-src/copyright
%{_sysconfdir}/fonts/conf.d/66-sil-nuosu.conf
%{_datadir}/fonts/sil-nuosu/NuosuSIL.ttf
%{_datadir}/fontconfig/conf.avail/66-sil-nuosu.conf
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
%files help
%defattr(-,root,root)
%doc OFL.txt doc/FONTLOG.txt
install -m 0644 -p %{SOURCE1} \
%{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
* Mon Jul 31 2023 houlifei <houlifei@uniontech.com> - 2.200-1
- Update to 2.200
- Add metainfo file to show this font in gnome-software
* Wed May 25 2022 chendexi <chendexi@kylinos.cn> - 2.1.1-18
- Change the license to "OFL-1.1"

17
sil-nuosu.metainfo.xml Normal file
View File

@ -0,0 +1,17 @@
<?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>