%define name fonts-ttf-arabic-farsi %define name_orig farsifonts %define version 0.4 %define release %mkrel 3 %define fontdir fonts/TTF/arabic/farsi Name: %{name} Summary: Free Arabic TrueType fonts Version: %{version} Release: %{release} License: GPL Group: System/Fonts/True type Source: http://www.farsiweb.info/font/%{name_orig}-%{version}.tar.bz2 URL: http://www.farsiweb.info BuildArch: noarch BuildRoot: %_tmppath/%name-%version-%release-buildroot BuildPrereq: freetype-tools Requires(post): fontconfig Requires(postun): fontconfig Provides: fonts-ttf-arabic %description This Package provides Free Arabic TrueType fonts donated under the GPL license by farsiweb.info. %prep %setup -n %name_orig-%version -q %build %install rm -rf %buildroot mkdir -p %buildroot/%_datadir/%fontdir cp *.ttf %buildroot/%_datadir/%fontdir pushd %buildroot/%_datadir/%fontdir %_sbindir/ttmkfdir -u > fonts.scale cp fonts.scale fonts.dir %if %mdkversion < 20070 %_bindir/fc-cache . %endif popd mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/ ln -s ../../..%_datadir/%fontdir \ %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-arabic-farsi:pri=50 %post [ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache %postun # 0 means a real uninstall if [ "$1" = "0" ]; then [ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache fi %clean rm -rf %buildroot %files %defattr(0644,root,root,0755) %doc COPYING NEWS *.txt %dir %_datadir/%{fontdir} %_datadir/%{fontdir}/* %_sysconfdir/X11/fontpath.d/ttf-arabic-farsi:pri=50 %changelog * Thu Jul 05 2007 Ademar de Souza Reis Jr <ademar@mandriva.com.br> 0.4-3mdv2008.0 + Revision: 48736 - fontpath.d conversion (#31756) - minor cleanups * Fri Aug 04 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-08-04 23:10:13 (52882) - Normalize fonts with new paths * Fri Aug 04 2006 Helio Chissini de Castro <helio@mandriva.com> + 2006-08-04 21:03:06 (52803) - import fonts-ttf-arabic-farsi-0.4-2mdk * Fri Feb 03 2006 Frederic Crozat <fcrozat@mandriva.com> 0.4-2mdk - Don't package fonts.cache-2 file - Fix prereq - touch parent directory to workaround rpm changing directory last modification time (breaking fontconfig cache consistency detection) - Remove dependency on freetype, this is old stuff * Thu Aug 05 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 0.4-1mdk - fix rpmlint warnings - do not use subsheels b/c they hide errors - initial build (Munzir Taha <munzirtaha@newhorizons.com.sa>)