aa38c0
%global fontname sil-nuosu
aa38c0
%global fontconf 66-%{fontname}.conf
aa38c0
b23269
%global archivename NuosuSIL-2.200.tar.xz
aa38c0
aa38c0
Name:           %{fontname}-fonts
b23269
Version:        2.200
b23269
Release:        2%{?dist}
aa38c0
Summary:        The Nuosu SIL Font
aa38c0
aa38c0
License:        OFL
aa38c0
URL:            http://scripts.sil.org/SILYi_home
aa38c0
Source0:        %{archivename}
aa38c0
Source1:        %{name}-fontconfig.conf
aa38c0
Source2:        %{fontname}.metainfo.xml
aa38c0
aa38c0
BuildArch:      noarch
aa38c0
BuildRequires:  fontpackages-devel
aa38c0
Requires:       fontpackages-filesystem
aa38c0
aa38c0
%description
aa38c0
The Nuosu SIL Font is a single Unicode font for the standardized Yi script
aa38c0
used by a large ethnic group in southwestern China.
aa38c0
Until this version, the font was called SIL Yi.
aa38c0
aa38c0
%prep
b23269
%setup -q -n NuosuSIL-%{version}
b23269
sed -i 's/\r//' OFL.txt FONTLOG.txt
aa38c0
aa38c0
%build
aa38c0
aa38c0
aa38c0
%install
aa38c0
install -m 0755 -d %{buildroot}%{_fontdir}
aa38c0
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
aa38c0
aa38c0
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
aa38c0
                   %{buildroot}%{_fontconfig_confdir}
aa38c0
aa38c0
install -m 0644 -p %{SOURCE1} \
aa38c0
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
aa38c0
ln -s %{_fontconfig_templatedir}/%{fontconf} \
aa38c0
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
aa38c0
aa38c0
# Add AppStream metadata
aa38c0
install -Dm 0644 -p %{SOURCE2} \
aa38c0
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
aa38c0
aa38c0
%_font_pkg -f %{fontconf} *.ttf
b23269
%doc OFL.txt FONTLOG.txt
aa38c0
%{_datadir}/appdata/%{fontname}.metainfo.xml
aa38c0
aa38c0
%changelog
b23269
* Thu Apr  1 2021 Peng Wu <pwu@redhat.com> - 2.200-2
b23269
- Rebuild the package
b23269
- Resolves: #1762623
b23269
b23269
* Tue Mar 30 2021 Peng Wu <pwu@redhat.com> - 2.200-1
b23269
- Update to 2.200
b23269
- Corrected shape of U+300D and U+300F
b23269
- Resolves: #1762623
b23269
aa38c0
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-14
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aa38c0
aa38c0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-13
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aa38c0
aa38c0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-12
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aa38c0
aa38c0
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-11
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
aa38c0
aa38c0
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-10
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aa38c0
aa38c0
* Fri Oct 17 2014 Parag Nemade <pnemade AT redhat DOT com> - 2.1.1-9
aa38c0
- Add metainfo file to show this font in gnome-software
aa38c0
aa38c0
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-8
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aa38c0
aa38c0
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-7
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
aa38c0
aa38c0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-6
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aa38c0
aa38c0
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
aa38c0
aa38c0
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-4
aa38c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
aa38c0
aa38c0
* Sat Feb 12 2011  Peng Wu <pwu@redhat.com> - 2.1.1-3
aa38c0
- Add document.
aa38c0
aa38c0
* Sun Jan 30 2011  Peng Wu <pwu@redhat.com> - 2.1.1-2
aa38c0
- Clean the spec file and add fontconfig file
aa38c0
aa38c0
* Wed Jan 26 2011  Peng Wu <pwu@redhat.com> - 2.1.1-1
aa38c0
- Initial package