0f7357
%global fontname sarai
0f7357
%global fontconf 68-%{fontname}.conf
d8d021
d8d021
Name:        %{fontname}-fonts
d8d021
Version:     1.0
0f7357
Release:     9%{?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
0f7357
Source0:     http://www.sarai.net/practices/indic-localization/downloads-1/Sarai_07.ttf
d8d021
Source1:     COPYING
0f7357
Source2:     %{fontconf}
d8d021
BuildArch:   noarch
d8d021
BuildRoot:   %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0f7357
BuildRequires: fontpackages-devel
0f7357
Requires: fontpackages-filesystem
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 
0f7357
cp -p %{SOURCE1} .
d8d021
d8d021
%build
d8d021
echo "Nothing to do in Build."
d8d021
d8d021
%install
0f7357
rm -rf %{buildroot}
d8d021
0f7357
install -m 0755 -d %{buildroot}%{_fontdir}
0f7357
install -m 0644 -p %{SOURCE0} %{buildroot}%{_fontdir}
0f7357
0f7357
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
0f7357
                   %{buildroot}%{_fontconfig_confdir}
d8d021
0f7357
install -m 0644 -p %{SOURCE2} \
0f7357
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
0f7357
ln -s %{_fontconfig_templatedir}/%{fontconf} \
0f7357
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
0f7357
0f7357
%clean
0f7357
rm -rf %{buildroot}
d8d021
0f7357
%_font_pkg -f %{fontconf} *.ttf
d8d021
%doc COPYING
0f7357
d8d021
d8d021
d8d021
%changelog
0f7357
* Tue Apr 20 2010 Parag <pnemade AT redhat.com> - 1.0-9
0f7357
- Resolves: rh#578043-lang-specific overrides rule doesn't work as expected
0f7357
0f7357
* Tue Feb 23 2010 Parag <pnemade AT redhat.com> - 1.0-8
0f7357
- Resolves: rh#567581-[Devanagari] Need fontconfig rules for Sarai font
0f7357
864345
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
864345
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
864345
9ba8ac
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-6
9ba8ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9ba8ac
0f7357
* Fri Dec 26 2008 Parag Nemade <pnemade@fedoraproject.org> - 1.0-5
paragn 0b2a48
  Changed spec according to new fonts packaging guildelines(rh#477452)
d8d021
af472d
* Sat Feb 24 2008 Rahul Sundaram <sundaram@fedoraproject.org> - 1.0-4
af472d
  Fix build issue with missing setup macro
af472d
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