From c11d1ca96db9de2bf306117689e1ae1a48bfae28 Mon Sep 17 00:00:00 2001 From: Jon Stanley Date: Feb 20 2009 22:39:46 +0000 Subject: Update to new packaging guidelines. Upload actual font file to lookaside cache. --- diff --git a/.cvsignore b/.cvsignore index e69de29..8f6c0d5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +asyropoulos_-_Asana_Math.otf diff --git a/asana-math-fonts.spec b/asana-math-fonts.spec index 4bf1c97..105738d 100644 --- a/asana-math-fonts.spec +++ b/asana-math-fonts.spec @@ -1,10 +1,24 @@ -%define fontname asana-math -%define fontdir %{_datadir}/fonts/%{fontname} -%define fontconfdir %{_sysconfdir}/fonts/conf.d +# 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; +# 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: 1%{?dist} +Release: 2%{?dist} Summary: An OpenType font with a MATH table Group: User Interface/X @@ -12,10 +26,12 @@ 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: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +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 @@ -30,39 +46,35 @@ cp %{SOURCE2} $RPM_BUILD_DIR %install -rm -rf $RPM_BUILD_ROOT +rm -fr %{buildroot} -install -dm 755 $RPM_BUILD_ROOT%{fontdir} -install -pm 644 %{SOURCE0} $RPM_BUILD_ROOT%{fontdir}/asana-math.otf +install -m 0755 -d %{buildroot}%{_fontdir} +install -m 0644 -p *.ttf %{buildroot}%{_fontdir} -install -dm 755 $RPM_BUILD_ROOT%{fontconfdir} -install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{fontconfdir}/63-%{fontname}.conf +install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ + %{buildroot}%{_fontconfig_confdir} - -%clean -rm -rf $RPM_BUILD_ROOT +install -m 0644 -p %{SOURCE1} \ + %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} \ + %{buildroot}%{_fontconfig_confdir}/%{fontconf} -%post -if [ -x %{_bindir}/fc-cache ] ; then - %{_bindir}/fc-cache -f %{fontdir} || : -fi +%clean +rm -fr %{buildroot} -%postun -if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then - %{_bindir}/fc-cache -f %{fontdir} || : -fi +%_font_pkg -f %{fontconf} *.ttf -%files -%defattr(644,root,root,755) %doc README.license -%config(noreplace) %{fontconfdir}/63-%{fontname}.conf -%dir %{fontdir}/ -%{fontdir}/*.otf + +%dir %{fontdir} %changelog +* Fri Feb 20 2009 Jon Stanley - 0.914-2 +- Update to new packaging guidelines + * Sun Jul 13 2008 Jon Stanley - 0.914-1 - Change version - Include license readme diff --git a/asyropoulos_-_Asana_Math.otf b/asyropoulos_-_Asana_Math.otf deleted file mode 100644 index d52c1ac..0000000 Binary files a/asyropoulos_-_Asana_Math.otf and /dev/null differ diff --git a/sources b/sources index e69de29..d6d3639 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3008ab144432b8ced82920f286a9a57a asyropoulos_-_Asana_Math.otf