File roboto-fonts.spec of Package roboto-fonts

# spec file for package roboto-fonts
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, 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

%define ttf_fontdir %{_datadir}/fonts/truetype

Name:           roboto-fonts
Version:        1.0
Release:        0
License:        Apache-2.0
Summary:        Android Roboto Fonts
Group:          System/X11/Fonts
Source1:        COPYING
BuildRequires:  unzip
Requires(pre):  %suseconfig_fonts_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Roboto is a Helvetica alike sans serif font that was introduced with Android
4.0 (Ice Cream Sandwich).

%setup -q -c "%{name}-%{version}"

cp %{SOURCE1} .

install -d "%{buildroot}%{ttf_fontdir}"
install -m0644 *.ttf "%{buildroot}%{ttf_fontdir}/"



%{?buildroot:rm -rf %{buildroot}}

%doc *.txt COPYING
%dir %{ttf_fontdir}