[packages/fonts-OTF-Adobe-SourceSerifPro] - initial
arekm
arekm at pld-linux.org
Fri Nov 14 10:05:19 CET 2014
commit fa2de062502988ae7048443862f8740b84cb7053
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 14 10:05:05 2014 +0100
- initial
fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf | 16 +++++++++
fonts-OTF-Adobe-SourceSerifPro.spec | 47 ++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
---
diff --git a/fonts-OTF-Adobe-SourceSerifPro.spec b/fonts-OTF-Adobe-SourceSerifPro.spec
new file mode 100644
index 0000000..b4213a2
--- /dev/null
+++ b/fonts-OTF-Adobe-SourceSerifPro.spec
@@ -0,0 +1,47 @@
+# NOTE: there are also TTF fonts in tarball
+Summary: Adobe Source Serif Pro - A set of OpenType fonts for coders
+Name: fonts-OTF-Adobe-SourceSerifPro
+Version: 1.014
+Release: 1
+License: OFL v1.1
+Group: Fonts
+Source0: https://github.com/adobe-fonts/source-serif-pro/archive/%{version}R.tar.gz
+# Source0-md5: 4d803f5c10ee6b1214d5a0a32e1fe82d
+Source1: %{name}-fontconfig.conf
+URL: https://github.com/adobe-fonts/source-serif-pro
+BuildRequires: unzip
+Requires(post,postun): fontpostinst
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define otffontsdir %{_fontsdir}/OTF
+
+%description
+Source Serif Pro is a set of OpenType fonts to complement the Source Sans Pro family.
+
+%prep
+%setup -q -n source-serif-pro-%{version}R
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{otffontsdir},%{_datadir}/fontconfig/conf.avail,%{_sysconfdir}/fonts/conf.d}
+
+install -p OTF/*.otf $RPM_BUILD_ROOT%{otffontsdir}
+install -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/fontconfig/conf.avail/%{name}.conf
+ln -s %{_datadir}/fontconfig/conf.avail/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+fontpostinst OTF
+
+%postun
+fontpostinst OTF
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt ReadMe.html SourceSerifProReadMe.html
+%{otffontsdir}/SourceSerifPro-*.otf
+%{_sysconfdir}/fonts/conf.d/%{name}.conf
+%{_datadir}/fontconfig/conf.avail/%{name}.conf
diff --git a/fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf b/fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf
new file mode 100644
index 0000000..0432c78
--- /dev/null
+++ b/fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>Source Sans Pro</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Source Sans Pro</family>
+ </prefer>
+ </alias>
+</fontconfig>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fonts-OTF-Adobe-SourceSerifPro.git/commitdiff/fa2de062502988ae7048443862f8740b84cb7053
More information about the pld-cvs-commit
mailing list