From 7c0a2b350b255672b2ac91f2c9681a115760bf4b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 08:36:17 -0400 Subject: [PATCH] import wqy-microhei-fonts-0.2.0-0.22.beta.el8 --- .gitignore | 1 + .wqy-microhei-fonts.metadata | 1 + SOURCES/wqy-microhei-fonts-fontconfig.conf | 69 ++++++++++++ SPECS/wqy-microhei-fonts.spec | 118 +++++++++++++++++++++ 4 files changed, 189 insertions(+) create mode 100644 .gitignore create mode 100644 .wqy-microhei-fonts.metadata create mode 100644 SOURCES/wqy-microhei-fonts-fontconfig.conf create mode 100644 SPECS/wqy-microhei-fonts.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5587c6b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/wqy-microhei-0.2.0-beta.tar.gz diff --git a/.wqy-microhei-fonts.metadata b/.wqy-microhei-fonts.metadata new file mode 100644 index 0000000..8323cc0 --- /dev/null +++ b/.wqy-microhei-fonts.metadata @@ -0,0 +1 @@ +28023041b22b6368bcfae076de68109b81e77976 SOURCES/wqy-microhei-0.2.0-beta.tar.gz diff --git a/SOURCES/wqy-microhei-fonts-fontconfig.conf b/SOURCES/wqy-microhei-fonts-fontconfig.conf new file mode 100644 index 0000000..fac927f --- /dev/null +++ b/SOURCES/wqy-microhei-fonts-fontconfig.conf @@ -0,0 +1,69 @@ + + + + + + WenQuanYi Micro Hei + + + false + + + + + + zh + + + monospace + + + WenQuanYi Micro Hei Mono + + + + + WenQuanYi Micro Hei Mono + + monospace + + + + + + zh + + + serif + + + WenQuanYi Micro Hei + + + + + WenQuanYi Micro Hei + + serif + + + + + + zh + + + sans-serif + + + WenQuanYi Micro Hei + + + + + WenQuanYi Micro Hei + + sans-serif + + + diff --git a/SPECS/wqy-microhei-fonts.spec b/SPECS/wqy-microhei-fonts.spec new file mode 100644 index 0000000..57af021 --- /dev/null +++ b/SPECS/wqy-microhei-fonts.spec @@ -0,0 +1,118 @@ +%global fontname wqy-microhei +%global fontconf 66-%{fontname}.conf + +%global archivename %{fontname}-%{version}-beta + +Name: %{fontname}-fonts +Version: 0.2.0 +Release: 0.22.beta%{?dist} +Summary: Compact Chinese fonts derived from Droid + +License: ASL 2.0 or GPLv3 with exceptions +URL: http://wenq.org/enindex.cgi?MicroHei(en) +Source0: http://downloads.sourceforge.net/wqy/%{archivename}.tar.gz +Source1: %{name}-fontconfig.conf + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +A new Sans Serif CJK font derived from Google's "Droid Sans Fallback" +and covers the entire GBK code points (20932 Han glyphs). + +%prep +%autosetup -n %{fontname} + +mv README.txt{,.orig} +iconv -f iso8859-1 -t utf8 README.txt.orig > README.txt + + +%build + + +%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 %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + + + +%_font_pkg -f %{fontconf} *.ttc +%license LICENSE_Apache2.txt LICENSE_GPLv3.txt +%doc README.txt + + +%changelog +* Fri Jul 20 2018 Akira TAGOH - 0.2.0-0.22.beta +- Modernize the spec file. +- Update the fontconfig priority to make Noto default. + +* Sat Jul 14 2018 Fedora Release Engineering - 0.2.0-0.21.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.2.0-0.20.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.2.0-0.19.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.2.0-0.18.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 0.2.0-0.17.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.2.0-0.16.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Aug 5 2014 Peng Wu - 0.2.0-0.15.beta +- Fixes fontconfig conf + +* Sun Jun 08 2014 Fedora Release Engineering - 0.2.0-0.14.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 7 2014 Peng Wu - 0.2.0-0.13.beta +- Increase fontconfig conf file priority + +* Sun Aug 04 2013 Fedora Release Engineering - 0.2.0-0.12.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 0.2.0-0.11.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 0.2.0-0.10.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 0.2.0-0.9.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Mon Dec 26 2011 Peng Wu - 0.2.0-0.8.beta +- Update wqy-microhei-fonts-fontconfig.conf + +* Mon Feb 07 2011 Fedora Release Engineering - 0.2.0-0.7.beta +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon May 31 2010 Peng Wu - 0.2.0-0.6.beta +- Add fontconfig file back to wqy-microhei-fonts. + +* Wed May 26 2010 Peng Wu - 0.2.0-0.5.beta +- Clean up rpm spec file and remove unused patches. + +* Wed May 26 2010 Peng Wu - 0.2.0-0.4.beta +- Improves Simplified Chinese and Traditional Chinese fonts. + In order to keep the WenQuanYi Zen Hei as default Simplified Chinese font, + the fontconfig file of this WenQuanYi Micro Hei font is removed. + +* Mon Apr 19 2010 Peng Wu - 0.2.0-0.3.beta +- get rid of binding="same", fixes [rhbz#578050] (New: lang-specific overrides rule doesn't work as expected). + +* Mon Dec 7 2009 Jens Petersen - 0.2.0-0.1.beta +- initial packaging for fedora