%define xfontdir %{_datadir}/fonts %define update_cache /usr/bin/fc-cache %define langlist "bengali hindi gujarati tamil punjabi kannada malayalam oriya telugu" Name: lohit-fonts Version: 2.1.5 Release: 2%{?dist} License: GPLv2 Group: User Interface/X BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) URL: http://fedoraproject.org/wiki/Lohit # Full URL of source http://fedoraproject.org/wiki/Lohit?action=AttachFile&do=get&target=fonts-indic-%{version}.tar.gz Source: fonts-indic-%{version}.tar.gz Summary: Free Indian truetype/opentype fonts %description This package provides Hindi, Bengali, Gujarati, Punjabi, Tamil, Kannada, Malayalam, Oriya, Telugu TrueType/Opentype fonts. # mk_pkg %define mk_pkg() \ %package -n lohit-fonts-%1\ Summary: Free %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") font\ Group: User Interface/X \ Requires(post): fontconfig\ \ %description -n lohit-fonts-%1\ This package provides a free %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") truetype/opentype font.\ \ %files -n lohit-fonts-%1\ %defattr(-, root, root, -)\ %dir %{xfontdir}\ %dir %{xfontdir}/%1\ %doc COPYING README AUTHORS\ %{xfontdir}/%1/*ttf\ \ %post -n lohit-fonts-%1 \ if [ -x %{_bindir}/fc-cache ]; then \ %{_bindir}/fc-cache /usr/share/fonts \ fi \ \ %postun -n lohit-fonts-%1 \ if [ "$1" = "0" ]; then \ if [ -x %{_bindir}/fc-cache ]; then \ %{_bindir}/fc-cache /usr/share/fonts \ fi \ fi %mk_pkg bengali bn %mk_pkg gujarati gu %mk_pkg hindi hi %mk_pkg kannada kn %mk_pkg malayalam ml %mk_pkg oriya or %mk_pkg punjabi pn %mk_pkg tamil ta %mk_pkg telugu te %prep %setup -q -n fonts-indic-%{version} %build echo "Nothing to do in Build." %install rm -rf $RPM_BUILD_ROOT for i in "%{langlist}" do install -d $RPM_BUILD_ROOT/%{xfontdir}/$i install -m 0644 $i/* $RPM_BUILD_ROOT/%{xfontdir}/$i done %clean rm -rf $RPM_BUILD_ROOT %changelog * Mon Sep 17 2007 Rahul Bhalerao - Spec file update as part of review * Tue Sep 11 2007 Rahul Bhalerao - 2.1.5-1.fc8 - This package is derived from the fonts-indic package to reflect the upstream project name[RH #253158]