Correct the file permission for README.md
Correct the source URL.
This commit is contained in:
parent
de4acaf1bc
commit
2804eea1ce
5 changed files with 84 additions and 3 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/source-han-code-jp-2.000R.zip
|
||||
|
|
@ -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.
|
||||
23
adobe-source-han-code-jp-fonts-fontconfig.conf
Normal file
23
adobe-source-han-code-jp-fonts-fontconfig.conf
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<!-- Generic names rule -->
|
||||
<alias>
|
||||
<family>Source Han Sans JP</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
<!-- Locale-specific overrides rule -->
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>ja</string>
|
||||
</test>
|
||||
<test name="family" ignore-blanks="true">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>Source Han Sans JP</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
59
adobe-source-han-code-jp-fonts.spec
Normal file
59
adobe-source-han-code-jp-fonts.spec
Normal file
|
|
@ -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 <tagoh@redhat.com> - 2.000-2
|
||||
- Correct the file permission for README.md
|
||||
- Correct the source URL.
|
||||
|
||||
* Fri Oct 27 2017 Akira TAGOH <tagoh@redhat.com> - 2.000-1
|
||||
- Initial packaging.
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (source-han-code-jp-2.000R.zip) = e78a7caf2e3d5f33cf7d8f237301b4f339498d93c25bc91780320abd1d26a78710494f90cfee1430563c4a1d32f41b3944e5e4e246686021770278d7efc8a3ca
|
||||
Loading…
Add table
Add a link
Reference in a new issue