!1 open-chinese-fonts

From: @hostfj
Reviewed-by: @xzyangha
Signed-off-by: @xzyangha
This commit is contained in:
openeuler-ci-bot 2020-11-24 11:18:18 +08:00 committed by Gitee
commit cf3ef419b6
2 changed files with 31 additions and 0 deletions

Binary file not shown.

31
open-chinese-fonts.spec Normal file
View File

@ -0,0 +1,31 @@
Name: open-chinese-fonts
Version: 0.1
Release: 1
Summary: OpenType Font for Chinese
License: GPLv2
Source: open-chinese-fonts-%{version}.tar.xz
BuildArch: noarch
BuildRequires: fontpackages-devel fontforge
Requires: fontpackages-filesystem
%global fontname open-chinese-fonts
%description
This package contains fonts for displaying for Chinese.
%prep
%autosetup -c -p1
%install
install -m 0755 -d %{buildroot}%{_fontdir} %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0644 -p 65-standard-named-fonts-cn.conf %{buildroot}%{_fontconfig_templatedir}/65-standard-named-fonts-cn.conf
ln -s %{_fontconfig_templatedir}/65-standard-named-fonts-cn.conf %{buildroot}%{_fontconfig_confdir}/65-standard-named-fonts-cn.conf
%files
%_font_pkg -f 65-standard-named-fonts-cn.conf *.ttf
%changelog
* Thu Jan 9 2020 isoft<isoft@i-soft.com.cn> - 0.1-1
- Pakcage init