From 1ec80ebbeb4d2f8f6091a6886278d74a78fcf9e2 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Oct 31 2017 08:24:26 +0000 Subject: Initial packaging. --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0601ff3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/SourceHanSansJP.zip diff --git a/README.md b/README.md deleted file mode 100644 index 38dd144..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# adobe-source-han-sans-jp-fonts - -Source Han Sans is a set of OpenType/CFF Pan-CJK fonts \ No newline at end of file diff --git a/adobe-source-han-sans-jp-fonts-fontconfig.conf b/adobe-source-han-sans-jp-fonts-fontconfig.conf new file mode 100644 index 0000000..27082e7 --- /dev/null +++ b/adobe-source-han-sans-jp-fonts-fontconfig.conf @@ -0,0 +1,23 @@ + + + + + + Source Han Sans JP + + sans-serif + + + + + + ja + + + sans-serif + + + Source Han Sans JP + + + diff --git a/adobe-source-han-sans-jp-fonts.spec b/adobe-source-han-sans-jp-fonts.spec new file mode 100644 index 0000000..fcd09a8 --- /dev/null +++ b/adobe-source-han-sans-jp-fonts.spec @@ -0,0 +1,46 @@ +%global fontname adobe-source-han-sans-jp +%global fontconf 65-2-%{fontname}.conf +%global archivename SourceHanSansJP + +Name: adobe-source-han-sans-jp-fonts +Version: 1.004 +Release: 1%{?dist} +Summary: Adobe OpenType Pan-CJK font family for Japanese + +License: OFL +URL: https://github.com/adobe-fonts/source-han-sans/ +Source0: https://github.com/adobe-fonts/source-han-sans/raw/release/SubsetOTF/%{archivename}.zip +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Source Han Sans is a set of OpenType/CFF Pan-CJK fonts. + +%prep +%autosetup -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 +* Fri Oct 27 2017 Akira TAGOH - 1.004-1 +- Initial packaging. diff --git a/sources b/sources new file mode 100644 index 0000000..fe684a7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (SourceHanSansJP.zip) = ae310b2e8eb46935b26f53f8177188e26e4a55909a4ad96ff54682d250e661ca5042f76814b97c800f23bd2e55127f8957ccd42c8c55f2bb1333be7903a9d11a