Blame adobe-source-han-sans-tw-fonts.spec

Peng Wu 70733b7
%global fontname adobe-source-han-sans-tw
Peng Wu 70733b7
%global fontconf 65-0-%{fontname}.conf
Peng Wu 70733b7
Peng Wu acca499
%global archivename SourceHanSansTW
Peng Wu 70733b7
Peng Wu 70733b7
Name:           adobe-source-han-sans-tw-fonts
Peng Wu acca499
Version:        1.002
a047ad9
Release:        2%{?dist}
Peng Wu 70733b7
Summary:        Adobe OpenType Pan-CJK font family for Traditional Chinese
Peng Wu 70733b7
Peng Wu 70733b7
License:        ASL 2.0
Peng Wu 70733b7
URL:            https://github.com/adobe-fonts/source-han-sans/
Peng Wu acca499
Source0:        https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/%{archivename}.zip
Peng Wu 70733b7
Source1:        %{name}-fontconfig.conf
Peng Wu 70733b7
Source2:        https://raw.githubusercontent.com/adobe-fonts/source-han-sans/master/LICENSE.txt
Peng Wu 70733b7
Peng Wu 70733b7
BuildArch:      noarch
Peng Wu 70733b7
BuildRequires:  fontpackages-devel
Peng Wu 70733b7
Requires:       fontpackages-filesystem
Peng Wu 70733b7
Peng Wu 70733b7
Provides:       adobe-source-han-sans-twhk-fonts = %{version}-%{release}
Peng Wu acca499
Obsoletes:      adobe-source-han-sans-twhk-fonts <= 1.002-1
Peng Wu 70733b7
Peng Wu 70733b7
%description
Peng Wu 70733b7
Source Han Sans is a sans serif Pan-CJK font family 
Peng Wu 70733b7
that is offered in seven weights—ExtraLight, Light, 
Peng Wu 70733b7
Normal, Regular, Medium, Bold, and Heavy—and 
Peng Wu 70733b7
in several OpenType/CFF-based deployment configurations
Peng Wu 70733b7
to accommodate various system requirements or limitations.
Peng Wu 70733b7
Peng Wu 70733b7
As the name suggests, Pan-CJK fonts are intended to
Peng Wu 70733b7
support the characters necessary to render or
Peng Wu 70733b7
display text in Simplified Chinese, Traditional Chinese,
Peng Wu 70733b7
Japanese, and Korean.
Peng Wu 70733b7
Peng Wu 70733b7
Peng Wu 70733b7
%prep
Peng Wu 70733b7
%setup -q -n %{archivename}
Peng Wu 70733b7
Peng Wu 70733b7
Peng Wu 70733b7
%build
Peng Wu 70733b7
Peng Wu 70733b7
Peng Wu 70733b7
%install
Peng Wu 70733b7
Peng Wu 70733b7
#install doc
Peng Wu 70733b7
install -m 0644 -p %{SOURCE2} .
Peng Wu 70733b7
Peng Wu 70733b7
install -m 0755 -d %{buildroot}%{_fontdir}
Peng Wu 70733b7
install -m 0644 -p *.otf %{buildroot}%{_fontdir}
Peng Wu 70733b7
Peng Wu 70733b7
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
Peng Wu 70733b7
                   %{buildroot}%{_fontconfig_confdir}
Peng Wu 70733b7
Peng Wu 70733b7
install -m 0644 -p %{SOURCE1} \
Peng Wu 70733b7
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
Peng Wu 70733b7
ln -s %{_fontconfig_templatedir}/%{fontconf} \
Peng Wu 70733b7
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
Peng Wu 70733b7
Peng Wu 70733b7
Peng Wu 70733b7
%_font_pkg -f %{fontconf} *.otf
Peng Wu 70733b7
%license LICENSE.txt
Peng Wu 70733b7
Peng Wu 70733b7
Peng Wu 70733b7
%changelog
a047ad9
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.002-2
a047ad9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a047ad9
Peng Wu acca499
* Thu Apr 23 2015 Peng Wu <pwu@redhat.com> - 1.002-1
Peng Wu acca499
- Update to 1.002
Peng Wu acca499
Peng Wu 70733b7
* Mon Apr 13 2015 Peng Wu <pwu@redhat.com> - 1.001-2
Peng Wu 70733b7
- Update spec according to review feedback.
Peng Wu 70733b7
Peng Wu 70733b7
* Mon Mar 30 2015 Peng Wu <pwu@redhat.com> - 1.001-1
Peng Wu 70733b7
- Renamed from adobe-source-han-sans-twhk-fonts
Peng Wu 70733b7