diff --git a/.gitignore b/.gitignore index e69de29..a34eda1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ttf-arphic-uming_0.2.20080216.1.orig.tar.gz diff --git a/25-ttf-arphic-uming-render.conf b/25-ttf-arphic-uming-render.conf new file mode 100644 index 0000000..f962c44 --- /dev/null +++ b/25-ttf-arphic-uming-render.conf @@ -0,0 +1,12 @@ + + + + + + AR PL UMing + + false + 90 + false + + diff --git a/90-ttf-arphic-uming-embolden.conf b/90-ttf-arphic-uming-embolden.conf new file mode 100644 index 0000000..30b1999 --- /dev/null +++ b/90-ttf-arphic-uming-embolden.conf @@ -0,0 +1,21 @@ + + + + + + + AR PL UMing + + + + 100 + + + 180 + + + true + + + + diff --git a/cjkuni-uming-fonts-fontconfig.conf b/cjkuni-uming-fonts-fontconfig.conf new file mode 100644 index 0000000..ea40b40 --- /dev/null +++ b/cjkuni-uming-fonts-fontconfig.conf @@ -0,0 +1,81 @@ + + + + + + zh-hk + zh-tw + + + serif + + + AR PL UMing TW + AR PL UMing HK + + + + AR PL UMing TW + + serif + + + + AR PL UMing HK + + serif + + + + + + zh-hk + zh-tw + + + sans-serif + + + AR PL UMing TW + AR PL UMing HK + + + + AR PL UMing TW + + sans-serif + + + + AR PL UMing HK + + sans-serif + + + + + + zh-hk + zh-tw + + + monospace + + + AR PL UMing TW + AR PL UMing HK + + + + AR PL UMing TW + + monospace + + + + AR PL UMing HK + + monospace + + + diff --git a/cjkuni-uming-fonts.spec b/cjkuni-uming-fonts.spec new file mode 100644 index 0000000..c615b17 --- /dev/null +++ b/cjkuni-uming-fonts.spec @@ -0,0 +1,98 @@ +%global fontname cjkuni-uming +%global fontconf 65-0-ttf-arphic-uming.conf +%global fontconf2 25-ttf-arphic-uming-render.conf +%global fontconf3 90-ttf-arphic-uming-embolden.conf + +%define catalogue %{_sysconfdir}/X11/fontpath.d + +%define common_desc \ +CJK Unifonts are Unicode TrueType fonts derived from original fonts made \ +available by Arphic Technology under "Arphic Public License" and extended by \ +the CJK Unifonts project. + +%define umingbuilddir %{name}-%{version} + +Name: %{fontname}-fonts +Version: 0.2.20080216.1 +Release: 45%{?dist} +Summary: Chinese Unicode TrueType font in Ming face + +Group: User Interface/X +License: Arphic +URL: http://www.freedesktop.org/wiki/Software/CJKUnifonts +Source0: http://ftp.debian.org/debian/pool/main/t/ttf-arphic-uming/ttf-arphic-uming_%{version}.orig.tar.gz +Source1: %{name}-fontconfig.conf +Source2: %{fontconf2} +Source3: %{fontconf3} + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem +Obsoletes: cjkuni-fonts-common < 0.2.20080216.1-42 + +%description +%common_desc + +CJK Unifonts in Ming face. + +%prep +%setup -q -c -n %{name}-%{version} + + +%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 %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} + + +install -m 0644 -p %{SOURCE2} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf2} +ln -s %{_fontconfig_templatedir}/%{fontconf2} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf2} + +install -m 0644 -p %{SOURCE3} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf3} +ln -s %{_fontconfig_templatedir}/%{fontconf3} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf3} + +install -m 0644 fonts.dir %{buildroot}%{_fontdir}/ +install -m 0644 fonts.scale %{buildroot}%{_fontdir}/ + +# catalogue +install -m 0755 -d %{buildroot}%{catalogue} +ln -s %{_fontdir}/ %{buildroot}%{catalogue}/%{name} + + +%_font_pkg -f *.conf *.ttc + +%defattr(-,root,root,-) +%doc ../%{umingbuilddir}/license +%doc ../%{umingbuilddir}/CONTRIBUTERS +%doc ../%{umingbuilddir}/FONTLOG +%doc ../%{umingbuilddir}/KNOWN_ISSUES +%doc ../%{umingbuilddir}/NEWS +%doc ../%{umingbuilddir}/README +%{_fontdir}/fonts.dir +%{_fontdir}/fonts.scale +%{catalogue}/%{name} + +%changelog +* Tue Jul 20 2010 Peng Wu - 0.2.20080216.1-45 +- Fixes font_pkg macro usage. + +* Mon Jul 19 2010 Peng Wu - 0.2.20080216.1-44 +- Clean up the spec. + +* Mon Jul 12 2010 Peng Wu - 0.2.20080216.1-43 +- The Initial Version. + Split from cjkuni-fonts. diff --git a/sources b/sources index e69de29..48b1a76 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d219fcaf953f3eb1889399955a00379f ttf-arphic-uming_0.2.20080216.1.orig.tar.gz