diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eeb8ff4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/source-han-code-jp-2.000R.zip diff --git a/README.md b/README.md deleted file mode 100644 index c874c8a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# adobe-source-han-code-jp-fonts - -Source Han Code JP is a derivative of Source Han Sans that replaces its proportional Latin glyphs with fixed-width 667-unit glyphs from Source Code Pro. \ No newline at end of file diff --git a/adobe-source-han-code-jp-fonts-fontconfig.conf b/adobe-source-han-code-jp-fonts-fontconfig.conf new file mode 100644 index 0000000..27082e7 --- /dev/null +++ b/adobe-source-han-code-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-code-jp-fonts.spec b/adobe-source-han-code-jp-fonts.spec new file mode 100644 index 0000000..4be75ac --- /dev/null +++ b/adobe-source-han-code-jp-fonts.spec @@ -0,0 +1,59 @@ +%global fontname adobe-source-han-code-jp +%global fontconf 65-2-%{fontname}.conf +%global archivename source-han-code-jp-%{version}R + +Name: adobe-source-han-code-jp-fonts +Version: 2.000 +Release: 2%{?dist} +Summary: Adobe OpenType UI font for mixed Latin and Japanese text + +License: OFL +URL: https://github.com/adobe-fonts/source-han-code-jp/ +Source0: https://github.com/adobe-fonts/source-han-code-jp/archive/%{version}R/%{archivename}.zip +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Source Han Code JP is a derivative of Source Han Sans that replaces +its proportional Latin glyphs with fixed-width 667-unit glyphs from +Source Code Pro. The Latin glyphs are scaled to match the glyphs for +Japanese kana and kanji, and their widths are adjusted to be exactly +667 units (two-thirds of an EM). Source Han Code JP is intended to be +used as a UI font for mixed Latin and Japanese text on displays, +for programming, editing HTML/CSS, viewing text or inputing to +the command line in a terminal app, and so on. + +%prep +%autosetup -n %{archivename} +chmod 0644 README.md + +%build + +%install + +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p OTF/*.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 +%doc README.md relnotes.txt + +%changelog +* Mon Oct 30 2017 Akira TAGOH - 2.000-2 +- Correct the file permission for README.md +- Correct the source URL. + +* Fri Oct 27 2017 Akira TAGOH - 2.000-1 +- Initial packaging. diff --git a/sources b/sources new file mode 100644 index 0000000..86e7e5d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (source-han-code-jp-2.000R.zip) = e78a7caf2e3d5f33cf7d8f237301b4f339498d93c25bc91780320abd1d26a78710494f90cfee1430563c4a1d32f41b3944e5e4e246686021770278d7efc8a3ca