From f96f51bc6d8dac49a18e97ed8db3420f67088b4a Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Jun 20 2017 06:38:12 +0000 Subject: Initial import (#1460934). --- diff --git a/.gitignore b/.gitignore index e69de29..d84f599 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/SourceHanSerifTW.zip diff --git a/adobe-source-han-serif-tw-fonts-fontconfig.conf b/adobe-source-han-serif-tw-fonts-fontconfig.conf new file mode 100644 index 0000000..8eca94b --- /dev/null +++ b/adobe-source-han-serif-tw-fonts-fontconfig.conf @@ -0,0 +1,105 @@ + + + + + + zh-tw + + + monospace + + + Source Han Serif TW + Source Han Serif CN + + + DejaVu Sans Mono + + + + + zh-hk + + + monospace + + + Source Han Serif TW + Source Han Serif CN + + + DejaVu Sans Mono + + + + + Source Han Serif TW + + monospace + + + + + + zh-tw + + + serif + + + Source Han Serif TW + Source Han Serif CN + + + + + zh-hk + + + serif + + + Source Han Serif TW + Source Han Serif CN + + + + + Source Han Serif TW + + serif + + + + + + zh-tw + + + sans-serif + + + Source Han Serif TW + Source Han Serif CN + + + + + zh-hk + + + sans-serif + + + Source Han Serif TW + Source Han Serif CN + + + + + Source Han Serif TW + + sans-serif + + + diff --git a/adobe-source-han-serif-tw-fonts.spec b/adobe-source-han-serif-tw-fonts.spec new file mode 100644 index 0000000..e21adb9 --- /dev/null +++ b/adobe-source-han-serif-tw-fonts.spec @@ -0,0 +1,52 @@ +%global fontname adobe-source-han-serif-tw +%global fontconf 65-0-%{fontname}.conf + +%global archivename SourceHanSerifTW + +Name: adobe-source-han-serif-tw-fonts +Version: 1.001 +Release: 1%{?dist} +Summary: Adobe OpenType Pan-CJK font family for Traditional Chinese + +License: OFL +URL: https://github.com/adobe-fonts/source-han-serif/ +Source0: https://github.com/adobe-fonts/source-han-serif/raw/release/SubsetOTF/%{archivename}.zip +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Source Han Serif is a set of OpenType/CFF Pan-CJK fonts. + +%prep +%setup -q -n %{archivename} + + +%build + + +%install + +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.otf %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + + +%_font_pkg -f %{fontconf} *.otf +%license LICENSE.txt + + +%changelog +* Mon Jun 12 2017 Peng Wu - 1.001-1 +- Initial Version + + diff --git a/sources b/sources index e69de29..b569cf1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (SourceHanSerifTW.zip) = 29f88f7f7b280187fc46e7e14a3bf869c1e543b1f6be0667e1fdae06a934471124207b7d45ae505bf3bf2f4c0541ed1ffb8612992342d81d85a6587e85545aa4