]> git.pld-linux.org Git - packages/fonts-OTF-Adobe-SourceSerifPro.git/commitdiff
- initial auto/th/fonts-OTF-Adobe-SourceSerifPro-1.014-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 14 Nov 2014 09:05:05 +0000 (10:05 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 14 Nov 2014 09:05:05 +0000 (10:05 +0100)
fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf [new file with mode: 0644]
fonts-OTF-Adobe-SourceSerifPro.spec [new file with mode: 0644]

diff --git a/fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf b/fonts-OTF-Adobe-SourceSerifPro-fontconfig.conf
new file mode 100644 (file)
index 0000000..0432c78
--- /dev/null
@@ -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>
diff --git a/fonts-OTF-Adobe-SourceSerifPro.spec b/fonts-OTF-Adobe-SourceSerifPro.spec
new file mode 100644 (file)
index 0000000..b4213a2
--- /dev/null
@@ -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
This page took 0.074555 seconds and 4 git commands to generate.