Peng Wu 7576356
%global fontname adobe-source-han-sans-cn
Akira TAGOH d26b425
%global fontconf 65-2-%{fontname}.conf
Peng Wu 7576356
Peng Wu 3fd992e
%global archivename SourceHanSansCN
Peng Wu 7576356
Peng Wu 7576356
Name:           adobe-source-han-sans-cn-fonts
359c615
Version:        2.002
359c615
Release:        1%{?dist}
Peng Wu 7576356
Summary:        Adobe OpenType Pan-CJK font family for Simplified Chinese
Peng Wu 7576356
Peng Wu ae7b5d8
License:        OFL
Peng Wu 7698143
URL:            https://github.com/adobe-fonts/source-han-sans/
Peng Wu 3fd992e
Source0:        https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/%{archivename}.zip
Peng Wu 7576356
Source1:        %{name}-fontconfig.conf
Peng Wu 7576356
Peng Wu 7576356
BuildArch:      noarch
Peng Wu 7576356
BuildRequires:  fontpackages-devel
Peng Wu 7576356
Requires:       fontpackages-filesystem
Peng Wu 7576356
Peng Wu 7576356
%description
Peng Wu 7576356
Source Han Sans is a sans serif Pan-CJK font family 
Peng Wu 7576356
that is offered in seven weights—ExtraLight, Light, 
Peng Wu 7576356
Normal, Regular, Medium, Bold, and Heavy—and 
Peng Wu 7576356
in several OpenType/CFF-based deployment configurations
Peng Wu 7576356
to accommodate various system requirements or limitations.
Peng Wu 7576356
Peng Wu 7576356
As the name suggests, Pan-CJK fonts are intended to
Peng Wu 7576356
support the characters necessary to render or
Peng Wu 7576356
display text in Simplified Chinese, Traditional Chinese,
Peng Wu 7576356
Japanese, and Korean.
Peng Wu 7576356
Peng Wu 7576356
Peng Wu 7576356
%prep
49666b3
%autosetup -c
Peng Wu 7576356
Peng Wu 7576356
%build
Peng Wu 7576356
Peng Wu 7576356
Peng Wu 7576356
%install
Peng Wu 7576356
Peng Wu 7576356
install -m 0755 -d %{buildroot}%{_fontdir}
Peng Wu 7576356
install -m 0644 -p *.otf %{buildroot}%{_fontdir}
Peng Wu 7576356
Peng Wu 7576356
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
Peng Wu 7576356
                   %{buildroot}%{_fontconfig_confdir}
Peng Wu 7576356
Peng Wu 7576356
install -m 0644 -p %{SOURCE1} \
Peng Wu 7576356
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
Peng Wu 7576356
ln -s %{_fontconfig_templatedir}/%{fontconf} \
Peng Wu 7576356
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
Peng Wu 7576356
Peng Wu 7576356
Peng Wu 7576356
%_font_pkg -f %{fontconf} *.otf
Peng Wu 7576356
Peng Wu 78281c7
%license LICENSE.txt
Peng Wu 7576356
Peng Wu 7576356
Peng Wu 7576356
%changelog
359c615
* Tue Nov 17 2020 Peng Wu <pwu@redhat.com> - 2.002-1
359c615
- Update to 2.002
359c615
f876d8a
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.001-4
f876d8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f876d8a
f2601b4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.001-3
f2601b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f2601b4
8807d51
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.001-2
8807d51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8807d51
Peng Wu 932d3a4
* Tue Apr 16 2019 Peng Wu <pwu@redhat.com> - 2.001-1
Peng Wu 932d3a4
- Update to 2.001
Peng Wu 932d3a4
9851e2c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-2
9851e2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9851e2c
Peng Wu 7e9e890
* Thu Jan 17 2019 Peng Wu <pwu@redhat.com> - 2.000-1
Peng Wu 7e9e890
- Update to 2.000
Peng Wu 7e9e890
Akira TAGOH d26b425
* Fri Jul 20 2018 Akira TAGOH <tagoh@redhat.com> - 1.004-8
Akira TAGOH d26b425
- Update the fontconfig priority to ensure this as default for upgrading.
Akira TAGOH d26b425
a2b5655
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-7
a2b5655
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a2b5655
Peng Wu 948cd23
* Thu Feb  1 2018 Peng Wu <pwu@redhat.com> - 1.004-6
Peng Wu 948cd23
- Update the priority to change the default font to Noto
Peng Wu 948cd23
7772a74
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-5
7772a74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7772a74
Peng Wu b165ec7
* Tue Jun 20 2017 Peng Wu <pwu@redhat.com> - 1.004-4
Peng Wu b165ec7
- Use Source Han Sans for Mono and Sans
Peng Wu b165ec7
- Use Source Han Serif for Serif
Peng Wu b165ec7
de8572d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-3
de8572d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
de8572d
a7c6b5d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-2
a7c6b5d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a7c6b5d
Peng Wu 38f280f
* Fri Aug  7 2015 Peng Wu <pwu@redhat.com> - 1.004-1
Peng Wu 38f280f
- Update to 1.004
Peng Wu 38f280f
461fb16
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002-2
461fb16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
461fb16
Peng Wu 3fd992e
* Thu Apr 23 2015 Peng Wu <pwu@redhat.com> - 1.002-1
Peng Wu 3fd992e
- Update to 1.002
Peng Wu 3fd992e
Peng Wu 7698143
* Wed Oct  8 2014 Peng Wu <pwu@redhat.com> - 1.001-1
Peng Wu 7698143
- Update to 1.001
Peng Wu 7698143
Peng Wu e71526a
* Tue Sep  9 2014 Peng Wu <pwu@redhat.com> - 1.000-4
Peng Wu e71526a
- Work around monospace English characters issue
Peng Wu e71526a
Peng Wu cebe83d
* Mon Aug  4 2014 Peng Wu <pwu@redhat.com> - 1.000-3
Peng Wu cebe83d
- Fontconfig changes from user feed back
Peng Wu cebe83d
Peng Wu 7576356
* Mon Jul 21 2014 Peng Wu <pwu@redhat.com> - 1.000-2
Peng Wu 7576356
- Improves spec
Peng Wu 7576356
Peng Wu 7576356
* Mon Jul 21 2014 Peng Wu <pwu@redhat.com> - 1.000-1
Peng Wu 7576356
- Initial Version