# This template can be used with simple font releases
# (one font family in one upstream archive):
# — if you're unlucky enough upstream released several font families in a
# single archive, use spectemplate-fonts-multi.spec
# – if upstream releases separate fonts in separate archives, do not try to
# stuff them in a single spec/package, just package them separately
#
# Please remove the template comments when creating your own file;
# <FOO> must be replaced by something appropriate for your font.
%define fontname asana-math
%define fontconf 63-%{fontname}.conf
#define archivename %{name}-%{version}
Name: %{fontname}-fonts
# Do not trust font metadata versionning unless you've checked upstream does
# update versions on file changes. When in doubt use the timestamp of the most
# recent file as version.
Version: 0.914
Release: 2%{?dist}
Summary: An OpenType font with a MATH table
Group: User Interface/X
License: OFL
URL: http://openfontlibrary.org/media/files/asyropoulos/219
Source0: http://openfontlibrary.org/people/asyropoulos/asyropoulos_-_Asana_Math.otf
Source1: %{name}-fontconfig.conf
Source2: README.license
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
An OpenType font with a MATH table that can be used with XeTeX to typeset math
content
%prep
cp %{SOURCE2} $RPM_BUILD_DIR
%build
%install
rm -fr %{buildroot}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{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}
%clean
rm -fr %{buildroot}
%_font_pkg -f %{fontconf} *.ttf
%doc README.license
%dir %{fontdir}
%changelog
* Fri Feb 20 2009 Jon Stanley <jonstanley@gmail.com> - 0.914-2
- Update to new packaging guidelines
* Sun Jul 13 2008 Jon Stanley <jonstanley@gmail.com> - 0.914-1
- Change version
- Include license readme
- Fix fontconfig file
* Sat Jul 12 2008 Jon Stanley <jonstanley@gmail.com> - 20080120-1
- Initial package