%global fontname wqy-microhei %global fontconf 65-%{fontname}.conf %global archivename %{fontname}-%{version}-beta Name: %{fontname}-fonts Version: 0.2.0 Release: 0.2.beta%{?dist} Summary: Compact Chinese fonts derived from Droid Group: User Interface/X 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 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 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 %setup -q -n %{fontname} mv README.txt{,.orig} iconv -f iso8859-1 -t utf8 README.txt.orig > README.txt %build %install rm -fr %{buildroot} 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} %clean rm -fr %{buildroot} %_font_pkg -f %{fontconf} *.ttc %doc LICENSE_Apache2.txt LICENSE_GPLv3.txt README.txt %changelog * Mon Dec 7 2009 Jens Petersen - 0.2.0-0.1.beta - initial packaging for fedora