%define fontname paktype %define fontdir %{_datadir}/fonts/%{fontname} %define paktype paktype-20061222 Name: %{fontname}-fonts Version: 2.0 Release: 2%{?dist} License: GPLv2 with exceptions Source: %{paktype}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires : dos2unix Group: User Interface/X Summary: Fonts for Arabic from PakType URL: https://sourceforge.net/projects/paktype/ %description The paktype-fonts package contains fonts for the display of Arabic from the PakType by Lateef Sagar. %prep %setup -q -n %{paktype} find . -not -name \*.ttf -type f -exec dos2unix -k {} \; %build echo "Nothing to do in Build." %install rm -rf %{buildroot} install -m 0755 -d %{buildroot}%{fontdir} install -m 0644 -p *.ttf %{buildroot}%{fontdir} %clean rm -rf %{buildroot} %post if [ -x %{_bindir}/fc-cache ]; then %{_bindir}/fc-cache %{fontdir} fi %postun if [ "$1" = "0" ]; then if [ -x %{_bindir}/fc-cache ]; then %{_bindir}/fc-cache %{fontdir} fi fi %files %defattr(-,root,root,-) %doc *.txt %dir %{fontdir} %{fontdir}/*.ttf %changelog * Thu Oct 11 2007 Rahul Bhalerao - 2.0-2.fc8 - Changed license to include font exception and removed fonts.cache-1 file * Thu Oct 04 2007 Rahul Bhalerao - 2.0-1.fc8 - Initial packaging for split from fonts-arabic