%global fontname sil-lateef %global fontconf 65-%{fontname}.conf Name: %{fontname}-fonts Version: 1.001 Release: 1%{?dist} Summary: An Arabic script unicode font Group: User Interface/X License: OFL URL: http://scripts.sil.org/ArabicFonts # The file complete URL is as follows: # http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=Lateef_OT_1_001&filename=LateefRegOT_1.001.zip Source0: LateefRegOT_1.001.zip Source1: %{name}-fontconfig.conf BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: fontpackages-devel Requires: fontpackages-filesystem %description Lateef is named after Shah Abdul Lateef Bhitai, the famous Sindhi mystic and poet. It is intended to be an appropriate style for use in Sindhi and other languages of the South Asian region. %prep %setup -q -c %{name}-%{version} %build for docfile in *.txt; do fold -s $docfile > $docfile.new && \ sed -i "s|\r||g" $docfile.new && \ touch -r $docfile $docfile.new && \ mv $docfile.new $docfile done %install rm -fr %{buildroot} install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p *.ttf %{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} *.ttf %doc *.txt %changelog * Tue Oct 06 2009 Hedayat Vatankhah - 1.001-1 - Initial version