Package init
This commit is contained in:
commit
efc9ac4ca5
BIN
wqy-zenhei-0.9.46-May.tar.bz2
Normal file
BIN
wqy-zenhei-0.9.46-May.tar.bz2
Normal file
Binary file not shown.
93
wqy-zenhei-fonts-fontconfig.conf
Normal file
93
wqy-zenhei-fonts-fontconfig.conf
Normal file
@ -0,0 +1,93 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>zh-cn</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>monospace</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Zen Hei Sharp</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>zh-sg</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>monospace</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Zen Hei Sharp</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>WenQuanYi Zen Hei Sharp</family>
|
||||
<default>
|
||||
<family>monospace</family>
|
||||
</default>
|
||||
</alias>
|
||||
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>zh-cn</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Zen Hei Sharp</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>zh-sg</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Zen Hei Sharp</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>WenQuanYi Zen Hei Sharp</family>
|
||||
<default>
|
||||
<family>serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>zh-cn</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Zen Hei Sharp</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="lang">
|
||||
<string>zh-sg</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Zen Hei Sharp</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>WenQuanYi Zen Hei Sharp</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
75
wqy-zenhei-fonts.spec
Normal file
75
wqy-zenhei-fonts.spec
Normal file
@ -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 <buildteam@openeuler.org> - 0.9.46-20
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user