Peng Wu 70733b7
%global fontname adobe-source-han-sans-tw
Akira TAGOH c744988
%global fontconf 65-2-%{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 81a5404
Version:        2.001
1503c4a
Release:        3%{?dist}
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
1503c4a
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.001-3
1503c4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1503c4a
3f216f7
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.001-2
3f216f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3f216f7
Peng Wu 81a5404
* Tue Apr 16 2019 Peng Wu <pwu@redhat.com> - 2.001-1
Peng Wu 81a5404
- Update to 2.001
Peng Wu 81a5404
07bc1cd
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.000-2
07bc1cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
07bc1cd
Peng Wu 89189e5
* Thu Jan 17 2019 Peng Wu <pwu@redhat.com> - 2.000-1
Peng Wu 89189e5
- Update to 2.000
Peng Wu 89189e5
Akira TAGOH c744988
* Fri Jul 20 2018 Akira TAGOH <tagoh@redhat.com> - 1.004-9
Akira TAGOH c744988
- Update the fontconfig priority to ensure this as default for upgrading.
Akira TAGOH c744988
9ab92b3
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.004-8
9ab92b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9ab92b3
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