commit 03a82ed353967861bd8cba20042b4f6814336baf
Author: Mohamed El Morabity <melmorabity(a)fedoraproject.org>
Date: Tue Jan 18 16:25:41 2011 +0100
Initial import
.gitignore | 1 +
google-lato-fonts-fontconfig.conf | 16 ++++++
google-lato-fonts-generate-tarball.sh | 10 ++++
google-lato-fonts.spec | 84 +++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 112 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c1cfbe9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/google-lato-fonts-1.011.tar.bz2
diff --git a/google-lato-fonts-fontconfig.conf b/google-lato-fonts-fontconfig.conf
new file mode 100644
index 0000000..33192d7
--- /dev/null
+++ b/google-lato-fonts-fontconfig.conf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <alias>
+ <family>sans-serif</family>
+ <default>
+ <family>Lato</family>
+ </default>
+ </alias>
+ <alias>
+ <family>Lato</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/google-lato-fonts-generate-tarball.sh
b/google-lato-fonts-generate-tarball.sh
new file mode 100644
index 0000000..7bcd190
--- /dev/null
+++ b/google-lato-fonts-generate-tarball.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+VERSION=$1
+
+hg clone
https://googlefontdirectory.googlecode.com/hg/ google-lato-fonts-$VERSION/
+pushd google-lato-fonts-$VERSION/
+mv lato/* .
+find . -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
+popd
+tar -cjf google-lato-fonts-$VERSION.tar.bz2 google-lato-fonts-$VERSION/
diff --git a/google-lato-fonts.spec b/google-lato-fonts.spec
new file mode 100644
index 0000000..2ff4ba0
--- /dev/null
+++ b/google-lato-fonts.spec
@@ -0,0 +1,84 @@
+%global fontname google-lato
+%global fontconf 61-%{fontname}.conf
+
+Name: %{fontname}-fonts
+Version: 1.011
+Release: 1%{?dist}
+Summary: A sanserif typeface family
+
+Group: User Interface/X
+License: OFL
+URL:
http://code.google.com/webfonts/family?family=Lato
+Source0: %{name}-%{version}.tar.bz2
+# Most recent versions of the fonts are in the Google Font Directory Mercurial
+# repository. To retrieve them, invoke this script.
+Source1: %{name}-generate-tarball.sh
+Source2: %{name}-fontconfig.conf
+
+BuildArch: noarch
+BuildRequires: fontpackages-devel
+Requires: fontpackages-filesystem
+
+%description
+Lato is a sanserif typeface family designed in the Summer 2010 by Warsaw-based
+designer Łukasz Dziedzic ("Lato" means "Summer" in Polish). In
December 2010 the
+Lato family was published under the open-source Open Font License by his foundry
+tyPoland, with support from Google.
+
+When working on Lato, Łukasz tried to carefully balance some potentially
+conflicting priorities. He wanted to create a typeface that would seem quite
+"transparent" when used in body text but would display some original treats
when
+used in larger sizes. He used classical proportions (particularly visible in the
+uppercase) to give the letterforms familiar harmony and elegance. At the same
+time, he created a sleek sanserif look, which makes evident the fact that Lato
+was designed in 2010 - even though it does not follow any current trend.
+
+The semi-rounded details of the letters give Lato a feeling of warmth, while the
+strong structure provides stability and seriousness. "Male and female, serious
+but friendly. With the feeling of the Summer," says Łukasz.
+
+Lato consists of five weights (plus corresponding italics), including a
+beautiful hairline style. The first release only includes the Western character
+set, but pan-European Latin, Cyrillic and Greek extensions, as well as small
+caps and other typographic niceties are expected in 2011.
+
+
+%prep
+%setup -q
+
+# Fix wrong end-of-lines encoding
+sed "s/\r//" OFL.txt > OFL.txt.new
+touch -r OFL.txt OFL.txt.new
+mv OFL.txt.new OFL.txt
+
+
+%build
+
+
+%install
+rm -fr $RPM_BUILD_ROOT
+
+install -m 0755 -d $RPM_BUILD_ROOT%{_fontdir}
+install -m 0644 -p *.ttf $RPM_BUILD_ROOT%{_fontdir}
+
+install -m 0755 -d $RPM_BUILD_ROOT%{_fontconfig_templatedir}
$RPM_BUILD_ROOT%{_fontconfig_confdir}
+
+install -m 0644 -p %{SOURCE2} $RPM_BUILD_ROOT%{_fontconfig_templatedir}/%{fontconf}
+ln -s %{_fontconfig_templatedir}/%{fontconf}
$RPM_BUILD_ROOT%{_fontconfig_confdir}/%{fontconf}
+
+
+%clean
+rm -fr $RPM_BUILD_ROOT
+
+
+%_font_pkg -f %{fontconf} *.ttf
+%doc OFL.txt
+
+
+%changelog
+* Tue Jan 11 2011 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 1.011-1
+- Update to 1.011
+- Change fonts source to the Google Font Directory Mercurial repository
+
+* Tue Jan 11 2011 Mohamed El Morabity <melmorabity(a)fedoraproject.org> - 1.010-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..41ed6b4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+119833a4e1c682096c8effb6da18e2ef google-lato-fonts-1.011.tar.bz2