a850044
%global fontname lohit-nepali
a850044
%global fontconf 67-%{fontname}.conf
a850044
a850044
Name:           %{fontname}-fonts
a850044
Version:        2.4.3
a850044
Release:        1%{?dist}
a850044
Summary:        Free Nepali font
a850044
a850044
Group:          User Interface/X
a850044
License:        GPLv2
a850044
URL:            https://fedorahosted.org/lohit/
a850044
Source0:        http://pravins.fedorapeople.org/lohit/nepali/%{fontname}-%{version}.tar.gz
a850044
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
a850044
BuildArch:      noarch
a850044
BuildRequires: fontforge >= 20080429
a850044
BuildRequires:  fontpackages-devel
a850044
Requires:       fontpackages-filesystem
a850044
Obsoletes: %{fontname}-fonts < %{version}-%{release}
a850044
Obsoletes: lohit-fonts-common < %{version}-%{release}
a850044
a850044
%description
a850044
This package provides a free Nepali truetype/opentype font.
a850044
a850044
a850044
%prep
a850044
%setup -q -n %{fontname}-%{version} 
a850044
a850044
a850044
%build
a850044
./generate.pe *.sfd
a850044
a850044
%install
a850044
rm -fr %{buildroot}
a850044
a850044
install -m 0755 -d %{buildroot}%{_fontdir}
a850044
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
a850044
a850044
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
a850044
                   %{buildroot}%{_fontconfig_confdir}
a850044
a850044
install -m 0644 -p %{fontconf} \
a850044
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
a850044
ln -s %{_fontconfig_templatedir}/%{fontconf} \
a850044
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}
a850044
a850044
a850044
%clean
a850044
rm -fr %{buildroot}
a850044
a850044
a850044
%_font_pkg -f %{fontconf} *.ttf
a850044
a850044
%doc ChangeLog COPYRIGHT COPYING AUTHORS README ChangeLog.old
a850044
a850044
a850044
%changelog
a850044
* Fri Sep 11 2009 Pravin Satpute <psatpute@redhat.com> - 2.4.3-1
a850044
- first release after lohit-fonts split in new tarball