From f0a0a13e6a23c2a6ac2f62aaadc7e90cb74ecaaa Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 05 2015 13:24:13 +0000 Subject: import open-sans-fonts-1.10-1.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..37e5fb5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/open-sans-fonts-1.10.tar.xz diff --git a/.open-sans-fonts.metadata b/.open-sans-fonts.metadata new file mode 100644 index 0000000..040e6c1 --- /dev/null +++ b/.open-sans-fonts.metadata @@ -0,0 +1 @@ +b52887454ba7d7f7392cbbeec79b13dbde51468d SOURCES/open-sans-fonts-1.10.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/getopensans.sh b/SOURCES/getopensans.sh new file mode 100755 index 0000000..3bf1a69 --- /dev/null +++ b/SOURCES/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/SOURCES/open-sans-fonts-fontconfig.conf b/SOURCES/open-sans-fonts-fontconfig.conf new file mode 100644 index 0000000..048b45e --- /dev/null +++ b/SOURCES/open-sans-fonts-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + Open Sans + + sans-serif + + + + sans-serif + + Open Sans + + + diff --git a/SPECS/open-sans-fonts.spec b/SPECS/open-sans-fonts.spec new file mode 100644 index 0000000..0404980 --- /dev/null +++ b/SPECS/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 +* Mon Sep 8 2014 Petr Vobornik - 1.10-1 +- initial package