rpms/asana-math-fonts/devel .cvsignore, 1.1, 1.2 asana-math-fonts.spec, 1.1, 1.2 sources, 1.1, 1.2 asyropoulos_-_Asana_Math.otf, 1.1, NONE
Jon Stanley
jstanley at fedoraproject.org
Fri Feb 20 22:40:17 UTC 2009
Author: jstanley
Update of /cvs/pkgs/rpms/asana-math-fonts/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv11163
Modified Files:
.cvsignore asana-math-fonts.spec sources
Removed Files:
asyropoulos_-_Asana_Math.otf
Log Message:
Update to new packaging guidelines.
Upload actual font file to lookaside cache.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/asana-math-fonts/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 Jul 2008 19:20:27 -0000 1.1
+++ .cvsignore 20 Feb 2009 22:39:45 -0000 1.2
@@ -0,0 +1 @@
+asyropoulos_-_Asana_Math.otf
Index: asana-math-fonts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/asana-math-fonts/devel/asana-math-fonts.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- asana-math-fonts.spec 14 Jul 2008 13:20:11 -0000 1.1
+++ asana-math-fonts.spec 20 Feb 2009 22:39:45 -0000 1.2
@@ -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;
+# <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: 1%{?dist}
+Release: 2%{?dist}
Summary: An OpenType font with a MATH table
Group: User Interface/X
@@ -12,10 +26,12 @@
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 @@
%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 <jonstanley at gmail.com> - 0.914-2
+- Update to new packaging guidelines
+
* Sun Jul 13 2008 Jon Stanley <jonstanley at gmail.com> - 0.914-1
- Change version
- Include license readme
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/asana-math-fonts/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 Jul 2008 19:20:27 -0000 1.1
+++ sources 20 Feb 2009 22:39:46 -0000 1.2
@@ -0,0 +1 @@
+3008ab144432b8ced82920f286a9a57a asyropoulos_-_Asana_Math.otf
--- asyropoulos_-_Asana_Math.otf DELETED ---
More information about the fonts-bugs
mailing list