commit efc9ac4ca5433fdb009e30eaf28e6271b6046ebb Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:20:04 2019 -0400 Package init diff --git a/wqy-zenhei-0.9.46-May.tar.bz2 b/wqy-zenhei-0.9.46-May.tar.bz2 new file mode 100644 index 0000000..66d525c Binary files /dev/null and b/wqy-zenhei-0.9.46-May.tar.bz2 differ diff --git a/wqy-zenhei-fonts-fontconfig.conf b/wqy-zenhei-fonts-fontconfig.conf new file mode 100644 index 0000000..02b7852 --- /dev/null +++ b/wqy-zenhei-fonts-fontconfig.conf @@ -0,0 +1,93 @@ + + + + + + zh-cn + + + monospace + + + WenQuanYi Zen Hei Sharp + + + + + zh-sg + + + monospace + + + WenQuanYi Zen Hei Sharp + + + + + WenQuanYi Zen Hei Sharp + + monospace + + + + + + zh-cn + + + serif + + + WenQuanYi Zen Hei Sharp + + + + + zh-sg + + + serif + + + WenQuanYi Zen Hei Sharp + + + + + WenQuanYi Zen Hei Sharp + + serif + + + + + + zh-cn + + + sans-serif + + + WenQuanYi Zen Hei Sharp + + + + + zh-sg + + + sans-serif + + + WenQuanYi Zen Hei Sharp + + + + + WenQuanYi Zen Hei Sharp + + sans-serif + + + diff --git a/wqy-zenhei-fonts.spec b/wqy-zenhei-fonts.spec new file mode 100644 index 0000000..2a9f905 --- /dev/null +++ b/wqy-zenhei-fonts.spec @@ -0,0 +1,75 @@ +%global fontname wqy-zenhei +%global fontconf2 65-wqy-zenhei-sharp.conf +Name: wqy-zenhei-fonts +Version: 0.9.46 +Release: 20 +Summary: A Hei-Ti Style (sans-serif) Chinese font +License: GPLv2 with exceptions +URL: https://packages.debian.org/sid/fonts-wqy-zenhei +Source0: https://downloads.sourceforge.net/wqy/wqy-zenhei-%{version}-May.tar.bz2 +Source2: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +Provides: wqy-zenhei-fonts-common = %{version}-%{release} +Obsoletes: wqy-zenhei-fonts-common + +%description +WenQuanYi Zen Hei is a Hei-Ti style (sans-serif type) Chinese font. +It was designed for general purpose text formatting and on-screen +display of Chinese characters among many other languages. The +embolden strokes of the font glyphs produces enhanced screen +contrast, making it easier to read and recognize. The embedded +bitmap glyphs further enhance on-screen performance, and can be +enabled with the provided configuration files. + +WenQuanYi Zen Hei provides a fairly complete coverage of Chinese +Hanzi glyphs, including both simplified and traditional forms. The +total glyph number in this font is over 35,000, including over +21,000 Chinese Hanzi. This font provides full coverage of GBK (CP936) +charset, CJK Unified Ideographs, as well as the code-points needed +for zh_CN, zh_SG, zh_TW, zh_HK, zh_MO, ja (Japanese) and ko (Korean) +locales for fontconfig. + +Starting from version 0.8, this font package provides two font +families, i.e. the proportional "WenQuanYi Zen Hei", and the +monospaced typeface named "WenQuanYi Zen Hei Mono". + +%prep +%autosetup -n wqy-zenhei -p1 + +iconv -f GB18030 -t UTF-8 -o AUTHORS.utf8 AUTHORS +touch -r AUTHORS AUTHORS.utf8 +mv AUTHORS.utf8 AUTHORS + +iconv -f ISO-8859-1 -t UTF-8 -o README.utf8 README +touch -r README README.utf8 +mv README.utf8 README + +%build +%{nil} + +%install +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.ttc %{buildroot}%{_fontdir} + +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} + +install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf2} + +ln -s %{_fontconfig_templatedir}/%{fontconf2} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf2} + +%files +%defattr(-,root,root) +%doc README COPYING ChangeLog AUTHORS +%{_fontconfig_confdir}/*.conf +%{_fontconfig_templatedir}/*.conf +%{_fontdir}/wqy-zenhei.ttc + +%changelog +* Thu Sep 5 2019 openEuler Buildteam - 0.9.46-20 +- Package init