File google-carlito-fonts.spec of Package google-carlito-fonts

#
# spec file for package google-carlito-fonts
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuremberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           google-carlito-fonts
Version:        1.1.03.beta1
Release:        0
Summary:        Sans-serif Font Metrics-compatible with Calibri
License:        OFL-1.1
Group:          System/X11/Fonts
# FIXME: This is likely not the best upstream URL. However, this font
#   is currently not available through Google Fonts.
Url:            https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/
Source:         https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-20130920.tar.gz
BuildRequires:  fontpackages-devel
%reconfigure_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Modern, friendly sans-serif font derived from the Lato font that is
designed to be a metrics-compatible drop-in replacement for Calibri.
Contains Regular, Bold, Italic, and Bold Italic version.

Designed by Lukasz Dziedzic of tyPoland for Google.

%prep
%setup -c %{name}

%build

%install
mkdir -p %{buildroot}%{_ttfontsdir}
# by default install command uses 755 umask
install -m 644 crosextrafonts-carlito-20130920/*.ttf %{buildroot}%{_ttfontsdir}/

%reconfigure_fonts_scriptlets

%files
%defattr(-,root,root)
%doc crosextrafonts-carlito-20130920/LICENSE
%dir %{_ttfontsdir}
%{_ttfontsdir}/*

%changelog
openSUSE Build Service is sponsored by