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

Peng Wu 70733b7
%global fontname adobe-source-han-sans-tw
Peng Wu af5f8fa
%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 571e4ab
Version:        1.004
Peng Wu af5f8fa
Release:        7%{?dist}.1
Peng Wu 70733b7
Summary:        Adobe OpenType Pan-CJK font family for Traditional Chinese
Peng Wu 70733b7
Peng Wu 9c0f783
License:        OFL
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
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 4a9dd33
Obsoletes:      adobe-source-han-sans-twhk-fonts < %{version}-%{release}
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 97b3484
%autosetup -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 -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
Peng Wu af5f8fa
* Thu Apr 12 2018 Peng Wu <pwu@redhat.com> - 1.004-7.1
Peng Wu af5f8fa
- Revert the priority
Peng Wu af5f8fa
Peng Wu 20c91f7
* Thu Feb  1 2018 Peng Wu <pwu@redhat.com> - 1.004-7
Peng Wu 20c91f7
- Update the priority to change the default font to Noto
Peng Wu 20c91f7
300fe90
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-6
300fe90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
300fe90
Peng Wu 97b3484
* Tue Jun 20 2017 Peng Wu <pwu@redhat.com> - 1.004-5
Peng Wu 97b3484
- Use Source Han Sans for Mono and Sans
Peng Wu 97b3484
- Use Source Han Serif for Serif
Peng Wu 97b3484
3284bfc
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-4
3284bfc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3284bfc
ca5cd69
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-3
ca5cd69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ca5cd69
Peng Wu 4a9dd33
* Tue Nov 17 2015 Peng Wu <pwu@redhat.com> - 1.004-2
Peng Wu 4a9dd33
- Fixes Obsoletes
Peng Wu 4a9dd33
Peng Wu 571e4ab
* Fri Aug  7 2015 Peng Wu <pwu@redhat.com> - 1.004-1
Peng Wu 571e4ab
- Update to 1.004
Peng Wu 571e4ab
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