0f7357
%global fontname sarai
0f7357
%global fontconf 68-%{fontname}.conf
d8d021
d8d021
Name:        %{fontname}-fonts
d8d021
Version:     1.0
1ba913
Release:     16%{?dist}
d8d021
Summary:     Free Sarai Hindi Truetype Font
d8d021
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}
1ba913
Source3:     %{fontname}.metainfo.xml
1ba913
d8d021
BuildArch:   noarch
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
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
1ba913
# Add AppStream metadata
1ba913
install -Dm 0644 -p %{SOURCE3} \
1ba913
        %{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
d8d021
0f7357
%_font_pkg -f %{fontconf} *.ttf
d8d021
%doc COPYING
1ba913
%{_datadir}/appdata/%{fontname}.metainfo.xml
d8d021
d8d021
%changelog
1ba913
* Sun Oct 19 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.0-16
1ba913
- Add metainfo file to show this font in gnome-software
1ba913
589805
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-15
589805
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
589805
357257
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-14
357257
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
357257
17551e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-13
17551e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
17551e
eaeeac
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-12
eaeeac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eaeeac
dc7667
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-11
dc7667
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
dc7667
353eff
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-10
353eff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
353eff
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