%global fontname ukij-tuz %global fontconf 66-%{fontname}.conf Name: %{fontname}-fonts Version: 2.0.0 Release: 2%{?dist} Summary: Uyghur Computer Science Association (UKIJ) Unicode fonts Group: User Interface/X License: GPLv2 URL: http://code.google.com/p/ukijorgfonts/ Source0: http://www.ukij.org/fonts/fonts/UKIJTuz.ttf Source1: %{name}-fontconfig.conf BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description Uyghur Computer Science Association (UKIJ) Unicode fonts %prep %build %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p %{SOURCE0} %{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} *.ttf %doc %changelog * Fri Jan 28 2010 James Ni - 2.0.0-2 - Clean the spec file and add fontconfig file * Tue Jan 25 2010 James Ni - 2.0.0-1 - initial package