Peng Wu 7576356
%global fontname adobe-source-han-sans-cn
Peng Wu 7576356
%global fontconf 65-0-%{fontname}.conf
Peng Wu 7576356
Peng Wu 3fd992e
%global archivename SourceHanSansCN
Peng Wu 7576356
Peng Wu 7576356
Name:           adobe-source-han-sans-cn-fonts
Peng Wu 38f280f
Version:        1.004
a7c6b5d
Release:        2%{?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
Peng Wu 7576356
%setup -q -n %{archivename}
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
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