3e164cb
%global fontname lohit-nepali
3e164cb
%global fontconf 65-0-%{fontname}.conf
3e164cb
3e164cb
Name:           %{fontname}-fonts
ea834bc
Version:        2.93.0
ea834bc
Release:        1%{?dist}
3e164cb
Summary:        Free Nepali font
3e164cb
3e164cb
Group:          User Interface/X
3e164cb
License:        OFL
3e164cb
URL:            https://fedorahosted.org/lohit/
3e164cb
Source0:        https://fedorahosted.org/releases/l/o/lohit/%{fontname}-%{version}.tar.gz
3e164cb
BuildArch:      noarch
3e164cb
BuildRequires: fontforge
3e164cb
BuildRequires:  fontpackages-devel
3e164cb
Requires:       fontpackages-filesystem
3e164cb
3e164cb
%description
3e164cb
This package provides a free Nepali truetype/opentype font.
3e164cb
3e164cb
3e164cb
%prep
3e164cb
%setup -q -n %{fontname}-%{version} 
3e164cb
3e164cb
%build
ea834bc
make ttf %{?_smp_mflags}
3e164cb
3e164cb
%install
3e164cb
rm -fr %{buildroot}
3e164cb
3e164cb
install -m 0755 -d %{buildroot}%{_fontdir}
3e164cb
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
3e164cb
3e164cb
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
3e164cb
                   %{buildroot}%{_fontconfig_confdir}
3e164cb
3e164cb
install -m 0644 -p %{fontconf} \
3e164cb
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
3e164cb
ln -s %{_fontconfig_templatedir}/%{fontconf} \
3e164cb
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
3e164cb
3e164cb
3e164cb
%_font_pkg -f %{fontconf} *.ttf
3e164cb
ea834bc
%doc ChangeLog COPYRIGHT OFL.txt AUTHORS README test-nepali.txt
3e164cb
3e164cb
%changelog
ea834bc
* Mon Dec 30 2013 Pravin Satpute <psatpute@redhat.com> - 2.93.0-1
ea834bc
- Upstream release 2.93.0
ea834bc
27f7261
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.3-2
27f7261
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
27f7261
41ad496
* Thu Jan 31 2013 Pravin Satpute <psatpute@redhat.com> - 2.5.3-1
41ad496
- Upstream release 2.5.3
41ad496
3ce87c2
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.1.1-2
3ce87c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3ce87c2
3e164cb
* Thu Apr 12 2012 Pravin Satpute <psatpute@redhat.com> - 2.5.1.1-1
3e164cb
- first release after lohit-devanagari split into nepali specific shapes