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