Package init
This commit is contained in:
commit
2708f42a90
BIN
wqy-microhei-0.2.0-beta.tar.gz
Normal file
BIN
wqy-microhei-0.2.0-beta.tar.gz
Normal file
Binary file not shown.
69
wqy-microhei-fonts-fontconfig.conf
Normal file
69
wqy-microhei-fonts-fontconfig.conf
Normal file
@ -0,0 +1,69 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<test name="family">
|
||||
<string>WenQuanYi Micro Hei</string>
|
||||
</test>
|
||||
<edit name="hinting" mode="assign">
|
||||
<bool>false</bool>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>monospace</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Micro Hei Mono</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>WenQuanYi Micro Hei Mono</family>
|
||||
<default>
|
||||
<family>monospace</family>
|
||||
</default>
|
||||
</alias>
|
||||
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Micro Hei</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>WenQuanYi Micro Hei</family>
|
||||
<default>
|
||||
<family>serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>WenQuanYi Micro Hei</string>
|
||||
</edit>
|
||||
</match>
|
||||
|
||||
<alias>
|
||||
<family>WenQuanYi Micro Hei</family>
|
||||
<default>
|
||||
<family>sans-serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
77
wqy-microhei-fonts.spec
Normal file
77
wqy-microhei-fonts.spec
Normal file
@ -0,0 +1,77 @@
|
||||
%global fontname wqy-microhei
|
||||
%global fontconf 66-%{fontname}.conf
|
||||
|
||||
Name: wqy-microhei-fonts
|
||||
Version: 0.2.0
|
||||
Release: 0.24
|
||||
Summary: Compact Chinese fonts derived from Droid
|
||||
|
||||
License: ASL 2.0 or GPLv3 with exceptions
|
||||
URL: http://wenq.org/en/
|
||||
Source0: http://downloads.sourceforge.net/wqy/%{fontname}-%{version}-beta.tar.gz
|
||||
#Source1 comes frome fedora 11
|
||||
Source1: %{name}-fontconfig.conf
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: fontpackages-devel
|
||||
Requires: fontpackages-filesystem
|
||||
|
||||
%description
|
||||
WenQuanYi Micro Hei font family is a Sans-Serif style (also known as
|
||||
Hei,
|
||||
Gothic or Dotum among the Chinese/Japanese/Korean users) high quality
|
||||
|
||||
CJK outline font. It was derived from "Droid Sans Fallback", "Droid
|
||||
Sans" and "Droid Sans Mono" released by Google Corp. This font
|
||||
package
|
||||
contains two faces, "Micro Hei" and "Micro Hei Mono", in form of a
|
||||
True-Type Collection (ttc) file. All the unified CJK Han glyphs, i.e.
|
||||
|
||||
GBK Hanzi, in the range of U+4E00-U+9FC3 defined in Unicode Standard
|
||||
5.1 are covered, with additional support to many other international
|
||||
languages such as Latin, Extended Latin, Hanguls and Kanas. The font
|
||||
file is extremely compact (~5M) compared with most known CJK fonts.
|
||||
As a result, it can be used for hand-held devices or embedded systems,
|
||||
or used on PC with a significantly small memory footprint. Because both
|
||||
font faces carry hinting and kerning instructions for Latin glyphs,
|
||||
they are the excellent choices for desktop fonts.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{fontname} -p1
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_fontdir}
|
||||
install -c -m 644 *.ttc %{buildroot}%{_fontdir}
|
||||
|
||||
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
||||
%{buildroot}%{_fontconfig_confdir}
|
||||
|
||||
install -c -m 644 %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
||||
|
||||
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
||||
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/fonts/*
|
||||
%{_fontconfig_templatedir}/*
|
||||
%{_fontdir}/*
|
||||
%license LICENSE_Apache2.txt LICENSE_GPLv3.txt
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc README.txt
|
||||
|
||||
%changelog
|
||||
* Fri Sep 6 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.0-0.24
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:add requires
|
||||
|
||||
* Tue Aug 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.2.0-0.23
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user