%global fontname nafees-naskh %global fontconf 67-%{fontname}.conf %global archivename Nafees_Naskh_v2.01 Name: %{fontname}-fonts Version: 2.01 Release: 2%{?dist} Summary: Nafees naskh font for writing Urdu in the Naskh script with full aerab support Group: User Interface/X License: Bitstream Vera URL: http://www.crulp.org/index.htm Source0: http://www.crulp.org/Downloads/localization/fonts/NafeesNaskh/%{archivename}.zip Source1: %{fontname}-update-preferred-family.pe Source2: %{fontconf} BuildArch: noarch Requires: fontpackages-filesystem BuildRequires: fontpackages-devel BuildRequires: fontforge %description Character based Nafees Naskh Open Type Font for writing Urdu in Naskh\ script with full aerab support based on Unicode standard. %prep %setup -q -c %build # Fix RHBZ#490830 while not fixed upstream #%{_bindir}/fontforge %{SOURCE1} Nafees\ Naskh\ v2.01.ttf #rm Nafees\ Naskh\ v2.01.ttf %install #fonts 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 %{SOURCE2} \ %{buildroot}%{_fontconfig_templatedir}/%{fontconf} ln -s %{_fontconfig_templatedir}/%{fontconf} \ %{buildroot}%{_fontconfig_confdir}/%{fontconf} %_font_pkg -f %{fontconf} *.ttf %doc Nafees\ Naskh\ v2.01.pdf %changelog * Wed Aug 10 2011 Pravin Satpute <psatpute@redhat.com> 2.01-2 - updated specs as per package-review suggestios * Wed Aug 10 2011 Pravin Satpute <psatpute@redhat.com> 2.01-1 - Initial packaging