%global fontname ukij-tuz
%global fontconf 66-%{fontname}.conf
Name: %{fontname}-fonts
Version: 2.0.0
Release: 5%{?dist}
Summary: Uyghur Computer Science Association (UKIJ) Unicode fonts
Group: User Interface/X
License: OFL
URL: http://www.ukij.org/fonts/
Source0: http://www.ukij.org/fonts/fonts/UKIJTuz.ttf
Source1: %{name}-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
Uyghur Computer Science Association (UKIJ) Unicode fonts
%prep
%build
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p %{SOURCE0} %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
%_font_pkg -f %{fontconf} *.ttf
%doc
%changelog
* Fri Feb 25 2011 Peng Wu <pwu@redhat.com> - 2.0.0-5
- Fix the license and URL, as upstream updated the website
* Tue Feb 22 2011 James Ni <jni@redhat.com> - 2.0.0-4
- Change the licence to LGPLv2+
* Thu Feb 10 2011 James Ni <jni@redhat.com> - 2.0.0-3
- Rebuild the package
* Fri Jan 28 2011 James Ni <jni@redhat.com> - 2.0.0-2
- Clean the spec file and add fontconfig file
* Tue Jan 25 2011 James Ni <jni@redhat.com> - 2.0.0-1
- initial package