[open-sans-fonts] Initial import (#1035897)

Petr Vobornik pvoborni at fedoraproject.org
Tue Jan 14 12:11:41 UTC 2014


commit 96fcf7d4ebc926aeb5f2d3e40a0821a7df5cd258
Author: Petr Vobornik <pvoborni at redhat.com>
Date:   Tue Jan 14 13:07:31 2014 +0100

    Initial import (#1035897)

 .gitignore                      |    1 +
 getopensans.sh                  |   16 +++++++++++
 open-sans-fonts-fontconfig.conf |   16 +++++++++++
 open-sans-fonts.spec            |   57 +++++++++++++++++++++++++++++++++++++++
 sources                         |    1 +
 5 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a561756 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/open-sans-fonts-1.10.tar.xz
diff --git a/getopensans.sh b/getopensans.sh
new file mode 100755
index 0000000..3bf1a69
--- /dev/null
+++ b/getopensans.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+# Get upstream zip and make source tar.gz
+
+ARCHIVE="open-sans-fonts-1.10"
+TMPDIR=$(mktemp -d --tmpdir=/var/tmp getopensans-XXXXXXXXXX)
+[ $? != 0 ] && exit 1
+umask 022
+pushd "$TMPDIR"
+
+wget -N -O $ARCHIVE.zip http://www.google.com/fonts/download?kit=3hvsV99qyKCBS55e5pvb3ltkqrIMaAZWyLYEoB48lSQ
+unzip $ARCHIVE.zip -d $ARCHIVE
+tar -cvJf "$ARCHIVE.tar.xz" $ARCHIVE
+
+popd
+mv "$TMPDIR/$ARCHIVE.tar.xz" .
+rm -fr "$TMPDIR"
\ No newline at end of file
diff --git a/open-sans-fonts-fontconfig.conf b/open-sans-fonts-fontconfig.conf
new file mode 100644
index 0000000..048b45e
--- /dev/null
+++ b/open-sans-fonts-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+    <family>Open Sans</family>
+    <prefer>
+      <family>sans-serif</family>
+    </prefer>
+  </alias>
+  <alias>
+    <family>sans-serif</family>
+    <default>
+      <family>Open Sans</family>
+    </default>
+  </alias>
+</fontconfig>
diff --git a/open-sans-fonts.spec b/open-sans-fonts.spec
new file mode 100644
index 0000000..032bf5a
--- /dev/null
+++ b/open-sans-fonts.spec
@@ -0,0 +1,57 @@
+%global fontname open-sans
+%global fontconf 60-%{fontname}.conf
+
+Name:       %{fontname}-fonts
+Version:    1.10
+Release:    1%{?dist}
+Summary:    Open Sans is a humanist sans-serif typeface designed by Steve Matteson
+
+License:    ASL 2.0
+URL:        http://www.google.com/fonts/specimen/Open+Sans
+
+# Since the font doesn't have clear upstream, the source zip package is
+# downloaded from Google Fonts. It is then converted to tar.gz. All by
+# getopensans.sh.
+Source0:    %{name}-%{version}.tar.xz
+Source1:    %{name}-fontconfig.conf
+Source2:    getopensans.sh
+
+BuildArch:  noarch
+BuildRequires:  fontpackages-devel
+BuildRequires:  ttembed
+Requires:   fontpackages-filesystem
+
+%description
+Open Sans is a humanist sans serif typeface designed by Steve Matteson, Type
+Director of Ascender Corp. This version contains the complete 897 character
+set, which includes the standard ISO Latin 1, Latin CE, Greek and Cyrillic
+character sets. Open Sans was designed with an upright stress, open forms and
+a neutral, yet friendly appearance. It was optimized for print, web, and mobile
+interfaces, and has excellent legibility characteristics in its letter forms.
+
+%prep
+%setup -q
+
+%build
+# set Embedding permission to 'Installable'
+ls *.ttf | xargs ttembed
+
+%install
+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}
+
+%_font_pkg -f %{fontconf} *.ttf
+%doc LICENSE.txt
+
+%changelog
+* Tue Nov 26 2013 Petr Vobornik <pvoborni at redhat.com> - 1.10-1
+- initial package
diff --git a/sources b/sources
index e69de29..a9ec714 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+5fa43b45f45c7ef4b589b3bdf4052d77  open-sans-fonts-1.10.tar.xz


More information about the fonts-bugs mailing list