d8d021
%define fontname sarai
d8d021
%define fontdir %{_datadir}/fonts/%{fontname}
d8d021
d8d021
Name:        %{fontname}-fonts
d8d021
Version:     1.0
d8d021
Release:     3%{?dist}
d8d021
Summary:     Free Sarai Hindi Truetype Font
d8d021
d8d021
Group:       User Interface/X
d8d021
License:     GPLv2
d8d021
URL:         http://www.sarai.net/practices/indic-localization
d8d021
Source0:     Sarai_07.ttf
d8d021
Source1:     COPYING
d8d021
BuildArch:   noarch
d8d021
BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d8d021
d8d021
%description 
d8d021
This package provides a free Sarai Hindi TrueType font. 
d8d021
It is suitable for print and publishing needs.
d8d021
d8d021
%prep
f0103c
%setup -q -T -c 
d8d021
cp %{SOURCE1} .
d8d021
d8d021
%build
d8d021
echo "Nothing to do in Build."
d8d021
d8d021
%install
d8d021
rm -rf $RPM_BUILD_ROOT
d8d021
install -m 0755 -d $RPM_BUILD_ROOT%{fontdir}
d8d021
install -m 0644 -p %{SOURCE0} $RPM_BUILD_ROOT%{fontdir}
d8d021
d8d021
%clean
d8d021
rm -rf $RPM_BUILD_ROOT
d8d021
d8d021
d8d021
%post
d8d021
if [ -x %{_bindir}/fc-cache ]; then
d8d021
%{_bindir}/fc-cache -f %{fontdir} || :
d8d021
fi
d8d021
d8d021
%postun
d8d021
if [ "$1" = "0" ]; then
d8d021
if [ -x %{_bindir}/fc-cache ]; then
d8d021
%{_bindir}/fc-cache -f %{fontdir} || :
d8d021
fi
d8d021
fi
d8d021
d8d021
%files
d8d021
%defattr(0644,root,root,0755)
d8d021
%doc COPYING
d8d021
%{fontdir}
d8d021
d8d021
d8d021
%changelog
d8d021
d8d021
* Sat Feb 16 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0-3
d8d021
- Fix more review issues
d8d021
d8d021
* Fri Feb 15 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0-2
d8d021
- Fix issues as per review from Rahul Bhalerao
d8d021
d8d021
* Thu Feb 14 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0-1
d8d021
- Initial build